blob: 297a1f2b7a1871f1ada9352a9de12dc579d1ad97 [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
15cc_library {
16 // This native library contains JNI support code for the ART Service Java
17 // Language library.
18
19 name: "libartservice",
20 host_supported: true,
21 srcs: [
22 "service/native/service.cc",
23 ],
24 export_include_dirs: ["."],
25 apex_available: [
26 "com.android.art",
27 "com.android.art.debug",
28 ],
29 shared_libs: [
30 "libbase",
31 ],
32 export_shared_lib_headers: ["libbase"],
33 cflags: ["-Werror"],
34}
35
36java_library {
37 // This Java Language Library contains the ART Service class that will be
38 // loaded by the System Server.
39
40 name: "artservice",
41 visibility: [
42 "//art:__subpackages__",
43 ],
44
45 apex_available: [
46 "com.android.art",
47 "com.android.art.debug",
48 ],
49
50 sdk_version: "core_platform",
51
52 srcs: [
53 "service/java/com/android/server/art/ArtService.java",
54 ],
55
56 libs: [
57 "art.module.api.annotations.for.system.modules",
58 "unsupportedappusage",
59 ],
60
61 plugins: ["java_api_finder"],
62}
Chris Wailesbfd622a2021-01-13 16:13:41 -080063
64art_cc_test {
65 name: "art_libartservice_tests",
66 defaults: [
67 "art_gtest_defaults",
68 ],
69 srcs: [
70 "service/native/service_test.cc",
71 ],
72 shared_libs: [
73 "libbase",
74 "libartservice",
75 ],
76}