• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3//     DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5    default_applicable_licenses: ["external_aac_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23    name: "external_aac_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "legacy_by_exception_only", // by exception only
28    ],
29    license_text: [
30        "NOTICE",
31    ],
32}
33
34cc_library_static {
35    name: "libFraunhoferAAC",
36    vendor_available: true,
37    host_supported: true,
38    srcs: [
39        "libAACdec/src/*.cpp",
40        "libAACenc/src/*.cpp",
41        "libPCMutils/src/*.cpp",
42        "libFDK/src/*.cpp",
43        "libSYS/src/*.cpp",
44        "libMpegTPDec/src/*.cpp",
45        "libMpegTPEnc/src/*.cpp",
46        "libSBRdec/src/*.cpp",
47        "libSBRenc/src/*.cpp",
48        "libArithCoding/src/*.cpp",
49        "libDRCdec/src/*.cpp",
50        "libSACdec/src/*.cpp",
51        "libSACenc/src/*.cpp",
52    ],
53    cflags: [
54        "-Werror",
55        "-Wno-unused-parameter",
56        "-Wno-#warnings",
57        "-Wuninitialized",
58        "-Wno-self-assign",
59        "-Wno-implicit-fallthrough",
60        "-DSUPPRESS_BUILD_DATE_INFO",
61    ],
62    sanitize: {
63        misc_undefined: [
64            "unsigned-integer-overflow",
65            "signed-integer-overflow",
66            "bounds",
67        ],
68        cfi: true,
69    },
70    shared_libs: [
71        "liblog",
72    ],
73    export_include_dirs: [
74        "libAACdec/include",
75        "libAACenc/include",
76        "libPCMutils/include",
77        "libFDK/include",
78        "libSYS/include",
79        "libMpegTPDec/include",
80        "libMpegTPEnc/include",
81        "libSBRdec/include",
82        "libSBRenc/include",
83        "libArithCoding/include",
84        "libDRCdec/include",
85        "libSACdec/include",
86        "libSACenc/include",
87    ],
88
89    target: {
90        darwin: {
91            enabled: false,
92        },
93    },
94
95    apex_available: [
96        "//apex_available:platform",
97        "com.android.bluetooth.updatable",
98        "com.android.media.swcodec",
99    ],
100    min_sdk_version: "29",
101}
102