1package { 2 default_team: "trendy_team_fwk_nfc", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "Android-Apache-2.0" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["Android-Apache-2.0"], 9} 10 11cc_defaults { 12 name: "nfc_utils_defaults", 13 include_dirs: [ 14 "packages/modules/Nfc/libnfc-nci", 15 ], 16 cflags: [ 17 "-Wall", 18 "-Werror", 19 ], 20 target: { 21 host_linux: { 22 cflags: ["-D_GNU_SOURCE"], 23 }, 24 darwin: { 25 enabled: false, 26 }, 27 }, 28 sanitize: { 29 integer_overflow: true, 30 misc_undefined: ["bounds"], 31 scs: true, 32 }, 33 34} 35 36cc_library_static { 37 name: "libnfcutils", 38 defaults: ["nfc_utils_defaults"], 39 export_include_dirs: ["include"], 40 host_supported: true, 41 srcs: [ 42 "config.cc", 43 "ringbuffer.cc", 44 ], 45 shared_libs: [ 46 "libbase", 47 ], 48 apex_available: [ 49 "//apex_available:platform", 50 "com.android.nfcservices", 51 ], 52 min_sdk_version: "36", 53 visibility: [ 54 "//hardware/interfaces/nfc/aidl/vts/functional:__subpackages__", 55 "//packages/modules/Nfc:__subpackages__", 56 ], 57} 58 59cc_fuzz { 60 name: "nfc_utils_ringbuffer_fuzzer", 61 host_supported: true, 62 srcs: [ 63 "test/ringbuffer_fuzzer/ringbuffer_fuzzer.cpp", 64 ], 65 static_libs: [ 66 "libnfcutils", 67 ], 68 corpus: [ 69 "test/ringbuffer_fuzzer/corpus/*", 70 ], 71} 72