Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 1 | // 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 Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 15 | package { |
| 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 Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 24 | cc_library { |
| 25 | // This native library contains JNI support code for the ART Service Java |
| 26 | // Language library. |
| 27 | |
| 28 | name: "libartservice", |
Martin Stjernholm | 22a6162 | 2021-03-17 13:30:25 +0000 | [diff] [blame] | 29 | defaults: ["art_defaults"], |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 30 | host_supported: true, |
| 31 | srcs: [ |
| 32 | "service/native/service.cc", |
| 33 | ], |
| 34 | export_include_dirs: ["."], |
| 35 | apex_available: [ |
| 36 | "com.android.art", |
| 37 | "com.android.art.debug", |
| 38 | ], |
| 39 | shared_libs: [ |
| 40 | "libbase", |
| 41 | ], |
| 42 | export_shared_lib_headers: ["libbase"], |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | java_library { |
| 46 | // This Java Language Library contains the ART Service class that will be |
| 47 | // loaded by the System Server. |
| 48 | |
| 49 | name: "artservice", |
| 50 | visibility: [ |
| 51 | "//art:__subpackages__", |
| 52 | ], |
| 53 | |
| 54 | apex_available: [ |
| 55 | "com.android.art", |
| 56 | "com.android.art.debug", |
| 57 | ], |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 58 | sdk_version: "core_platform", |
Nicolas Geoffray | ec388c0 | 2021-03-03 22:09:06 +0000 | [diff] [blame] | 59 | min_sdk_version: "31", |
Chris Wailes | befdad4 | 2021-01-12 16:37:57 -0800 | [diff] [blame] | 60 | |
| 61 | srcs: [ |
| 62 | "service/java/com/android/server/art/ArtService.java", |
| 63 | ], |
| 64 | |
| 65 | libs: [ |
| 66 | "art.module.api.annotations.for.system.modules", |
| 67 | "unsupportedappusage", |
| 68 | ], |
| 69 | |
| 70 | plugins: ["java_api_finder"], |
| 71 | } |
Chris Wailes | bfd622a | 2021-01-13 16:13:41 -0800 | [diff] [blame] | 72 | |
| 73 | art_cc_test { |
| 74 | name: "art_libartservice_tests", |
| 75 | defaults: [ |
| 76 | "art_gtest_defaults", |
| 77 | ], |
| 78 | srcs: [ |
| 79 | "service/native/service_test.cc", |
| 80 | ], |
| 81 | shared_libs: [ |
| 82 | "libbase", |
| 83 | "libartservice", |
| 84 | ], |
| 85 | } |