• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2015 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
17package {
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    default_team: "trendy_team_art_performance",
25}
26
27cc_library_headers {
28    name: "libart_simulator_headers",
29    host_supported: true,
30    export_include_dirs: ["include"],
31}
32
33cc_defaults {
34    name: "libart_simulator_defaults",
35    host_supported: true,
36    device_supported: false,
37
38    defaults: ["art_defaults"],
39    srcs: [
40        "code_simulator.cc",
41        "code_simulator_arm64.cc",
42    ],
43    shared_libs: [
44        "libbase",
45        "liblog",
46    ],
47    cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"],
48
49    header_libs: ["libart_simulator_headers"],
50}
51
52art_cc_library {
53    name: "libart-simulator",
54    defaults: ["libart_simulator_defaults"],
55    shared_libs: [
56        "libart",
57        "libartbase",
58    ],
59    static_libs: [
60        "libvixl",
61    ],
62}
63
64art_cc_library {
65    name: "libartd-simulator",
66    defaults: [
67        "art_debug_defaults",
68        "libart_simulator_defaults",
69    ],
70    shared_libs: [
71        "libartd",
72        "libartbased",
73    ],
74    static_libs: [
75        "libvixld",
76    ],
77}
78
79cc_defaults {
80    name: "libart_simulator_container_defaults",
81    host_supported: true,
82
83    defaults: ["art_defaults"],
84    srcs: [
85        "code_simulator_container.cc",
86    ],
87    header_libs: [
88        "libart_simulator_headers",
89        "libbase_headers",
90        "libart_headers",
91        "art_libartbase_headers",
92    ],
93    export_include_dirs: ["."], // TODO: Consider a proper separation.
94}
95
96art_cc_library_static {
97    name: "libart-simulator-container",
98    defaults: ["libart_simulator_container_defaults"],
99}
100
101art_cc_library_static {
102    name: "libartd-simulator-container",
103    defaults: [
104        "art_debug_defaults",
105        "libart_simulator_container_defaults",
106    ],
107}
108