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