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", |
Joe Onorato | 084aa3c | 2020-03-20 16:25:14 -0700 | [diff] [blame] | 96 | test_config: "AndroidTest.xml", |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame] | 97 | defaults: ["libincidentpriv_defaults"], |
Ruchir Rastogi | dd5d287 | 2020-06-09 17:22:53 -0700 | [diff] [blame^] | 98 | test_suites: ["device-tests", "mts"], |
| 99 | compile_multilib: "both", |
| 100 | multilib: { |
| 101 | lib64: { |
| 102 | suffix: "64", |
| 103 | }, |
| 104 | lib32: { |
| 105 | suffix: "32", |
| 106 | }, |
| 107 | }, |
| 108 | require_root: true, |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame] | 109 | |
| 110 | include_dirs: [ |
| 111 | "frameworks/base/libs/incident/include", |
| 112 | "frameworks/base/libs/incident/include_priv", |
| 113 | ], |
| 114 | |
| 115 | srcs: [ |
| 116 | "tests/IncidentReportArgs_test.cpp", |
| 117 | "tests/IncidentReportRequest_test.cpp", |
Joe Onorato | 255ffff | 2020-01-17 01:30:02 -0800 | [diff] [blame] | 118 | ], |
| 119 | |
| 120 | shared_libs: [ |
| 121 | "libincident", |
| 122 | ], |
| 123 | |
| 124 | static_libs: [ |
| 125 | "libgmock", |
| 126 | ], |
| 127 | } |
| 128 | |
| 129 | |
| 130 | |