blob: 1ccd99ad7d5b62d8bb664acf130c67f5b31b7866 [file] [log] [blame]
Chris Wailesbefdad42021-01-12 16:37:57 -08001// Copyright (C) 2021 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
Bob Badour9150de62021-02-26 03:22:24 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "art_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["art_license"],
22}
23
Chris Wailesbefdad42021-01-12 16:37:57 -080024cc_library {
25 // This native library contains JNI support code for the ART Service Java
26 // Language library.
27
28 name: "libartservice",
29 host_supported: true,
30 srcs: [
31 "service/native/service.cc",
32 ],
33 export_include_dirs: ["."],
34 apex_available: [
35 "com.android.art",
36 "com.android.art.debug",
37 ],
Nicolas Geoffrayec388c02021-03-03 22:09:06 +000038 min_sdk_version: "S",
Chris Wailesbefdad42021-01-12 16:37:57 -080039 shared_libs: [
40 "libbase",
41 ],
42 export_shared_lib_headers: ["libbase"],
43 cflags: ["-Werror"],
44}
45
46java_library {
47 // This Java Language Library contains the ART Service class that will be
48 // loaded by the System Server.
49
50 name: "artservice",
51 visibility: [
52 "//art:__subpackages__",
53 ],
54
55 apex_available: [
56 "com.android.art",
57 "com.android.art.debug",
58 ],
Chris Wailesbefdad42021-01-12 16:37:57 -080059 sdk_version: "core_platform",
Nicolas Geoffrayec388c02021-03-03 22:09:06 +000060 min_sdk_version: "31",
Chris Wailesbefdad42021-01-12 16:37:57 -080061
62 srcs: [
63 "service/java/com/android/server/art/ArtService.java",
64 ],
65
66 libs: [
67 "art.module.api.annotations.for.system.modules",
68 "unsupportedappusage",
69 ],
70
71 plugins: ["java_api_finder"],
72}
Chris Wailesbfd622a2021-01-13 16:13:41 -080073
74art_cc_test {
75 name: "art_libartservice_tests",
76 defaults: [
77 "art_gtest_defaults",
78 ],
79 srcs: [
80 "service/native/service_test.cc",
81 ],
82 shared_libs: [
83 "libbase",
84 "libartservice",
85 ],
86}