blob: 2804fb88cc81b36901500add9d5ff32d292a9861 [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 Kim4584b8f2019-06-17 15:52:48 +090021 static_libs: ["libc++fs"],
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 Kimade45e22018-08-29 19:08:35 +090052cc_test_host {
53 name: "sysprop_test",
54 defaults: ["sysprop-defaults"],
Inseob Kim900fbad2019-06-26 14:09:20 +090055 srcs: ["ApiChecker.cpp",
56 "CppGen.cpp",
Inseob Kimade45e22018-08-29 19:08:35 +090057 "JavaGen.cpp",
58 "tests/*.cpp"],
Inseob Kim2d915f42019-12-02 12:45:38 +090059 test_suites: ["general-tests"],
Inseob Kimade45e22018-08-29 19:08:35 +090060}
Inseob Kim38569c72019-07-30 18:36:28 +090061
62java_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
71java_library {
72 name: "sysprop-library-stub-platform",
73 defaults: ["sysprop-library-stub-defaults"],
74}
75
76java_library {
77 name: "sysprop-library-stub-vendor",
78 defaults: ["sysprop-library-stub-defaults"],
79 soc_specific: true,
80}