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

Commit 16a76ad8 authored by Josh Wu's avatar Josh Wu Committed by Thomas Girardier
Browse files

Add libbt_packets build target without apex

* After setting apex_available for BT, it cannot be installed to
  platform(vendor) without adding //apex_available:platform.
* However, adding //apex_available:platform will require a change
  to packages/modules/common/build/allowed_deps.txt.

Test: m
Test: gd/cert/host
Tag: #refactor
Bug: 234325362
Ignore-AOSP-First: Cherry-picked from AOSP
Merged-In: I7bc9d660d7d91363c35ef3b9e1aed5759ffb7215
Change-Id: I7bc9d660d7d91363c35ef3b9e1aed5759ffb7215
parent db642650
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -632,6 +632,24 @@ rust_library {
    min_sdk_version: "30",
}

rust_library {
    name: "libbt_packets_nonapex",
    defaults: ["gd_rust_defaults"],
    crate_name: "bt_packets",
    srcs: ["rust/packets/lib.rs", ":BluetoothGeneratedPackets_rust"],
    edition: "2018",
    vendor_available : true,
    host_supported: true,
    proc_macros: ["libnum_derive"],
    rustlibs: [
        "libbytes",
        "libnum_traits",
        "libthiserror",
        "liblog_rust",
    ],
    min_sdk_version: "30",
}

rust_test_host {
    name: "libbt_packets_test",
    defaults: [
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ rust_ffi {
    edition: "2018",
    proc_macros: ["libnum_derive"],
    rustlibs: [
        "libbt_packets",
        "libbt_packets_nonapex",
        "libbytes",
        "libnum_traits",
        "libthiserror",