blob: f1851a4115f60ac093a4f2e3fea93ad4df3115d4 [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",
43 ],
44 },
45 },
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070046 prebuilts: [
47 "mediaextractor.policy",
Ray Essick44574862020-02-13 12:39:14 -080048 "code_coverage.policy",
49 "crash_dump.policy",
Marco Nelissen80e1a6d2019-04-30 15:52:10 -070050 ],
Dongwon Kang1d3b2e72018-11-13 13:58:38 -080051 key: "com.android.media.key",
Jiyong Park3ef4f712019-02-11 11:00:31 +090052 certificate: ":com.android.media.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050053
54 // Use a custom AndroidManifest.xml used for API targeting.
55 androidManifest: ":com.android.media-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +090056
57 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
58 // min_sdk_version should be 29. This enables the build system to make
59 // sure the package compatible to Android 10 in two ways:
60 // - build the APEX package compatible to Android 10
61 // so that the package can be installed.
62 // - build artifacts (lib/javalib/bin) against Android 10 SDK
63 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +090064 min_sdk_version: "29",
Dongwon Kangb188ad82018-11-09 16:05:43 -080065}
66
Chong Zhang0b83feb2018-12-20 17:44:13 -080067apex {
Dongwon Kang28052d52019-02-14 21:49:08 -080068 name: "com.android.media",
69 manifest: "manifest.json",
70 defaults: ["com.android.media-defaults"],
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090071 prebuilts: [
72 "media-linker-config",
73 ],
74}
75
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090076linker_config {
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090077 name: "media-linker-config",
Kiyoung Kimb5aa33d2020-10-06 17:43:40 +090078 src: "linker.config.json",
Kiyoung Kim0c5ccf42020-09-09 14:17:30 +090079 installable: false,
Dongwon Kang28052d52019-02-14 21:49:08 -080080}
81
Jeff Hamilton0bce0c62019-03-06 22:23:40 -050082filegroup {
83 name: "com.android.media-androidManifest",
84 srcs: ["AndroidManifest-media.xml"],
85}
86
87filegroup {
88 name: "com.android.media.swcodec-androidManifest",
89 srcs: ["AndroidManifest-swcodec.xml"],
90}
91
Dongwon Kang28052d52019-02-14 21:49:08 -080092apex_defaults {
93 name: "com.android.media.swcodec-defaults",
Jiyong Park61984712020-02-24 18:36:41 +090094 updatable: true,
Chong Zhang9bda4522019-02-27 13:43:50 -080095 binaries: [
96 "mediaswcodec",
97 ],
98 prebuilts: [
99 "com.android.media.swcodec-mediaswcodec.rc",
100 "com.android.media.swcodec-ld.config.txt",
101 "mediaswcodec.policy",
Ray Essick44574862020-02-13 12:39:14 -0800102 "code_coverage.policy",
103 "crash_dump.policy",
Lajos Molnar882d2382019-04-08 17:47:33 -0700104 "mediaswcodec.xml",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800105 ],
106 use_vendor: true,
107 key: "com.android.media.swcodec.key",
Jiyong Park77057912019-02-11 12:30:20 +0900108 certificate: ":com.android.media.swcodec.certificate",
Jeff Hamilton0bce0c62019-03-06 22:23:40 -0500109
110 // Use a custom AndroidManifest.xml used for API targeting.
111 androidManifest: ":com.android.media.swcodec-androidManifest",
Jooyung Han97d7b652020-03-12 18:22:20 +0900112
113 // IMPORTANT: For the APEX to be installed on Android 10 (API 29),
114 // min_sdk_version should be 29. This enables the build system to make
115 // sure the package compatible to Android 10 in two ways:
116 // - build the APEX package compatible to Android 10
117 // so that the package can be installed.
118 // - build artifacts (lib/javalib/bin) against Android 10 SDK
119 // so that the artifacts can run.
Jooyung Han80ec0df2020-03-09 13:10:12 +0900120 min_sdk_version: "29",
Chong Zhang0b83feb2018-12-20 17:44:13 -0800121}
122
Chong Zhang9bda4522019-02-27 13:43:50 -0800123prebuilt_etc {
124 name: "com.android.media.swcodec-mediaswcodec.rc",
125 src: "mediaswcodec.rc",
126 filename: "init.rc",
127 installable: false,
128}
129
130prebuilt_etc {
131 name: "com.android.media.swcodec-ld.config.txt",
132 src: "ld.config.txt",
133 filename: "ld.config.txt",
134 installable: false,
135}
136
Dongwon Kang28052d52019-02-14 21:49:08 -0800137apex {
138 name: "com.android.media.swcodec",
139 manifest: "manifest_codec.json",
140 defaults: ["com.android.media.swcodec-defaults"],
141}
142
Dongwon Kangb188ad82018-11-09 16:05:43 -0800143apex_key {
Dongwon Kang1d3b2e72018-11-13 13:58:38 -0800144 name: "com.android.media.key",
Jiyong Park7733ba62018-11-22 16:28:07 +0900145 public_key: "com.android.media.avbpubkey",
146 private_key: "com.android.media.pem",
Dongwon Kangb188ad82018-11-09 16:05:43 -0800147}
Chong Zhang0b83feb2018-12-20 17:44:13 -0800148
149apex_key {
150 name: "com.android.media.swcodec.key",
151 public_key: "com.android.media.swcodec.avbpubkey",
152 private_key: "com.android.media.swcodec.pem",
153}
Jiyong Park3ef4f712019-02-11 11:00:31 +0900154
155android_app_certificate {
156 name: "com.android.media.certificate",
157 certificate: "com.android.media",
158}
Jiyong Park77057912019-02-11 12:30:20 +0900159
160android_app_certificate {
161 name: "com.android.media.swcodec.certificate",
162 certificate: "com.android.media.swcodec",
163}