blob: c15df7dfb5710af03fadef311534c7b49f1e1948 [file] [log] [blame]
Paul Duffin691f1a42019-11-14 17:52:25 +00001// Copyright (C) 2020 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
Paul Duffin71f7aff2020-09-15 16:45:49 +010015// Additional visibility to add to the prebuilt modules that are part of
16// the snapshots of the ART sdk/module_exports to ensure that they are
17// visible to each other.
18prebuilt_visibility = [
19 // TODO(b/155921753): Restrict this when prebuilts are in their proper
20 // locations.
21 "//prebuilts:__subpackages__",
22]
23
Paul Duffin691f1a42019-11-14 17:52:25 +000024// The SDK for the art module apex.
25sdk {
26 name: "art-module-sdk",
Paul Duffin1dc987a2020-02-21 16:30:40 +000027 host_supported: true,
Paul Duffin71f7aff2020-09-15 16:45:49 +010028
29 prebuilt_visibility: prebuilt_visibility,
30
Paul Duffin1dc987a2020-02-21 16:30:40 +000031 native_header_libs: [
Paul Duffind4c45e62020-03-05 08:30:16 +000032 "jni_headers",
Paul Duffin1dc987a2020-02-21 16:30:40 +000033 "libnativehelper_header_only",
Paul Duffina7d98b92020-01-13 16:29:13 +000034 ],
Paul Duffind4c45e62020-03-05 08:30:16 +000035 native_shared_libs: [
36 "libandroidio",
37 ],
Paul Duffin1dc987a2020-02-21 16:30:40 +000038 target: {
39 android: {
Paul Duffind4c45e62020-03-05 08:30:16 +000040 java_header_libs: [
41 // Needed by any module that builds against any non-numeric
42 // sdk_version other than "none".
43 //
44 // This is actually only used for compiling Java 8 and kotlin.
45 // Java 9 uses system modules which encapsulates this
46 // internally.
47 "core-lambda-stubs",
48
49 // Needed by any module that builds against any non-numeric
50 // sdk_version other than "none" or "core_platform".
51 //
52 // This is actually only used for compiling Java 8 and kotlin.
53 // Java 9 uses system modules which encapsulates this
54 // internally.
55 "core.current.stubs",
56
57 // Needed by any module that builds against an sdk_version of
58 // "core_platform".
59 //
60 // This is actually only used for compiling Java 8 and kotlin.
61 // Java 9 uses system modules which encapsulates this
62 // internally.
Pete Gillinf0ccfa92020-06-02 16:01:28 +010063 "legacy.core.platform.api.stubs",
Paul Duffine52be922020-07-24 14:44:23 +010064 "stable.core.platform.api.stubs",
Paul Duffind4c45e62020-03-05 08:30:16 +000065 ],
66
Paul Duffin1dc987a2020-02-21 16:30:40 +000067 java_system_modules: [
68 "art-module-public-api-stubs-system-modules",
69 "art-module-intra-core-api-stubs-system-modules",
Pete Gillinf0ccfa92020-06-02 16:01:28 +010070 "legacy-art-module-platform-api-stubs-system-modules",
Paul Duffine52be922020-07-24 14:44:23 +010071 "stable-art-module-platform-api-stubs-system-modules",
Paul Duffind4c45e62020-03-05 08:30:16 +000072 "core-current-stubs-system-modules",
Pete Gillinf0ccfa92020-06-02 16:01:28 +010073 "legacy-core-platform-api-stubs-system-modules",
Paul Duffine52be922020-07-24 14:44:23 +010074 "stable-core-platform-api-stubs-system-modules",
Paul Duffin1dc987a2020-02-21 16:30:40 +000075 ],
Paul Duffin1dc987a2020-02-21 16:30:40 +000076 },
Paul Duffind4c45e62020-03-05 08:30:16 +000077 darwin: {
78 enabled: false,
79 },
Paul Duffin1dc987a2020-02-21 16:30:40 +000080 },
Paul Duffin691f1a42019-11-14 17:52:25 +000081}
82
83// Exported host tools and libraries.
84module_exports {
85 name: "art-module-host-exports",
86 host_supported: true,
87 device_supported: false,
Paul Duffin71f7aff2020-09-15 16:45:49 +010088
89 prebuilt_visibility: prebuilt_visibility,
90
Paul Duffinb9647942020-02-20 13:20:44 +000091 target: {
92 host: {
93 // Set in target.host because the top level compile_multilib
94 // property is fixed to "both" in the sdk/module_exports
95 // implementation and cannot be overridden any other way.
96 compile_multilib: "64",
Paul Duffind4c45e62020-03-05 08:30:16 +000097
98 java_libs: [
99 "timezone-host",
100 ],
101 native_binaries: [
102 "hiddenapi",
103 "dex2oat",
104 "dex2oatd",
105 ],
106 native_shared_libs: [
107 // The following three libraries are internal implementation libraries
108 // that are needed by hiddenapi.
109 // TODO(http://b/155372760): Remove dependencies.
110 "libartbase",
111 "libartpalette",
112 "libdexfile",
113 ],
Paul Duffinb9647942020-02-20 13:20:44 +0000114 },
Paul Duffin1c85efd2020-02-25 17:30:31 +0000115 darwin: {
116 enabled: false,
117 },
Paul Duffinb9647942020-02-20 13:20:44 +0000118 },
Paul Duffin691f1a42019-11-14 17:52:25 +0000119}
Paul Duffin691f1a42019-11-14 17:52:25 +0000120
121// Exported tests and supporting libraries
122module_exports {
123 name: "art-module-test-exports",
Paul Duffind4c45e62020-03-05 08:30:16 +0000124 host_supported: true,
Paul Duffin71f7aff2020-09-15 16:45:49 +0100125
126 prebuilt_visibility: prebuilt_visibility,
127
Paul Duffin691f1a42019-11-14 17:52:25 +0000128 java_libs: [
Paul Duffind4c45e62020-03-05 08:30:16 +0000129 // The following bouncycastle modules are required by:
130 // * conscrypt-benchmarks (all)
131 // * conscrypt-tests (all)
132 // * signapk (all except ocsp)
133 "bouncycastle-unbundled",
134 "bouncycastle-bcpkix-unbundled",
135 "bouncycastle-ocsp-unbundled",
Paul Duffin691f1a42019-11-14 17:52:25 +0000136 ],
Paul Duffind4c45e62020-03-05 08:30:16 +0000137 target: {
138 android: {
139 java_libs: [
140 "core-compat-test-rules",
141 "core-compat-test-rules",
142 "core-test-rules",
143 "core-tests-support",
144 "okhttp-tests-nojarjar",
145 ],
146 java_tests: [
147 "libcore-crypto-tests",
148 ],
149 native_shared_libs: [
150 "libjavacoretests",
151 ],
152 },
153 darwin: {
154 enabled: false,
155 },
156 },
Paul Duffin691f1a42019-11-14 17:52:25 +0000157}