Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8897fde4 authored by Henri Chataing's avatar Henri Chataing
Browse files

RootCanal: Move config.proto -> proto/rootcanal/configuration.proto

For easier integration with netsim frontend protobuf definitions

Bug: 281056173
Test: m root-canal
Change-Id: I97143a8a906a72bba37e6f2aa1c68028d2bfa4fd
parent 30eb9ea3
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -139,18 +139,6 @@ cc_library_static {
    include_dirs: ["packages/modules/Bluetooth/system/gd"],
}

// This library contains the generated headers for the
// RootCanal configuration file / parameter.
cc_library_static {
    name: "librootcanal_config",
    host_supported: true,
    vendor_available: true,
    proto: {
        export_proto_headers: true,
    },
    srcs: ["config.proto"],
}

// This library implements a foreigh function interface over DualModeController
// compatible with Python or Rust.
cc_library_host_shared {
+3 −3
Original line number Diff line number Diff line
@@ -188,14 +188,14 @@ android_add_library(

protobuf_generate_with_plugin(
  TARGET librootcanal_config
  PROTOS ${ROOTCANAL_ROOT}/config.proto
  PROTOS ${ROOTCANAL_ROOT}/proto/rootcanal/configuration.proto
  APPEND_PATH
  PROTOPATH -I${AOSP_ROOT}/external/protobuf/src
  PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/config)
  PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/proto/rootcanal)

target_include_directories(
  librootcanal_config
  PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/config ${AOSP_ROOT}/external/protobuf/src)
  PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/proto ${AOSP_ROOT}/external/protobuf/src)

target_link_libraries(librootcanal_config
                      PRIVATE protobuf::libprotobuf)
+1 −1
Original line number Diff line number Diff line
@@ -22,9 +22,9 @@
#include <string>
#include <vector>

#include "config.pb.h"
#include "hci/address.h"
#include "hci/hci_packets.h"
#include "rootcanal/configuration.pb.h"

namespace rootcanal {
using bluetooth::hci::HciVersion;
+25 −0
Original line number Diff line number Diff line
filegroup {
    name: "rootcanal-protos",
    srcs: [
        "rootcanal/configuration.proto",
    ],
}

// This library contains the generated headers for the
// RootCanal configuration file / parameter.
cc_library_static {
    name: "librootcanal_config",
    host_supported: true,
    vendor_available: true,
    proto: {
        export_proto_headers: true,
        canonical_path_from_root: false,
        include_dirs: [
            "packages/modules/Bluetooth/tools/rootcanal/proto",
        ],
    },
    shared_libs: [
        "libprotobuf-cpp-full",
    ],
    srcs: [":rootcanal-protos"],
}