Alex Light | b69d2d3 | 2018-02-21 13:37:17 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "art_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["art_license"], |
| 24 | } |
| 25 | |
Alex Light | b69d2d3 | 2018-02-21 13:37:17 -0800 | [diff] [blame] | 26 | python_binary_host { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 27 | name: "generate_operator_out", |
| 28 | srcs: [ |
| 29 | "generate_operator_out.py", |
| 30 | ], |
Alex Light | b69d2d3 | 2018-02-21 13:37:17 -0800 | [diff] [blame] | 31 | } |
Paul Duffin | 8e6bf10 | 2019-05-24 11:31:01 +0100 | [diff] [blame] | 32 | |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 33 | soong_config_module_type_import { |
| 34 | from: "art/build/SoongConfig.bp", |
| 35 | module_types: [ |
| 36 | "art_module_sh_binary", |
| 37 | ], |
| 38 | } |
| 39 | |
Paul Duffin | 8e6bf10 | 2019-05-24 11:31:01 +0100 | [diff] [blame] | 40 | // Copy the art shell script to the host and target's bin directory |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 41 | art_module_sh_binary { |
Paul Duffin | 8e6bf10 | 2019-05-24 11:31:01 +0100 | [diff] [blame] | 42 | name: "art-script", |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 43 | |
| 44 | // Disable this script in prebuilt mode since it depends on dalvikvm which |
| 45 | // isn't a prebuilt. |
| 46 | // TODO(b/172480617): Clean up when sources are gone from the platform tree |
| 47 | // and we no longer need to support sources present when prebuilts are used. |
| 48 | enabled: false, |
| 49 | soong_config_variables: { |
| 50 | source_build: { |
| 51 | enabled: true, |
| 52 | }, |
| 53 | }, |
| 54 | |
Paul Duffin | 8e6bf10 | 2019-05-24 11:31:01 +0100 | [diff] [blame] | 55 | host_supported: true, |
| 56 | src: "art", |
| 57 | filename_from_src: true, |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 58 | target: { |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 59 | host: { |
Martin Stjernholm | c194efe | 2021-02-16 11:07:14 +0000 | [diff] [blame] | 60 | // On device we require the ART APEX, but its Soong module name may |
| 61 | // be different depending on branch, and it's always present anyway, |
| 62 | // so we leave it out. |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 63 | required: [ |
| 64 | "dalvikvm", |
| 65 | "dex2oat", |
| 66 | ], |
| 67 | }, |
Yo Chiang | e492f7e | 2020-08-07 04:22:18 +0000 | [diff] [blame] | 68 | darwin: { |
| 69 | enabled: false, |
| 70 | }, |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 71 | windows: { |
| 72 | // When the module is enabled globally in the soong_config_variables |
| 73 | // stanza above, it gets enabled on windows too. Hence we need to |
| 74 | // disable it explicitly. |
| 75 | // TODO(b/172480617): Clean up with that. |
| 76 | enabled: false, |
| 77 | }, |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 78 | }, |
Paul Duffin | 8e6bf10 | 2019-05-24 11:31:01 +0100 | [diff] [blame] | 79 | } |
Nicolas Geoffray | e84f53e | 2020-05-15 16:50:17 +0100 | [diff] [blame] | 80 | |
| 81 | sh_binary { |
| 82 | name: "dex2oat-script", |
| 83 | host_supported: true, |
| 84 | src: "dex2oat_wrapper", |
| 85 | filename_from_src: true, |
| 86 | target: { |
Nicolas Geoffray | e84f53e | 2020-05-15 16:50:17 +0100 | [diff] [blame] | 87 | host: { |
Martin Stjernholm | c194efe | 2021-02-16 11:07:14 +0000 | [diff] [blame] | 88 | // On device we require the ART APEX, but its Soong module name may |
| 89 | // be different depending on branch, and it's always present anyway, |
| 90 | // so we leave it out. |
Nicolas Geoffray | e84f53e | 2020-05-15 16:50:17 +0100 | [diff] [blame] | 91 | required: [ |
| 92 | "dex2oat", |
| 93 | ], |
| 94 | }, |
Yo Chiang | e492f7e | 2020-08-07 04:22:18 +0000 | [diff] [blame] | 95 | darwin: { |
| 96 | enabled: false, |
| 97 | }, |
Nicolas Geoffray | e84f53e | 2020-05-15 16:50:17 +0100 | [diff] [blame] | 98 | }, |
| 99 | } |
Orion Hodson | 267832d | 2020-08-27 15:13:10 +0100 | [diff] [blame] | 100 | |
Daniil Riazanovskiy | 1ca19bc | 2020-10-01 00:32:21 +0000 | [diff] [blame] | 101 | python_binary_host { |
| 102 | name: "art-run-test-checker", |
| 103 | srcs: [ |
| 104 | "checker/**/*.py", |
| 105 | ], |
| 106 | main: "checker/checker.py", |
| 107 | version: { |
| 108 | py2: { |
| 109 | enabled: false, |
| 110 | }, |
| 111 | py3: { |
| 112 | enabled: true, |
| 113 | }, |
| 114 | }, |
| 115 | test_suites: [ |
| 116 | "general-tests", |
Roland Levillain | 6ef7072 | 2021-10-27 15:46:18 +0000 | [diff] [blame] | 117 | "mts-art", |
Daniil Riazanovskiy | 1ca19bc | 2020-10-01 00:32:21 +0000 | [diff] [blame] | 118 | ], |
| 119 | } |