Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | cc_defaults { |
| 18 | name: "sysprop-defaults", |
| 19 | srcs: ["sysprop.proto", "Common.cpp", "CodeWriter.cpp"], |
Inseob Kim | ca4a2a4 | 2018-12-10 01:34:07 +0900 | [diff] [blame] | 20 | shared_libs: ["libbase", "liblog"], |
Inseob Kim | 4584b8f | 2019-06-17 15:52:48 +0900 | [diff] [blame] | 21 | static_libs: ["libc++fs"], |
Inseob Kim | ca4a2a4 | 2018-12-10 01:34:07 +0900 | [diff] [blame] | 22 | proto: { |
| 23 | type: "full", |
| 24 | }, |
Inseob Kim | 803bfb8 | 2019-02-15 18:40:45 +0900 | [diff] [blame] | 25 | local_include_dirs: ["include"], |
Inseob Kim | 5f8f32c | 2018-08-24 11:10:44 +0900 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | cc_binary_host { |
| 29 | name: "sysprop_cpp", |
| 30 | defaults: ["sysprop-defaults"], |
| 31 | srcs: ["CppGen.cpp", "CppMain.cpp"], |
| 32 | } |
| 33 | |
| 34 | cc_binary_host { |
| 35 | name: "sysprop_java", |
| 36 | defaults: ["sysprop-defaults"], |
| 37 | srcs: ["JavaGen.cpp", "JavaMain.cpp"], |
| 38 | } |
Inseob Kim | ade45e2 | 2018-08-29 19:08:35 +0900 | [diff] [blame] | 39 | |
Inseob Kim | 900fbad | 2019-06-26 14:09:20 +0900 | [diff] [blame] | 40 | cc_binary_host { |
| 41 | name: "sysprop_api_checker", |
| 42 | defaults: ["sysprop-defaults"], |
| 43 | srcs: ["ApiChecker.cpp", "ApiCheckerMain.cpp"], |
| 44 | } |
| 45 | |
Inseob Kim | 5d3e688 | 2019-07-25 13:55:48 +0900 | [diff] [blame] | 46 | cc_binary_host { |
| 47 | name: "sysprop_api_dump", |
| 48 | defaults: ["sysprop-defaults"], |
| 49 | srcs: ["ApiDumpMain.cpp"], |
| 50 | } |
| 51 | |
Inseob Kim | ade45e2 | 2018-08-29 19:08:35 +0900 | [diff] [blame] | 52 | cc_test_host { |
| 53 | name: "sysprop_test", |
| 54 | defaults: ["sysprop-defaults"], |
Inseob Kim | 900fbad | 2019-06-26 14:09:20 +0900 | [diff] [blame] | 55 | srcs: ["ApiChecker.cpp", |
| 56 | "CppGen.cpp", |
Inseob Kim | ade45e2 | 2018-08-29 19:08:35 +0900 | [diff] [blame] | 57 | "JavaGen.cpp", |
| 58 | "tests/*.cpp"], |
Inseob Kim | 2d915f4 | 2019-12-02 12:45:38 +0900 | [diff] [blame^] | 59 | test_suites: ["general-tests"], |
Inseob Kim | ade45e2 | 2018-08-29 19:08:35 +0900 | [diff] [blame] | 60 | } |
Inseob Kim | 38569c7 | 2019-07-30 18:36:28 +0900 | [diff] [blame] | 61 | |
| 62 | java_defaults { |
| 63 | name: "sysprop-library-stub-defaults", |
| 64 | srcs: [ |
| 65 | "stub/android/os/SystemProperties.java", |
| 66 | ], |
| 67 | installable: false, |
| 68 | sdk_version: "core_current", |
| 69 | } |
| 70 | |
| 71 | java_library { |
| 72 | name: "sysprop-library-stub-platform", |
| 73 | defaults: ["sysprop-library-stub-defaults"], |
| 74 | } |
| 75 | |
| 76 | java_library { |
| 77 | name: "sysprop-library-stub-vendor", |
| 78 | defaults: ["sysprop-library-stub-defaults"], |
| 79 | soc_specific: true, |
| 80 | } |