blob: 4c8f6b5e75cb36b19565194e92c997c1aa07af1f [file] [log] [blame]
Inseob Kim5f8f32c2018-08-24 11:10:44 +09001/*
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
17cc_defaults {
18 name: "sysprop-defaults",
19 srcs: ["sysprop.proto", "Common.cpp", "CodeWriter.cpp"],
Inseob Kimca4a2a42018-12-10 01:34:07 +090020 shared_libs: ["libbase", "liblog"],
Inseob Kim472fb632020-03-21 03:29:39 +090021 static_libs: ["libc++fs", "libpropertyinfoserializer"],
Inseob Kimca4a2a42018-12-10 01:34:07 +090022 proto: {
23 type: "full",
24 },
Inseob Kim803bfb82019-02-15 18:40:45 +090025 local_include_dirs: ["include"],
Inseob Kim5f8f32c2018-08-24 11:10:44 +090026}
27
28cc_binary_host {
29 name: "sysprop_cpp",
30 defaults: ["sysprop-defaults"],
31 srcs: ["CppGen.cpp", "CppMain.cpp"],
32}
33
34cc_binary_host {
35 name: "sysprop_java",
36 defaults: ["sysprop-defaults"],
37 srcs: ["JavaGen.cpp", "JavaMain.cpp"],
38}
Inseob Kimade45e22018-08-29 19:08:35 +090039
Inseob Kim900fbad2019-06-26 14:09:20 +090040cc_binary_host {
41 name: "sysprop_api_checker",
42 defaults: ["sysprop-defaults"],
43 srcs: ["ApiChecker.cpp", "ApiCheckerMain.cpp"],
44}
45
Inseob Kim5d3e6882019-07-25 13:55:48 +090046cc_binary_host {
47 name: "sysprop_api_dump",
48 defaults: ["sysprop-defaults"],
49 srcs: ["ApiDumpMain.cpp"],
50}
51
Inseob Kim472fb632020-03-21 03:29:39 +090052cc_binary_host {
53 name: "sysprop_type_checker",
54 defaults: ["sysprop-defaults"],
55 srcs: ["TypeChecker.cpp", "TypeCheckerMain.cpp"],
56}
57
Inseob Kimade45e22018-08-29 19:08:35 +090058cc_test_host {
59 name: "sysprop_test",
60 defaults: ["sysprop-defaults"],
Inseob Kim900fbad2019-06-26 14:09:20 +090061 srcs: ["ApiChecker.cpp",
Inseob Kim472fb632020-03-21 03:29:39 +090062 "CppGen.cpp",
Inseob Kimade45e22018-08-29 19:08:35 +090063 "JavaGen.cpp",
Inseob Kim472fb632020-03-21 03:29:39 +090064 "TypeChecker.cpp",
Inseob Kimade45e22018-08-29 19:08:35 +090065 "tests/*.cpp"],
Nikita Ioffe1f060052020-09-03 02:25:02 +010066 whole_static_libs: ["com.android.sysprop.tests"],
Inseob Kim2d915f42019-12-02 12:45:38 +090067 test_suites: ["general-tests"],
Inseob Kimade45e22018-08-29 19:08:35 +090068}
Inseob Kim38569c72019-07-30 18:36:28 +090069
70java_defaults {
71 name: "sysprop-library-stub-defaults",
72 srcs: [
Inseob Kim3f452c02020-03-31 13:41:19 +090073 "stub/**/*.java",
Inseob Kim38569c72019-07-30 18:36:28 +090074 ],
75 installable: false,
76 sdk_version: "core_current",
77}
78
79java_library {
80 name: "sysprop-library-stub-platform",
81 defaults: ["sysprop-library-stub-defaults"],
82}
83
84java_library {
85 name: "sysprop-library-stub-vendor",
86 defaults: ["sysprop-library-stub-defaults"],
87 soc_specific: true,
88}