1cc_library_static { 2 name: "avrcp-target-service", 3 defaults: [ 4 "fluoride_defaults", 5 "clang_file_coverage", 6 ], 7 host_supported: true, 8 include_dirs: [ 9 "system/bt", 10 "system/bt/btcore/include", 11 "system/bt/internal_include", 12 "system/bt/stack/include", 13 ], 14 export_include_dirs: ["./"], 15 srcs: [ 16 "connection_handler.cc", 17 "device.cc", 18 ], 19 static_libs: [ 20 "lib-bt-packets", 21 "libbluetooth-types", 22 "libosi", 23 ], 24 shared_libs: [ 25 "libchrome", 26 ], 27} 28 29cc_test { 30 name: "net_test_avrcp", 31 test_suites: ["general-tests"], 32 defaults: [ 33 "fluoride_defaults", 34 "clang_coverage_bin", 35 ], 36 host_supported: true, 37 include_dirs: [ 38 "system/bt", 39 "system/bt/btcore/include", 40 "system/bt/internal_include", 41 "system/bt/stack/include", 42 ], 43 srcs: [ 44 "tests/avrcp_connection_handler_test.cc", 45 "tests/avrcp_device_test.cc", 46 ], 47 static_libs: [ 48 "libgmock", 49 "lib-bt-packets", 50 "libosi", 51 "liblog", 52 "libcutils", 53 "libbtdevice", 54 "avrcp-target-service", 55 ], 56 shared_libs: [ 57 "libchrome", 58 ], 59 sanitize: { 60 cfi: false, 61 }, 62 63 cflags: ["-DBUILDCFG"], 64} 65 66cc_fuzz { 67 name: "avrcp_device_fuzz", 68 host_supported: true, 69 defaults: [ 70 "fluoride_defaults_fuzzable", 71 ], 72 srcs: [ 73 "tests/avrcp_device_fuzz/avrcp_device_fuzz.cc", 74 ], 75 include_dirs: [ 76 "system/bt", 77 "system/bt/packet/tests", 78 "system/bt/btcore/include", 79 "system/bt/internal_include", 80 "system/bt/stack/include", 81 ], 82 static_libs: [ 83 "avrcp-target-service", 84 "lib-bt-packets", 85 "libbase", 86 "libchrome", 87 "libcutils", 88 "libevent", 89 "liblog", 90 "libstatslog", 91 ], 92 header_libs: ["libbluetooth_headers"], 93 corpus: [ 94 "tests/avrcp_device_fuzz/corpus/*", 95 ], 96} 97