Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 1 | // 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 Duffin | 71f7aff | 2020-09-15 16:45:49 +0100 | [diff] [blame] | 15 | // 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. |
| 18 | prebuilt_visibility = [ |
| 19 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 20 | // locations. |
| 21 | "//prebuilts:__subpackages__", |
| 22 | ] |
| 23 | |
Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 24 | // The SDK for the art module apex. |
| 25 | sdk { |
| 26 | name: "art-module-sdk", |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 27 | host_supported: true, |
Paul Duffin | 71f7aff | 2020-09-15 16:45:49 +0100 | [diff] [blame] | 28 | |
| 29 | prebuilt_visibility: prebuilt_visibility, |
| 30 | |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 31 | native_header_libs: [ |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 32 | "jni_headers", |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 33 | "libnativehelper_header_only", |
Paul Duffin | a7d98b9 | 2020-01-13 16:29:13 +0000 | [diff] [blame] | 34 | ], |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 35 | native_shared_libs: [ |
| 36 | "libandroidio", |
| 37 | ], |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 38 | target: { |
| 39 | android: { |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 40 | 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 Gillin | f0ccfa9 | 2020-06-02 16:01:28 +0100 | [diff] [blame] | 63 | "legacy.core.platform.api.stubs", |
Paul Duffin | e52be92 | 2020-07-24 14:44:23 +0100 | [diff] [blame] | 64 | "stable.core.platform.api.stubs", |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 65 | ], |
| 66 | |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 67 | java_system_modules: [ |
| 68 | "art-module-public-api-stubs-system-modules", |
| 69 | "art-module-intra-core-api-stubs-system-modules", |
Pete Gillin | f0ccfa9 | 2020-06-02 16:01:28 +0100 | [diff] [blame] | 70 | "legacy-art-module-platform-api-stubs-system-modules", |
Paul Duffin | e52be92 | 2020-07-24 14:44:23 +0100 | [diff] [blame] | 71 | "stable-art-module-platform-api-stubs-system-modules", |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 72 | "core-current-stubs-system-modules", |
Pete Gillin | f0ccfa9 | 2020-06-02 16:01:28 +0100 | [diff] [blame] | 73 | "legacy-core-platform-api-stubs-system-modules", |
Paul Duffin | e52be92 | 2020-07-24 14:44:23 +0100 | [diff] [blame] | 74 | "stable-core-platform-api-stubs-system-modules", |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 75 | ], |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 76 | }, |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 77 | darwin: { |
| 78 | enabled: false, |
| 79 | }, |
Paul Duffin | 1dc987a | 2020-02-21 16:30:40 +0000 | [diff] [blame] | 80 | }, |
Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | // Exported host tools and libraries. |
| 84 | module_exports { |
| 85 | name: "art-module-host-exports", |
| 86 | host_supported: true, |
| 87 | device_supported: false, |
Paul Duffin | 71f7aff | 2020-09-15 16:45:49 +0100 | [diff] [blame] | 88 | |
| 89 | prebuilt_visibility: prebuilt_visibility, |
| 90 | |
Paul Duffin | b964794 | 2020-02-20 13:20:44 +0000 | [diff] [blame] | 91 | 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 Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 97 | |
| 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 Duffin | b964794 | 2020-02-20 13:20:44 +0000 | [diff] [blame] | 114 | }, |
Paul Duffin | 1c85efd | 2020-02-25 17:30:31 +0000 | [diff] [blame] | 115 | darwin: { |
| 116 | enabled: false, |
| 117 | }, |
Paul Duffin | b964794 | 2020-02-20 13:20:44 +0000 | [diff] [blame] | 118 | }, |
Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 119 | } |
Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 120 | |
| 121 | // Exported tests and supporting libraries |
| 122 | module_exports { |
| 123 | name: "art-module-test-exports", |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 124 | host_supported: true, |
Paul Duffin | 71f7aff | 2020-09-15 16:45:49 +0100 | [diff] [blame] | 125 | |
| 126 | prebuilt_visibility: prebuilt_visibility, |
| 127 | |
Paul Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 128 | java_libs: [ |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 129 | // 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 Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 136 | ], |
Paul Duffin | d4c45e6 | 2020-03-05 08:30:16 +0000 | [diff] [blame] | 137 | 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 Duffin | 691f1a4 | 2019-11-14 17:52:25 +0000 | [diff] [blame] | 157 | } |