xref: /aosp_15_r20/external/flac/Android.bp (revision 600f14f40d737144c998e2ec7a483122d3776fbc)
1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND [email protected] BEFORE
3//     DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5    default_applicable_licenses: ["external_flac_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//
22// large-scale-change included anything that looked like it might be a license
23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
24//
25// Please consider removing redundant or irrelevant files from 'license_text:'.
26// See: http://go/android-license-faq
27license {
28    name: "external_flac_license",
29    visibility: [":__subpackages__"],
30    license_kinds: [
31        "SPDX-license-identifier-Apache-2.0",
32        "SPDX-license-identifier-BSD",
33        "SPDX-license-identifier-GFDL", // by exception only
34        "SPDX-license-identifier-GPL",
35        "SPDX-license-identifier-GPL-2.0",
36        "SPDX-license-identifier-LGPL",
37        "SPDX-license-identifier-LGPL-2.1",
38        "SPDX-license-identifier-LGPL-3.0",
39        "SPDX-license-identifier-MIT",
40        "legacy_unencumbered",
41    ],
42    license_text: [
43        "COPYING.FDL",
44        "COPYING.GPL",
45        "COPYING.LGPL",
46        "COPYING.Xiph",
47        "NOTICE",
48    ],
49}
50
51cc_library_headers {
52    name: "libFLAC-config",
53    export_include_dirs: ["."],
54    vendor_available: true,
55    host_supported: true,
56    target: {
57        darwin: {
58            enabled: false,
59        },
60    },
61    min_sdk_version: "29",
62    apex_available: [
63        "//apex_available:platform",
64        "com.android.media",
65        "com.android.media.swcodec",
66        "test_com.android.media.swcodec",
67    ],
68
69}
70
71cc_library_headers {
72    name: "libFLAC-headers",
73    export_include_dirs: ["include"],
74    vendor_available: true,
75    host_supported: true,
76    target: {
77        darwin: {
78            enabled: false,
79        },
80    },
81    min_sdk_version: "29",
82    apex_available: [
83        "//apex_available:platform",
84        "com.android.media",
85        "com.android.media.swcodec",
86        "test_com.android.media.swcodec",
87    ],
88
89}
90
91subdirs = ["src/libFLAC"]
92