blob: dabf4c22f49095787f666610b2fbd488cfd197d1 [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",
Nikita Ioffe92353282021-02-04 01:20:01 +000067 // Indicates that pre-installed version of this apex can be compressed.
68 // Whether it actually will be compressed is controlled on per-device basis.
69 compressible: true,
Dongwon Kangb188ad82018-11-09 16:05:43 -080070}
71
Chong Zhang0b83feb2018-12-20 17:44:13 -080072apex {
Dongwon Kang28052d52019-02-14 21:49:08 -080073 name: "com.android.media",
74 manifest: "manifest.json",
75 defaults: ["com.android.media-defaults"],
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090076 prebuilts: [
77 "media-linker-config",
78 ],
79}
80
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090081linker_config {
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090082 name: "media-linker-config",
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090083 src: "linker.config.json",
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090084 installable: false,
Dongwon Kang28052d52019-02-14 21:49:08 -080085}
86
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050087filegroup {
88 name: "com.android.media-androidManifest",
89 srcs: ["AndroidManifest-media.xml"],
90}
91
92filegroup {
93 name: "com.android.media.swcodec-androidManifest",
94 srcs: ["AndroidManifest-swcodec.xml"],
95}
96
Dongwon Kang28052d52019-02-14 21:49:08 -080097apex_defaults {
98 name: "com.android.media.swcodec-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090099 updatable: true,
Chong Zhang9bda4522019-02-27 13:43:50 -0800100 binaries: [
101 "mediaswcodec",
102 ],
103 prebuilts: [
104 "com.android.media.swcodec-mediaswcodec.rc",
105 "com.android.media.swcodec-ld.config.txt",
106 "mediaswcodec.policy",
Ray Essick44574862020-02-13 12:39:14 -0800107 "code_coverage.policy",
108 "crash_dump.policy",
Lajos Molnar882d2382019-04-08 17:47:33 -0700109 "mediaswcodec.xml",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800110 ],
111 use_vendor: true,
112 key: "com.android.media.swcodec.key",
Jiyong Park77057912019-02-11 12:30:20 +0900113 certificate: ":com.android.media.swcodec.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -0500114
115 // Use a custom AndroidManifest.xml used for API targeting.
116 androidManifest: ":com.android.media.swcodec-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +0900117
118 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
119 // min_sdk_version should be 29. This enables the build system to make
120 // sure the package compatible to Android 10 in two ways:
121 // - build the APEX package compatible to Android 10
122 // so that the package can be installed.
123 // - build artifacts (lib/javalib/bin) against Android 10 SDK
124 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +0900125 min_sdk_version: "29",
Nikita Ioffe92353282021-02-04 01:20:01 +0000126 // Indicates that pre-installed version of this apex can be compressed.
127 // Whether it actually will be compressed is controlled on per-device basis.
128 compressible: true,
Chong Zhang0b83feb2018-12-20 17:44:13 -0800129}
130
Chong Zhang9bda4522019-02-27 13:43:50 -0800131prebuilt_etc {
132 name: "com.android.media.swcodec-mediaswcodec.rc",
133 src: "mediaswcodec.rc",
134 filename: "init.rc",
135 installable: false,
136}
137
138prebuilt_etc {
139 name: "com.android.media.swcodec-ld.config.txt",
140 src: "ld.config.txt",
141 filename: "ld.config.txt",
142 installable: false,
143}
144
Dongwon Kang28052d52019-02-14 21:49:08 -0800145apex {
146 name: "com.android.media.swcodec",
147 manifest: "manifest_codec.json",
148 defaults: ["com.android.media.swcodec-defaults"],
149}
150
Dongwon Kangb188ad82018-11-09 16:05:43 -0800151apex_key {
Dongwon Kang1d3b2e72018-11-13 13:58:38 -0800152 name: "com.android.media.key",
Jiyong Park7733ba62018-11-22 16:28:07 +0900153 public_key: "com.android.media.avbpubkey",
154 private_key: "com.android.media.pem",
Dongwon Kangb188ad82018-11-09 16:05:43 -0800155}
Chong Zhang0b83feb2018-12-20 17:44:13 -0800156
157apex_key {
158 name: "com.android.media.swcodec.key",
159 public_key: "com.android.media.swcodec.avbpubkey",
160 private_key: "com.android.media.swcodec.pem",
161}
Jiyong Park3ef4f712019-02-11 11:00:31 +0900162
163android_app_certificate {
164 name: "com.android.media.certificate",
165 certificate: "com.android.media",
166}
Jiyong Park77057912019-02-11 12:30:20 +0900167
168android_app_certificate {
169 name: "com.android.media.swcodec.certificate",
170 certificate: "com.android.media.swcodec",
171}