blob: b7f5c1b08b91ec71d4b446f4867f49414e84e6d0 [file] [log] [blame]
Alex Lightb69d2d32018-02-21 13:37:17 -08001//
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 Badour9150de62021-02-26 03:22:24 -080017package {
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 Lightb69d2d32018-02-21 13:37:17 -080026python_binary_host {
Andreas Gampe0dc93b12019-05-15 10:30:22 -070027 name: "generate_operator_out",
28 srcs: [
29 "generate_operator_out.py",
30 ],
Alex Lightb69d2d32018-02-21 13:37:17 -080031}
Paul Duffin8e6bf102019-05-24 11:31:01 +010032
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010033soong_config_module_type_import {
34 from: "art/build/SoongConfig.bp",
35 module_types: [
36 "art_module_sh_binary",
37 ],
38}
39
Paul Duffin8e6bf102019-05-24 11:31:01 +010040// Copy the art shell script to the host and target's bin directory
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010041art_module_sh_binary {
Paul Duffin8e6bf102019-05-24 11:31:01 +010042 name: "art-script",
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010043
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 Duffin8e6bf102019-05-24 11:31:01 +010055 host_supported: true,
56 src: "art",
57 filename_from_src: true,
Nicolas Geoffrayec64f202020-04-20 15:05:54 +010058 target: {
Nicolas Geoffrayec64f202020-04-20 15:05:54 +010059 host: {
Martin Stjernholmc194efe2021-02-16 11:07:14 +000060 // 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 Geoffrayec64f202020-04-20 15:05:54 +010063 required: [
64 "dalvikvm",
65 "dex2oat",
66 ],
67 },
Yo Chiange492f7e2020-08-07 04:22:18 +000068 darwin: {
69 enabled: false,
70 },
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010071 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 Geoffrayec64f202020-04-20 15:05:54 +010078 },
Paul Duffin8e6bf102019-05-24 11:31:01 +010079}
Nicolas Geoffraye84f53e2020-05-15 16:50:17 +010080
81sh_binary {
82 name: "dex2oat-script",
83 host_supported: true,
84 src: "dex2oat_wrapper",
85 filename_from_src: true,
86 target: {
Nicolas Geoffraye84f53e2020-05-15 16:50:17 +010087 host: {
Martin Stjernholmc194efe2021-02-16 11:07:14 +000088 // 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 Geoffraye84f53e2020-05-15 16:50:17 +010091 required: [
92 "dex2oat",
93 ],
94 },
Yo Chiange492f7e2020-08-07 04:22:18 +000095 darwin: {
96 enabled: false,
97 },
Nicolas Geoffraye84f53e2020-05-15 16:50:17 +010098 },
99}
Orion Hodson267832d2020-08-27 15:13:10 +0100100
Daniil Riazanovskiy1ca19bc2020-10-01 00:32:21 +0000101python_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 Levillain6ef70722021-10-27 15:46:18 +0000117 "mts-art",
Daniil Riazanovskiy1ca19bc2020-10-01 00:32:21 +0000118 ],
119}