blob: fac383145025cd79a450fa7fe01b6536a903907d [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
Dongwon Kang28052d52019-02-14 21:49:08 -080015apex_defaults {
16 name: "com.android.media-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090017 updatable: true,
Dongwon Kang7668c022019-01-15 20:06:35 -080018 java_libs: ["updatable-media"],
Dongwon Kang8bd93d32019-05-03 14:58:08 +000019 multilib: {
20 first: {
21 // Extractor process runs only with the primary ABI.
22 native_shared_libs: [
23 // Extractor plugins
24 "libaacextractor",
25 "libamrextractor",
26 "libflacextractor",
27 "libmidiextractor",
28 "libmkvextractor",
29 "libmp3extractor",
30 "libmp4extractor",
31 "libmpeg2extractor",
32 "liboggextractor",
33 "libwavextractor",
Santiago Seifert149f0582020-08-11 17:58:41 +010034 // JNI
35 "libmediaparser-jni"
Dongwon Kang8bd93d32019-05-03 14:58:08 +000036 ],
37 },
38 },
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070039 prebuilts: [
40 "mediaextractor.policy",
Ray Essick44574862020-02-13 12:39:14 -080041 "code_coverage.policy",
42 "crash_dump.policy",
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070043 ],
Dongwon Kang1d3b2e72018-11-13 13:58:38 -080044 key: "com.android.media.key",
Jiyong Park3ef4f712019-02-11 11:00:31 +090045 certificate: ":com.android.media.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050046
47 // Use a custom AndroidManifest.xml used for API targeting.
48 androidManifest: ":com.android.media-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +090049
50 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
51 // min_sdk_version should be 29. This enables the build system to make
52 // sure the package compatible to Android 10 in two ways:
53 // - build the APEX package compatible to Android 10
54 // so that the package can be installed.
55 // - build artifacts (lib/javalib/bin) against Android 10 SDK
56 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +090057 min_sdk_version: "29",
Dongwon Kangb188ad82018-11-09 16:05:43 -080058}
59
Chong Zhang0b83feb2018-12-20 17:44:13 -080060apex {
Dongwon Kang28052d52019-02-14 21:49:08 -080061 name: "com.android.media",
62 manifest: "manifest.json",
63 defaults: ["com.android.media-defaults"],
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090064 prebuilts: [
65 "media-linker-config",
66 ],
67}
68
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090069linker_config {
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090070 name: "media-linker-config",
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090071 src: "linker.config.json",
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090072 installable: false,
Dongwon Kang28052d52019-02-14 21:49:08 -080073}
74
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050075filegroup {
76 name: "com.android.media-androidManifest",
77 srcs: ["AndroidManifest-media.xml"],
78}
79
80filegroup {
81 name: "com.android.media.swcodec-androidManifest",
82 srcs: ["AndroidManifest-swcodec.xml"],
83}
84
Dongwon Kang28052d52019-02-14 21:49:08 -080085apex_defaults {
86 name: "com.android.media.swcodec-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090087 updatable: true,
Chong Zhang9bda4522019-02-27 13:43:50 -080088 binaries: [
89 "mediaswcodec",
90 ],
91 prebuilts: [
92 "com.android.media.swcodec-mediaswcodec.rc",
93 "com.android.media.swcodec-ld.config.txt",
94 "mediaswcodec.policy",
Ray Essick44574862020-02-13 12:39:14 -080095 "code_coverage.policy",
96 "crash_dump.policy",
Lajos Molnar882d2382019-04-08 17:47:33 -070097 "mediaswcodec.xml",
Chong Zhang0b83feb2018-12-20 17:44:13 -080098 ],
99 use_vendor: true,
100 key: "com.android.media.swcodec.key",
Jiyong Park77057912019-02-11 12:30:20 +0900101 certificate: ":com.android.media.swcodec.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -0500102
103 // Use a custom AndroidManifest.xml used for API targeting.
104 androidManifest: ":com.android.media.swcodec-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +0900105
106 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
107 // min_sdk_version should be 29. This enables the build system to make
108 // sure the package compatible to Android 10 in two ways:
109 // - build the APEX package compatible to Android 10
110 // so that the package can be installed.
111 // - build artifacts (lib/javalib/bin) against Android 10 SDK
112 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +0900113 min_sdk_version: "29",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800114}
115
Chong Zhang9bda4522019-02-27 13:43:50 -0800116prebuilt_etc {
117 name: "com.android.media.swcodec-mediaswcodec.rc",
118 src: "mediaswcodec.rc",
119 filename: "init.rc",
120 installable: false,
121}
122
123prebuilt_etc {
124 name: "com.android.media.swcodec-ld.config.txt",
125 src: "ld.config.txt",
126 filename: "ld.config.txt",
127 installable: false,
128}
129
Dongwon Kang28052d52019-02-14 21:49:08 -0800130apex {
131 name: "com.android.media.swcodec",
132 manifest: "manifest_codec.json",
133 defaults: ["com.android.media.swcodec-defaults"],
134}
135
Dongwon Kangb188ad82018-11-09 16:05:43 -0800136apex_key {
Dongwon Kang1d3b2e72018-11-13 13:58:38 -0800137 name: "com.android.media.key",
Jiyong Park7733ba62018-11-22 16:28:07 +0900138 public_key: "com.android.media.avbpubkey",
139 private_key: "com.android.media.pem",
Dongwon Kangb188ad82018-11-09 16:05:43 -0800140}
Chong Zhang0b83feb2018-12-20 17:44:13 -0800141
142apex_key {
143 name: "com.android.media.swcodec.key",
144 public_key: "com.android.media.swcodec.avbpubkey",
145 private_key: "com.android.media.swcodec.pem",
146}
Jiyong Park3ef4f712019-02-11 11:00:31 +0900147
148android_app_certificate {
149 name: "com.android.media.certificate",
150 certificate: "com.android.media",
151}
Jiyong Park77057912019-02-11 12:30:20 +0900152
153android_app_certificate {
154 name: "com.android.media.swcodec.certificate",
155 certificate: "com.android.media.swcodec",
156}