xref: /aosp_15_r20/external/flac/Android.bp (revision 600f14f40d737144c998e2ec7a483122d3776fbc)
1*600f14f4SXin Li// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2*600f14f4SXin Li//     CONSULT THE OWNERS AND [email protected] BEFORE
3*600f14f4SXin Li//     DEPENDING ON IT IN YOUR PROJECT. ***
4*600f14f4SXin Lipackage {
5*600f14f4SXin Li    default_applicable_licenses: ["external_flac_license"],
6*600f14f4SXin Li}
7*600f14f4SXin Li
8*600f14f4SXin Li// Added automatically by a large-scale-change that took the approach of
9*600f14f4SXin Li// 'apply every license found to every target'. While this makes sure we respect
10*600f14f4SXin Li// every license restriction, it may not be entirely correct.
11*600f14f4SXin Li//
12*600f14f4SXin Li// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13*600f14f4SXin Li//
14*600f14f4SXin Li// Please consider splitting the single license below into multiple licenses,
15*600f14f4SXin Li// taking care not to lose any license_kind information, and overriding the
16*600f14f4SXin Li// default license using the 'licenses: [...]' property on targets as needed.
17*600f14f4SXin Li//
18*600f14f4SXin Li// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19*600f14f4SXin Li// to attach the license to, and including a comment whether the files may be
20*600f14f4SXin Li// used in the current project.
21*600f14f4SXin Li//
22*600f14f4SXin Li// large-scale-change included anything that looked like it might be a license
23*600f14f4SXin Li// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
24*600f14f4SXin Li//
25*600f14f4SXin Li// Please consider removing redundant or irrelevant files from 'license_text:'.
26*600f14f4SXin Li// See: http://go/android-license-faq
27*600f14f4SXin Lilicense {
28*600f14f4SXin Li    name: "external_flac_license",
29*600f14f4SXin Li    visibility: [":__subpackages__"],
30*600f14f4SXin Li    license_kinds: [
31*600f14f4SXin Li        "SPDX-license-identifier-Apache-2.0",
32*600f14f4SXin Li        "SPDX-license-identifier-BSD",
33*600f14f4SXin Li        "SPDX-license-identifier-GFDL", // by exception only
34*600f14f4SXin Li        "SPDX-license-identifier-GPL",
35*600f14f4SXin Li        "SPDX-license-identifier-GPL-2.0",
36*600f14f4SXin Li        "SPDX-license-identifier-LGPL",
37*600f14f4SXin Li        "SPDX-license-identifier-LGPL-2.1",
38*600f14f4SXin Li        "SPDX-license-identifier-LGPL-3.0",
39*600f14f4SXin Li        "SPDX-license-identifier-MIT",
40*600f14f4SXin Li        "legacy_unencumbered",
41*600f14f4SXin Li    ],
42*600f14f4SXin Li    license_text: [
43*600f14f4SXin Li        "COPYING.FDL",
44*600f14f4SXin Li        "COPYING.GPL",
45*600f14f4SXin Li        "COPYING.LGPL",
46*600f14f4SXin Li        "COPYING.Xiph",
47*600f14f4SXin Li        "NOTICE",
48*600f14f4SXin Li    ],
49*600f14f4SXin Li}
50*600f14f4SXin Li
51*600f14f4SXin Licc_library_headers {
52*600f14f4SXin Li    name: "libFLAC-config",
53*600f14f4SXin Li    export_include_dirs: ["."],
54*600f14f4SXin Li    vendor_available: true,
55*600f14f4SXin Li    host_supported: true,
56*600f14f4SXin Li    target: {
57*600f14f4SXin Li        darwin: {
58*600f14f4SXin Li            enabled: false,
59*600f14f4SXin Li        },
60*600f14f4SXin Li    },
61*600f14f4SXin Li    min_sdk_version: "29",
62*600f14f4SXin Li    apex_available: [
63*600f14f4SXin Li        "//apex_available:platform",
64*600f14f4SXin Li        "com.android.media",
65*600f14f4SXin Li        "com.android.media.swcodec",
66*600f14f4SXin Li        "test_com.android.media.swcodec",
67*600f14f4SXin Li    ],
68*600f14f4SXin Li
69*600f14f4SXin Li}
70*600f14f4SXin Li
71*600f14f4SXin Licc_library_headers {
72*600f14f4SXin Li    name: "libFLAC-headers",
73*600f14f4SXin Li    export_include_dirs: ["include"],
74*600f14f4SXin Li    vendor_available: true,
75*600f14f4SXin Li    host_supported: true,
76*600f14f4SXin Li    target: {
77*600f14f4SXin Li        darwin: {
78*600f14f4SXin Li            enabled: false,
79*600f14f4SXin Li        },
80*600f14f4SXin Li    },
81*600f14f4SXin Li    min_sdk_version: "29",
82*600f14f4SXin Li    apex_available: [
83*600f14f4SXin Li        "//apex_available:platform",
84*600f14f4SXin Li        "com.android.media",
85*600f14f4SXin Li        "com.android.media.swcodec",
86*600f14f4SXin Li        "test_com.android.media.swcodec",
87*600f14f4SXin Li    ],
88*600f14f4SXin Li
89*600f14f4SXin Li}
90*600f14f4SXin Li
91*600f14f4SXin Lisubdirs = ["src/libFLAC"]
92