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

Commit a74f7c94 authored by Vick Wang's avatar Vick Wang
Browse files

Add cc_library for threadnetwork module

Export the threadnetwork HAL implementation to allow adding
product-specific features by extening this implementation in the vendor
partition.

Bug: 371460661
Test: build and flash
Change-Id: Ib52b58946011ecf89e1185e87c33cc5e26d653f1
parent b1fb1150
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -45,6 +45,41 @@ cc_binary {
    ],
}

cc_library_static {
    name: "android.hardware.threadnetwork.lib",

    vendor: true,
    export_include_dirs: ["."],

    defaults: ["android.hardware.threadnetwork-service.defaults"],

    srcs: [
        "service.cpp",
        "thread_chip.cpp",
        "utils.cpp",
    ],

    shared_libs: [
        "libbinder_ndk",
        "liblog",
    ],

    static_libs: [
        "android.hardware.threadnetwork-V1-ndk",
        "libbase",
        "libcutils",
        "libutils",
        "openthread-common",
        "openthread-hdlc",
        "openthread-platform",
        "openthread-posix",
        "openthread-spi",
        "openthread-url",
    ],

    stl: "c++_static",
}

cc_defaults {
    name: "android.hardware.threadnetwork-service.defaults",
    product_variables: {