1package { 2 default_applicable_licenses: ["external_cn-cbor_license"], 3} 4 5// Added automatically by a large-scale-change that took the approach of 6// 'apply every license found to every target'. While this makes sure we respect 7// every license restriction, it may not be entirely correct. 8// 9// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10// 11// Please consider splitting the single license below into multiple licenses, 12// taking care not to lose any license_kind information, and overriding the 13// default license using the 'licenses: [...]' property on targets as needed. 14// 15// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16// to attach the license to, and including a comment whether the files may be 17// used in the current project. 18// See: http://go/android-license-faq 19license { 20 name: "external_cn-cbor_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-Apache-2.0", 24 "SPDX-license-identifier-MIT", 25 ], 26 license_text: [ 27 "LICENSE", 28 ], 29} 30 31cc_library { 32 name: "libcn-cbor", 33 vendor_available: true, 34 srcs: [ 35 "src/cn-cbor.c", 36 "src/cn-create.c", 37 "src/cn-encoder.c", 38 "src/cn-error.c", 39 "src/cn-get.c", 40 ], 41 local_include_dirs: [ 42 "include", 43 ], 44 export_include_dirs: [ 45 "include", 46 ], 47 unique_host_soname: true, 48 host_supported: true, 49 c_std: "gnu99", 50} 51 52cc_test { 53 name: "cn-cbor_test", 54 host_supported: true, 55 srcs: [ 56 "test/cbor_test.c", 57 ], 58 shared_libs: ["libcn-cbor"], 59 gtest: false, 60 c_std: "gnu99", 61} 62