Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_defaults { |
| 16 | name: "service.incremental-proto-defaults", |
| 17 | |
| 18 | cpp_std: "c++2a", |
| 19 | proto: { |
| 20 | type: "lite", |
| 21 | }, |
| 22 | } |
| 23 | |
| 24 | cc_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", |
Songchun Fan | 1124fd3 | 2020-02-10 12:49:41 -0800 | [diff] [blame] | 46 | "libc++fs", |
Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 47 | ], |
| 48 | shared_libs: [ |
| 49 | "libandroidfw", |
| 50 | "libbinder", |
Yurii Zubrytskyi | 4a25dfb | 2020-01-10 11:53:24 -0800 | [diff] [blame] | 51 | "libcrypto", |
| 52 | "libcutils", |
Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 53 | "libincfs", |
| 54 | "liblog", |
| 55 | "libz", |
| 56 | "libziparchive", |
| 57 | ], |
| 58 | } |
| 59 | |
| 60 | filegroup { |
| 61 | name: "service.incremental_srcs", |
| 62 | srcs: [ |
| 63 | "incremental_service.c", |
| 64 | "IncrementalService.cpp", |
Yurii Zubrytskyi | 629051fd | 2020-04-17 23:13:47 -0700 | [diff] [blame^] | 65 | "IncrementalServiceValidation.cpp", |
Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 66 | "BinderIncrementalService.cpp", |
| 67 | "path.cpp", |
| 68 | "ServiceWrappers.cpp", |
| 69 | ], |
| 70 | } |
| 71 | |
| 72 | cc_library { |
| 73 | name: "service.incremental", |
| 74 | defaults: [ |
| 75 | "service.incremental-defaults", |
Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 76 | ], |
| 77 | |
| 78 | export_include_dirs: ["include/",], |
| 79 | srcs: [ |
| 80 | ":service.incremental_srcs", |
| 81 | ], |
| 82 | } |
| 83 | |
| 84 | cc_library_headers { |
| 85 | name: "service.incremental_headers", |
| 86 | export_include_dirs: ["include/",], |
| 87 | } |
| 88 | |
| 89 | cc_library_static { |
| 90 | name: "service.incremental.proto", |
| 91 | defaults: ["service.incremental-proto-defaults"], |
| 92 | proto: { |
| 93 | export_proto_headers: true, |
| 94 | }, |
| 95 | |
| 96 | srcs: [ |
| 97 | "Metadata.proto", |
| 98 | ], |
| 99 | } |
| 100 | |
| 101 | cc_test { |
| 102 | name: "service.incremental_test", |
| 103 | defaults: ["service.incremental-defaults"], |
| 104 | test_suites: ["device-tests"], |
| 105 | srcs: [ |
| 106 | ":service.incremental_srcs", |
| 107 | "test/IncrementalServiceTest.cpp", |
| 108 | "test/path_test.cpp", |
| 109 | ], |
| 110 | static_libs: [ |
| 111 | "libgmock", |
| 112 | ] |
| 113 | } |