1// simulation library for testing virtual devices 2// ======================================================== 3cc_library_static { 4 name: "libbt-rootcanal", 5 proprietary: true, 6 srcs: [ 7 "src/async_manager.cc", 8 "src/bt_address.cc", 9 "src/command_packet.cc", 10 "src/dual_mode_controller.cc", 11 "src/event_packet.cc", 12 "src/packet.cc", 13 "src/packet_stream.cc", 14 "src/test_channel_transport.cc", 15 ], 16 cflags: [ 17 "-fvisibility=hidden", 18 "-Wall", 19 "-Wextra", 20 "-Werror", 21 "-DHAS_NO_BDROID_BUILDCFG", 22 ], 23 local_include_dirs: [ 24 "include", 25 ], 26 export_include_dirs: ["include"], 27 include_dirs: [ 28 "system/bt", 29 "system/bt/utils/include", 30 "system/bt/hci/include", 31 "system/bt/include", 32 "system/bt/stack/include", 33 ], 34 shared_libs: [ 35 "libbase", 36 "libchrome", 37 "liblog", 38 ], 39} 40 41// test-vendor unit tests for host 42// ======================================================== 43cc_test_host { 44 name: "test-vendor_test_host", 45 srcs: [ 46 "src/async_manager.cc", 47 "src/bt_address.cc", 48 "src/command_packet.cc", 49 "src/event_packet.cc", 50 "src/packet.cc", 51 "src/packet_stream.cc", 52 "test/async_manager_unittest.cc", 53 "test/bt_address_unittest.cc", 54 "test/packet_stream_unittest.cc", 55 ], 56 local_include_dirs: [ 57 "include", 58 ], 59 include_dirs: [ 60 "system/bt", 61 "system/bt/utils/include", 62 "system/bt/hci/include", 63 "system/bt/stack/include", 64 ], 65 shared_libs: [ 66 "liblog", 67 "libchrome", 68 ], 69 cflags: [ 70 "-fvisibility=hidden", 71 "-Wall", 72 "-Wextra", 73 "-Werror", 74 "-DLOG_NDEBUG=1", 75 ], 76 target: { 77 darwin: { 78 enabled: false, 79 } 80 }, 81} 82