Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame^] | 15 | |
| 16 | cc_defaults { |
| 17 | name: "libincidentpriv_defaults", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 18 | |
| 19 | cflags: [ |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | "-Wno-missing-field-initializers", |
| 23 | "-Wno-unused-variable", |
| 24 | "-Wunused-parameter", |
| 25 | ], |
| 26 | |
| 27 | shared_libs: [ |
| 28 | "libbinder", |
| 29 | "liblog", |
| 30 | "libutils", |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 31 | "libprotobuf-cpp-lite", |
| 32 | ], |
| 33 | |
| 34 | static_libs: [ |
| 35 | "libplatformprotos", |
| 36 | ], |
| 37 | |
| 38 | whole_static_libs: [ |
| 39 | "libincidentcompanion", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | aidl: { |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 43 | include_dirs: [ |
| 44 | "frameworks/base/core/java", |
| 45 | "frameworks/native/libs/incidentcompanion/binder", |
| 46 | ], |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 47 | export_aidl_headers: true, |
| 48 | }, |
| 49 | |
| 50 | srcs: [ |
| 51 | ":libincident_aidl", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 52 | "src/IncidentReportArgs.cpp", |
| 53 | ], |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame^] | 54 | } |
| 55 | |
| 56 | cc_library_shared { |
| 57 | name: "libincidentpriv", |
| 58 | defaults: ["libincidentpriv_defaults"], |
| 59 | export_include_dirs: ["include_priv"], |
| 60 | } |
| 61 | |
| 62 | cc_library_shared { |
| 63 | name: "libincident", |
| 64 | |
| 65 | cflags: [ |
| 66 | "-Wall", |
| 67 | "-Werror", |
| 68 | "-Wno-missing-field-initializers", |
| 69 | "-Wno-unused-variable", |
| 70 | "-Wunused-parameter", |
| 71 | ], |
| 72 | |
| 73 | shared_libs: [ |
| 74 | "libbinder", |
| 75 | "liblog", |
| 76 | "libutils", |
| 77 | "libincidentpriv", |
| 78 | ], |
| 79 | |
| 80 | srcs: [ |
| 81 | "src/incident_report.cpp", |
| 82 | ], |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 83 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 84 | export_include_dirs: ["include"], |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame^] | 85 | |
| 86 | stubs: { |
| 87 | symbol_file: "libincident.map.txt", |
| 88 | versions: [ |
| 89 | "30", |
| 90 | ], |
| 91 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 92 | } |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame^] | 93 | |
| 94 | cc_test { |
| 95 | name: "libincident_test", |
| 96 | defaults: ["libincidentpriv_defaults"], |
| 97 | test_suites: ["device-tests"], |
| 98 | |
| 99 | include_dirs: [ |
| 100 | "frameworks/base/libs/incident/include", |
| 101 | "frameworks/base/libs/incident/include_priv", |
| 102 | ], |
| 103 | |
| 104 | srcs: [ |
| 105 | "tests/IncidentReportArgs_test.cpp", |
| 106 | "tests/IncidentReportRequest_test.cpp", |
| 107 | "tests/c_api_compile_test.c", |
| 108 | ], |
| 109 | |
| 110 | shared_libs: [ |
| 111 | "libincident", |
| 112 | ], |
| 113 | |
| 114 | static_libs: [ |
| 115 | "libgmock", |
| 116 | ], |
| 117 | } |
| 118 | |
| 119 | |
| 120 | |