blob: be6185e6a7d8b2593a580ceee32aee256add69a0 [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 Seifert71b5dbf2020-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 Han90334d02020-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"],
64}
65
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050066filegroup {
67 name: "com.android.media-androidManifest",
68 srcs: ["AndroidManifest-media.xml"],
69}
70
71filegroup {
72 name: "com.android.media.swcodec-androidManifest",
73 srcs: ["AndroidManifest-swcodec.xml"],
74}
75
Dongwon Kang28052d52019-02-14 21:49:08 -080076apex_defaults {
77 name: "com.android.media.swcodec-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090078 updatable: true,
Chong Zhang9bda4522019-02-27 13:43:50 -080079 binaries: [
80 "mediaswcodec",
81 ],
82 prebuilts: [
83 "com.android.media.swcodec-mediaswcodec.rc",
84 "com.android.media.swcodec-ld.config.txt",
85 "mediaswcodec.policy",
Ray Essick44574862020-02-13 12:39:14 -080086 "code_coverage.policy",
87 "crash_dump.policy",
Lajos Molnar882d2382019-04-08 17:47:33 -070088 "mediaswcodec.xml",
Chong Zhang0b83feb2018-12-20 17:44:13 -080089 ],
90 use_vendor: true,
91 key: "com.android.media.swcodec.key",
Jiyong Park77057912019-02-11 12:30:20 +090092 certificate: ":com.android.media.swcodec.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050093
94 // Use a custom AndroidManifest.xml used for API targeting.
95 androidManifest: ":com.android.media.swcodec-androidManifest",
Jooyung Han90334d02020-03-12 18:22:20 +090096
97 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
98 // min_sdk_version should be 29. This enables the build system to make
99 // sure the package compatible to Android 10 in two ways:
100 // - build the APEX package compatible to Android 10
101 // so that the package can be installed.
102 // - build artifacts (lib/javalib/bin) against Android 10 SDK
103 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +0900104 min_sdk_version: "29",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800105}
106
Chong Zhang9bda4522019-02-27 13:43:50 -0800107prebuilt_etc {
108 name: "com.android.media.swcodec-mediaswcodec.rc",
109 src: "mediaswcodec.rc",
110 filename: "init.rc",
111 installable: false,
112}
113
114prebuilt_etc {
115 name: "com.android.media.swcodec-ld.config.txt",
116 src: "ld.config.txt",
117 filename: "ld.config.txt",
118 installable: false,
119}
120
Dongwon Kang28052d52019-02-14 21:49:08 -0800121apex {
122 name: "com.android.media.swcodec",
123 manifest: "manifest_codec.json",
124 defaults: ["com.android.media.swcodec-defaults"],
125}
126
Dongwon Kangb188ad82018-11-09 16:05:43 -0800127apex_key {
Dongwon Kang1d3b2e72018-11-13 13:58:38 -0800128 name: "com.android.media.key",
Jiyong Park7733ba62018-11-22 16:28:07 +0900129 public_key: "com.android.media.avbpubkey",
130 private_key: "com.android.media.pem",
Dongwon Kangb188ad82018-11-09 16:05:43 -0800131}
Chong Zhang0b83feb2018-12-20 17:44:13 -0800132
133apex_key {
134 name: "com.android.media.swcodec.key",
135 public_key: "com.android.media.swcodec.avbpubkey",
136 private_key: "com.android.media.swcodec.pem",
137}
Jiyong Park3ef4f712019-02-11 11:00:31 +0900138
139android_app_certificate {
140 name: "com.android.media.certificate",
141 certificate: "com.android.media",
142}
Jiyong Park77057912019-02-11 12:30:20 +0900143
144android_app_certificate {
145 name: "com.android.media.swcodec.certificate",
146 certificate: "com.android.media.swcodec",
147}