2 name: "fluoride_osi_defaults",
3 defaults: ["fluoride_defaults"],
7 "system/bt/osi/src/protos",
8 "system/bt/utils/include",
9 "system/bt/stack/include",
13 // Static libraries required by other modules
14 // ========================================================
16 name: "libosi-AllocationTestHarness",
17 defaults: ["fluoride_osi_defaults"],
19 "test/AllocationTestHarness.cc",
28 name: "libosi-AlarmTestHarness",
29 defaults: ["fluoride_osi_defaults"],
31 "test/AlarmTestHarness.cc",
39 // Bluetooth Protobuf static library for target and host
40 // ========================================================
43 defaults: ["fluoride_defaults"],
44 srcs: ["src/protos/bluetooth.proto"],
46 export_proto_headers: true,
52 // libosi static library for target
53 // ========================================================
56 defaults: ["fluoride_osi_defaults"],
57 // TODO(mcchou): Remove socket_utils sources after platform specific
58 // dependencies are abstracted.
61 "src/allocation_tracker.cc",
69 "src/hash_map_utils.cc",
79 "src/socket_utils/socket_local_client.cc",
80 "src/socket_utils/socket_local_server.cc",
88 static_libs: ["libbt-protos"],
90 // TODO(armansito): Setting _GNU_SOURCE isn't very platform-independent but
91 // should be compatible for a Linux host OS. We should figure out what to do for
92 // a non-Linux host OS.
106 // libosi unit tests for target and host
107 // ========================================================
109 name: "net_test_osi",
110 test_suites: ["device-tests"],
111 defaults: ["fluoride_osi_defaults"],
112 host_supported: true,
114 "test/AlarmTestHarness.cc",
115 "test/AllocationTestHarness.cc",
116 "test/alarm_test.cc",
117 "test/allocation_tracker_test.cc",
118 "test/allocator_test.cc",
119 "test/array_test.cc",
120 "test/config_test.cc",
121 "test/fixed_queue_test.cc",
122 "test/future_test.cc",
123 "test/hash_map_utils_test.cc",
124 "test/leaky_bonded_queue_test.cc",
126 "test/metrics_test.cc",
127 "test/properties_test.cc",
129 "test/reactor_test.cc",
130 "test/ringbuffer_test.cc",
131 "test/semaphore_test.cc",
132 "test/thread_test.cc",
134 "test/wakelock_test.cc",
138 "libprotobuf-cpp-lite",
148 cflags: ["-DOS_GENERIC"],