blob: 4d194bdde0c44a168f64ad97637190b3fb2d41d2 [file] [log] [blame]
Dongwon Kangb188ad82018-11-09 16:05:43 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour948e6aa2021-02-12 21:02:31 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_av_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_av_license"],
22}
23
Dongwon Kang28052d52019-02-14 21:49:08 -080024apex_defaults {
25 name: "com.android.media-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090026 updatable: true,
Dongwon Kang7668c022019-01-15 20:06:35 -080027 java_libs: ["updatable-media"],
Dongwon Kang8bd93d32019-05-03 14:58:08 +000028 multilib: {
29 first: {
30 // Extractor process runs only with the primary ABI.
31 native_shared_libs: [
32 // Extractor plugins
33 "libaacextractor",
34 "libamrextractor",
35 "libflacextractor",
36 "libmidiextractor",
37 "libmkvextractor",
38 "libmp3extractor",
39 "libmp4extractor",
40 "libmpeg2extractor",
41 "liboggextractor",
42 "libwavextractor",
Santiago Seifert149f0582020-08-11 17:58:41 +010043 // JNI
44 "libmediaparser-jni"
Dongwon Kang8bd93d32019-05-03 14:58:08 +000045 ],
46 },
47 },
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070048 prebuilts: [
49 "mediaextractor.policy",
Ray Essick44574862020-02-13 12:39:14 -080050 "code_coverage.policy",
51 "crash_dump.policy",
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070052 ],
Dongwon Kang1d3b2e72018-11-13 13:58:38 -080053 key: "com.android.media.key",
Jiyong Park3ef4f712019-02-11 11:00:31 +090054 certificate: ":com.android.media.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050055
56 // Use a custom AndroidManifest.xml used for API targeting.
57 androidManifest: ":com.android.media-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +090058
59 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
60 // min_sdk_version should be 29. This enables the build system to make
61 // sure the package compatible to Android 10 in two ways:
62 // - build the APEX package compatible to Android 10
63 // so that the package can be installed.
64 // - build artifacts (lib/javalib/bin) against Android 10 SDK
65 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +090066 min_sdk_version: "29",
Dongwon Kangb188ad82018-11-09 16:05:43 -080067}
68
Chong Zhang0b83feb2018-12-20 17:44:13 -080069apex {
Dongwon Kang28052d52019-02-14 21:49:08 -080070 name: "com.android.media",
71 manifest: "manifest.json",
72 defaults: ["com.android.media-defaults"],
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090073 prebuilts: [
74 "media-linker-config",
75 ],
76}
77
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090078linker_config {
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090079 name: "media-linker-config",
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090080 src: "linker.config.json",
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090081 installable: false,
Dongwon Kang28052d52019-02-14 21:49:08 -080082}
83
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050084filegroup {
85 name: "com.android.media-androidManifest",
86 srcs: ["AndroidManifest-media.xml"],
87}
88
89filegroup {
90 name: "com.android.media.swcodec-androidManifest",
91 srcs: ["AndroidManifest-swcodec.xml"],
92}
93
Dongwon Kang28052d52019-02-14 21:49:08 -080094apex_defaults {
95 name: "com.android.media.swcodec-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090096 updatable: true,
Chong Zhang9bda4522019-02-27 13:43:50 -080097 binaries: [
98 "mediaswcodec",
99 ],
100 prebuilts: [
101 "com.android.media.swcodec-mediaswcodec.rc",
102 "com.android.media.swcodec-ld.config.txt",
103 "mediaswcodec.policy",
Ray Essick44574862020-02-13 12:39:14 -0800104 "code_coverage.policy",
105 "crash_dump.policy",
Lajos Molnar882d2382019-04-08 17:47:33 -0700106 "mediaswcodec.xml",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800107 ],
108 use_vendor: true,
109 key: "com.android.media.swcodec.key",
Jiyong Park77057912019-02-11 12:30:20 +0900110 certificate: ":com.android.media.swcodec.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -0500111
112 // Use a custom AndroidManifest.xml used for API targeting.
113 androidManifest: ":com.android.media.swcodec-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +0900114
115 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
116 // min_sdk_version should be 29. This enables the build system to make
117 // sure the package compatible to Android 10 in two ways:
118 // - build the APEX package compatible to Android 10
119 // so that the package can be installed.
120 // - build artifacts (lib/javalib/bin) against Android 10 SDK
121 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +0900122 min_sdk_version: "29",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800123}
124
Chong Zhang9bda4522019-02-27 13:43:50 -0800125prebuilt_etc {
126 name: "com.android.media.swcodec-mediaswcodec.rc",
127 src: "mediaswcodec.rc",
128 filename: "init.rc",
129 installable: false,
130}
131
132prebuilt_etc {
133 name: "com.android.media.swcodec-ld.config.txt",
134 src: "ld.config.txt",
135 filename: "ld.config.txt",
136 installable: false,
137}
138
Dongwon Kang28052d52019-02-14 21:49:08 -0800139apex {
140 name: "com.android.media.swcodec",
141 manifest: "manifest_codec.json",
142 defaults: ["com.android.media.swcodec-defaults"],
143}
144
Dongwon Kangb188ad82018-11-09 16:05:43 -0800145apex_key {
Dongwon Kang1d3b2e72018-11-13 13:58:38 -0800146 name: "com.android.media.key",
Jiyong Park7733ba62018-11-22 16:28:07 +0900147 public_key: "com.android.media.avbpubkey",
148 private_key: "com.android.media.pem",
Dongwon Kangb188ad82018-11-09 16:05:43 -0800149}
Chong Zhang0b83feb2018-12-20 17:44:13 -0800150
151apex_key {
152 name: "com.android.media.swcodec.key",
153 public_key: "com.android.media.swcodec.avbpubkey",
154 private_key: "com.android.media.swcodec.pem",
155}
Jiyong Park3ef4f712019-02-11 11:00:31 +0900156
157android_app_certificate {
158 name: "com.android.media.certificate",
159 certificate: "com.android.media",
160}
Jiyong Park77057912019-02-11 12:30:20 +0900161
162android_app_certificate {
163 name: "com.android.media.swcodec.certificate",
164 certificate: "com.android.media.swcodec",
165}