// libbtcore static library for target and host // ======================================================== cc_library_static { name: "libbtcore_qti", defaults: ["fluoride_defaults_qti"], local_include_dirs: ["include"], include_dirs: ["vendor/qcom/opensource/commonsys/system/bt", "vendor/qcom/opensource/commonsys/system/bt/internal_include", "vendor/qcom/opensource/commonsys/system/bt/stack/include"], srcs: [ "src/device_class.cc", "src/hal_util.cc", "src/module.cc", "src/osi_module.cc", "src/property.cc", ], shared_libs: [ "liblog", ], header_libs: ["libbluetooth_headers"], host_supported: true, target: { darwin: { enabled: false, }, linux: { cflags: ["-D_GNU_SOURCE"], }, }, } // Note: It's good to get the tests compiled both for the host and the target so // we get to test with both Bionic libc and glibc // libbtcore unit tests for target and host // ======================================================== cc_test { name: "net_test_btcore_qti", test_suites: ["device-tests"], defaults: ["fluoride_defaults_qti"], local_include_dirs: ["include"], include_dirs: ["vendor/qcom/opensource/commonsys/system/bt"], srcs: [ "test/device_class_test.cc", "test/property_test.cc", ], shared_libs: [ "liblog", ], static_libs: [ "libbtcore_qti", "libosi-AllocationTestHarness_qti", "libosi_qti", ], host_supported: true, target: { darwin: { enabled: false, } } }