blob: ddf4dd53d5d35c9c411a6ad7f646b342f0905efc [file] [log] [blame]
Songchun Fan3c82a302019-11-29 14:23:45 -08001// Copyright 2019, 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_defaults {
16 name: "service.incremental-proto-defaults",
17
18 cpp_std: "c++2a",
19 proto: {
20 type: "lite",
21 },
22}
23
24cc_defaults {
25 name: "service.incremental-defaults",
26 defaults: ["service.incremental-proto-defaults"],
27 local_include_dirs: ["include/"],
28 cflags: [
29 "-Wall",
30 "-Werror",
31 "-Wextra",
32 "-Wno-unused-parameter",
33 ],
34
35 static_libs: [
36 "libbase",
37 "libext2_uuid",
38 "libdataloader_aidl-cpp",
39 "libincremental_aidl-cpp",
40 "libincremental_manager_aidl-cpp",
41 "libnativehelper",
42 "libprotobuf-cpp-lite",
43 "service.incremental.proto",
44 "libutils",
45 "libvold_binder",
46 ],
47 shared_libs: [
48 "libandroidfw",
49 "libbinder",
50 "libincfs",
51 "liblog",
52 "libz",
53 "libziparchive",
54 ],
55}
56
57filegroup {
58 name: "service.incremental_srcs",
59 srcs: [
60 "incremental_service.c",
61 "IncrementalService.cpp",
62 "BinderIncrementalService.cpp",
63 "path.cpp",
64 "ServiceWrappers.cpp",
65 ],
66}
67
68cc_library {
69 name: "service.incremental",
70 defaults: [
71 "service.incremental-defaults",
Songchun Fan3c82a302019-11-29 14:23:45 -080072 ],
73
74 export_include_dirs: ["include/",],
75 srcs: [
76 ":service.incremental_srcs",
77 ],
78}
79
80cc_library_headers {
81 name: "service.incremental_headers",
82 export_include_dirs: ["include/",],
83}
84
85cc_library_static {
86 name: "service.incremental.proto",
87 defaults: ["service.incremental-proto-defaults"],
88 proto: {
89 export_proto_headers: true,
90 },
91
92 srcs: [
93 "Metadata.proto",
94 ],
95}
96
97cc_test {
98 name: "service.incremental_test",
99 defaults: ["service.incremental-defaults"],
100 test_suites: ["device-tests"],
101 srcs: [
102 ":service.incremental_srcs",
103 "test/IncrementalServiceTest.cpp",
104 "test/path_test.cpp",
105 ],
106 static_libs: [
107 "libgmock",
108 ]
109}