Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 1 | # Copyright (C) 2017 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 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 17 | statsd_common_src := \ |
| 18 | ../../core/java/android/os/IStatsCompanionService.aidl \ |
| 19 | ../../core/java/android/os/IStatsManager.aidl \ |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 20 | src/stats_log_common.proto \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 21 | src/statsd_config.proto \ |
Yao Chen | 8a8d16c | 2018-02-08 14:50:40 -0800 | [diff] [blame] | 22 | src/FieldValue.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 23 | src/stats_log_util.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 24 | src/anomaly/AnomalyMonitor.cpp \ |
Yangster-mac | e2cd6d5 | 2017-11-09 20:38:30 -0800 | [diff] [blame] | 25 | src/anomaly/AnomalyTracker.cpp \ |
Bookatz | 857aaa5 | 2017-12-19 15:29:06 -0800 | [diff] [blame] | 26 | src/anomaly/DurationAnomalyTracker.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 27 | src/condition/CombinationConditionTracker.cpp \ |
| 28 | src/condition/condition_util.cpp \ |
| 29 | src/condition/SimpleConditionTracker.cpp \ |
Yao Chen | 729093d | 2017-10-16 10:33:26 -0700 | [diff] [blame] | 30 | src/condition/ConditionWizard.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 31 | src/config/ConfigKey.cpp \ |
| 32 | src/config/ConfigListener.cpp \ |
| 33 | src/config/ConfigManager.cpp \ |
Primiano Tucci | e4d4491 | 2018-01-10 12:14:50 +0000 | [diff] [blame] | 34 | src/external/Perfetto.cpp \ |
Chenjie Yu | b038b70 | 2017-12-18 15:15:34 -0800 | [diff] [blame] | 35 | src/external/StatsPuller.cpp \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 36 | src/external/StatsCompanionServicePuller.cpp \ |
Chenjie Yu | c8b7f22 | 2018-01-11 23:25:57 -0800 | [diff] [blame] | 37 | src/external/SubsystemSleepStatePuller.cpp \ |
Tej Singh | bf972d9 | 2018-01-10 20:51:13 -0800 | [diff] [blame] | 38 | src/external/ResourceHealthManagerPuller.cpp \ |
Tej Singh | 4029831 | 2018-02-16 00:15:09 -0800 | [diff] [blame^] | 39 | src/external/ResourceThermalManagerPuller.cpp \ |
Chenjie Yu | e33bc3b | 2017-11-06 17:56:44 -0800 | [diff] [blame] | 40 | src/external/CpuTimePerUidPuller.cpp \ |
| 41 | src/external/CpuTimePerUidFreqPuller.cpp \ |
Chenjie Yu | e72252b | 2018-02-01 13:19:35 -0800 | [diff] [blame] | 42 | src/external/KernelUidCpuActiveTimeReader.cpp \ |
| 43 | src/external/KernelUidCpuClusterTimeReader.cpp \ |
Chenjie Yu | 6736c89 | 2017-11-09 10:50:09 -0800 | [diff] [blame] | 44 | src/external/StatsPullerManagerImpl.cpp \ |
Chenjie Yu | 80f9112 | 2018-01-31 20:24:50 -0800 | [diff] [blame] | 45 | src/external/puller_util.cpp \ |
Joe Onorato | c4dfae5 | 2017-10-17 23:38:21 -0700 | [diff] [blame] | 46 | src/logd/LogEvent.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 47 | src/logd/LogListener.cpp \ |
| 48 | src/logd/LogReader.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 49 | src/matchers/CombinationLogMatchingTracker.cpp \ |
| 50 | src/matchers/matcher_util.cpp \ |
| 51 | src/matchers/SimpleLogMatchingTracker.cpp \ |
Yao Chen | b704177 | 2017-10-20 16:59:25 -0700 | [diff] [blame] | 52 | src/metrics/MetricProducer.cpp \ |
Yao Chen | 5110bed | 2017-10-23 12:50:02 -0700 | [diff] [blame] | 53 | src/metrics/EventMetricProducer.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 54 | src/metrics/CountMetricProducer.cpp \ |
Yao Chen | 729093d | 2017-10-16 10:33:26 -0700 | [diff] [blame] | 55 | src/metrics/DurationMetricProducer.cpp \ |
Yao Chen | 5154a37 | 2017-10-30 22:57:06 -0700 | [diff] [blame] | 56 | src/metrics/duration_helper/OringDurationTracker.cpp \ |
| 57 | src/metrics/duration_helper/MaxDurationTracker.cpp \ |
Chenjie Yu | b3dda41 | 2017-10-24 13:41:59 -0700 | [diff] [blame] | 58 | src/metrics/ValueMetricProducer.cpp \ |
Yangster | 1d4d686 | 2017-10-31 12:58:51 -0700 | [diff] [blame] | 59 | src/metrics/GaugeMetricProducer.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 60 | src/metrics/MetricsManager.cpp \ |
| 61 | src/metrics/metrics_manager_util.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 62 | src/packages/UidMap.cpp \ |
Primiano Tucci | e4d4491 | 2018-01-10 12:14:50 +0000 | [diff] [blame] | 63 | src/perfetto/perfetto_config.proto \ |
yro | 947fbce | 2017-11-15 22:50:23 -0800 | [diff] [blame] | 64 | src/storage/StorageManager.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 65 | src/StatsLogProcessor.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 66 | src/StatsService.cpp \ |
Yi Jin | afb3606 | 2018-01-31 19:14:25 -0800 | [diff] [blame] | 67 | src/subscriber/IncidentdReporter.cpp \ |
Bookatz | c697797 | 2018-01-16 16:55:05 -0800 | [diff] [blame] | 68 | src/subscriber/SubscriberReporter.cpp \ |
Yao Chen | d5aa01b3 | 2017-12-19 16:46:36 -0800 | [diff] [blame] | 69 | src/HashableDimensionKey.cpp \ |
Yao Chen | b356151 | 2017-11-21 18:07:17 -0800 | [diff] [blame] | 70 | src/guardrail/MemoryLeakTrackUtil.cpp \ |
| 71 | src/guardrail/StatsdStats.cpp |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 72 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 73 | statsd_common_c_includes := \ |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 74 | $(LOCAL_PATH)/src \ |
| 75 | $(LOCAL_PATH)/../../libs/services/include |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 76 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 77 | statsd_common_aidl_includes := \ |
| 78 | $(LOCAL_PATH)/../../core/java |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 79 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 80 | statsd_common_static_libraries := \ |
Tej Singh | bf972d9 | 2018-01-10 20:51:13 -0800 | [diff] [blame] | 81 | libhealthhalutils \ |
| 82 | libplatformprotos \ |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 83 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 84 | statsd_common_shared_libraries := \ |
| 85 | libbase \ |
| 86 | libbinder \ |
| 87 | libcutils \ |
| 88 | libincident \ |
| 89 | liblog \ |
| 90 | libselinux \ |
| 91 | libutils \ |
| 92 | libservices \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 93 | libprotoutil \ |
| 94 | libstatslog \ |
| 95 | libhardware \ |
| 96 | libhardware_legacy \ |
| 97 | libhidlbase \ |
| 98 | libhidltransport \ |
| 99 | libhwbinder \ |
Tej Singh | bf972d9 | 2018-01-10 20:51:13 -0800 | [diff] [blame] | 100 | android.hardware.health@2.0 \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 101 | android.hardware.power@1.0 \ |
Yao Chen | 8d9989b | 2017-11-18 18:54:50 -0800 | [diff] [blame] | 102 | android.hardware.power@1.1 \ |
Tej Singh | 4029831 | 2018-02-16 00:15:09 -0800 | [diff] [blame^] | 103 | android.hardware.thermal@1.0 \ |
Yao Chen | 8d9989b | 2017-11-18 18:54:50 -0800 | [diff] [blame] | 104 | libmemunreachable |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 105 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 106 | # ========= |
| 107 | # statsd |
| 108 | # ========= |
| 109 | |
| 110 | include $(CLEAR_VARS) |
| 111 | |
| 112 | LOCAL_MODULE := statsd |
| 113 | |
| 114 | LOCAL_SRC_FILES := \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 115 | $(statsd_common_src) \ |
| 116 | src/main.cpp |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 117 | |
| 118 | LOCAL_CFLAGS += \ |
| 119 | -Wall \ |
Yao Chen | 4c959cb | 2018-02-13 13:27:48 -0800 | [diff] [blame] | 120 | -Wextra \ |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 121 | -Werror \ |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 122 | -Wno-unused-parameter |
| 123 | |
| 124 | ifeq (debug,) |
| 125 | LOCAL_CFLAGS += \ |
| 126 | -g -O0 |
| 127 | else |
| 128 | # optimize for size (protobuf glop can get big) |
| 129 | LOCAL_CFLAGS += \ |
| 130 | -Os |
| 131 | endif |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 132 | LOCAL_PROTOC_OPTIMIZE_TYPE := lite-static |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 133 | |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 134 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 135 | LOCAL_C_INCLUDES += $(statsd_common_c_includes) |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 136 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 137 | LOCAL_STATIC_LIBRARIES := $(statsd_common_static_libraries) |
| 138 | |
David Chen | d689689 | 2017-10-25 11:49:03 -0700 | [diff] [blame] | 139 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
| 140 | libgtest_prod |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 141 | |
| 142 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 143 | |
yro | 9b97976 | 2018-01-29 16:23:13 -0800 | [diff] [blame] | 144 | LOCAL_INIT_RC := statsd.rc |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 145 | |
| 146 | include $(BUILD_EXECUTABLE) |
| 147 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 148 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 149 | # ============== |
| 150 | # statsd_test |
| 151 | # ============== |
| 152 | |
| 153 | include $(CLEAR_VARS) |
| 154 | |
| 155 | LOCAL_MODULE := statsd_test |
| 156 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 157 | LOCAL_MODULE_TAGS := tests |
| 158 | |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 159 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 160 | LOCAL_C_INCLUDES += $(statsd_common_c_includes) |
David Chen | dd89694 | 2017-09-26 11:44:40 -0700 | [diff] [blame] | 161 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 162 | LOCAL_CFLAGS += \ |
| 163 | -Wall \ |
| 164 | -Werror \ |
| 165 | -Wno-missing-field-initializers \ |
| 166 | -Wno-unused-variable \ |
| 167 | -Wno-unused-function \ |
| 168 | -Wno-unused-parameter |
| 169 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 170 | LOCAL_SRC_FILES := \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 171 | $(statsd_common_src) \ |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 172 | src/atom_field_options.proto \ |
| 173 | src/atoms.proto \ |
| 174 | src/stats_log.proto \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 175 | tests/AnomalyMonitor_test.cpp \ |
Yang Lu | 3eba621 | 2017-10-25 19:54:45 -0700 | [diff] [blame] | 176 | tests/anomaly/AnomalyTracker_test.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 177 | tests/ConfigManager_test.cpp \ |
Chenjie Yu | 80f9112 | 2018-01-31 20:24:50 -0800 | [diff] [blame] | 178 | tests/external/puller_util_test.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 179 | tests/indexed_priority_queue_test.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 180 | tests/LogEntryMatcher_test.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 181 | tests/LogReader_test.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 182 | tests/LogEvent_test.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 183 | tests/MetricsManager_test.cpp \ |
David Chen | d9269e2 | 2017-12-05 13:43:51 -0800 | [diff] [blame] | 184 | tests/StatsLogProcessor_test.cpp \ |
Yao Chen | 5154a37 | 2017-10-30 22:57:06 -0700 | [diff] [blame] | 185 | tests/UidMap_test.cpp \ |
Yao Chen | 8a8d16c | 2018-02-08 14:50:40 -0800 | [diff] [blame] | 186 | tests/FieldValue_test.cpp \ |
Yao Chen | 967b205 | 2017-11-07 16:36:43 -0800 | [diff] [blame] | 187 | tests/condition/CombinationConditionTracker_test.cpp \ |
| 188 | tests/condition/SimpleConditionTracker_test.cpp \ |
Yao Chen | 93fe3a3 | 2017-11-02 13:52:59 -0700 | [diff] [blame] | 189 | tests/metrics/OringDurationTracker_test.cpp \ |
| 190 | tests/metrics/MaxDurationTracker_test.cpp \ |
| 191 | tests/metrics/CountMetricProducer_test.cpp \ |
Yangster | f2bee6f | 2017-11-29 12:01:05 -0800 | [diff] [blame] | 192 | tests/metrics/DurationMetricProducer_test.cpp \ |
Chenjie Yu | 6736c89 | 2017-11-09 10:50:09 -0800 | [diff] [blame] | 193 | tests/metrics/EventMetricProducer_test.cpp \ |
Yao Chen | b356151 | 2017-11-21 18:07:17 -0800 | [diff] [blame] | 194 | tests/metrics/ValueMetricProducer_test.cpp \ |
Chenjie Yu | d9dfda7 | 2017-12-11 17:41:20 -0800 | [diff] [blame] | 195 | tests/metrics/GaugeMetricProducer_test.cpp \ |
Yao Chen | d5aa01b3 | 2017-12-19 16:46:36 -0800 | [diff] [blame] | 196 | tests/guardrail/StatsdStats_test.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 197 | tests/metrics/metrics_test_helper.cpp \ |
| 198 | tests/statsd_test_util.cpp \ |
| 199 | tests/e2e/WakelockDuration_e2e_test.cpp \ |
Yangster-mac | b5bc741 | 2018-01-06 23:17:45 -0800 | [diff] [blame] | 200 | tests/e2e/MetricConditionLink_e2e_test.cpp \ |
Yangster-mac | 87718e2 | 2018-01-11 16:16:26 -0800 | [diff] [blame] | 201 | tests/e2e/Attribution_e2e_test.cpp \ |
Yangster-mac | 9369446 | 2018-01-22 20:49:31 -0800 | [diff] [blame] | 202 | tests/e2e/GaugeMetric_e2e_test.cpp \ |
| 203 | tests/e2e/DimensionInCondition_e2e_test.cpp |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 204 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 205 | LOCAL_STATIC_LIBRARIES := \ |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 206 | $(statsd_common_static_libraries) \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 207 | libgmock |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 208 | |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 209 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 210 | |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 211 | LOCAL_PROTOC_FLAGS := \ |
| 212 | -Iexternal/protobuf/src |
| 213 | |
| 214 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
| 215 | libprotobuf-cpp-full |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 216 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 217 | include $(BUILD_NATIVE_TEST) |
| 218 | |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 219 | ############################## |
| 220 | # stats proto static java lib |
| 221 | ############################## |
| 222 | |
| 223 | include $(CLEAR_VARS) |
| 224 | LOCAL_MODULE := statsdprotolite |
| 225 | |
| 226 | LOCAL_SRC_FILES := \ |
| 227 | src/stats_log.proto \ |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 228 | src/stats_log_common.proto \ |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 229 | src/statsd_config.proto \ |
Primiano Tucci | e4d4491 | 2018-01-10 12:14:50 +0000 | [diff] [blame] | 230 | src/perfetto/perfetto_config.proto \ |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 231 | src/atoms.proto |
| 232 | |
| 233 | LOCAL_PROTOC_OPTIMIZE_TYPE := lite |
| 234 | |
| 235 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 236 | platformprotoslite |
| 237 | |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 238 | LOCAL_PROTOC_FLAGS := \ |
| 239 | -Iexternal/protobuf/src |
| 240 | |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 241 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 242 | |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 243 | ############################## |
| 244 | # statsd micro benchmark |
| 245 | ############################## |
| 246 | |
| 247 | include $(CLEAR_VARS) |
| 248 | LOCAL_MODULE := statsd_benchmark |
| 249 | |
| 250 | LOCAL_SRC_FILES := $(statsd_common_src) \ |
| 251 | benchmark/main.cpp \ |
| 252 | benchmark/hello_world_benchmark.cpp \ |
Tej Singh | 3410634 | 2018-02-02 17:08:05 -0800 | [diff] [blame] | 253 | benchmark/log_event_benchmark.cpp \ |
| 254 | benchmark/stats_write_benchmark.cpp |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 255 | |
| 256 | LOCAL_C_INCLUDES := $(statsd_common_c_includes) |
| 257 | |
| 258 | LOCAL_CFLAGS := -Wall \ |
| 259 | -Werror \ |
| 260 | -Wno-unused-parameter \ |
| 261 | -Wno-unused-variable \ |
| 262 | -Wno-unused-function \ |
| 263 | |
| 264 | # Bug: http://b/29823425 Disable -Wvarargs for Clang update to r271374 |
| 265 | LOCAL_CFLAGS += -Wno-varargs |
| 266 | |
| 267 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
| 268 | |
| 269 | LOCAL_STATIC_LIBRARIES := \ |
| 270 | $(statsd_common_static_libraries) |
| 271 | |
| 272 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
Tej Singh | 3410634 | 2018-02-02 17:08:05 -0800 | [diff] [blame] | 273 | libgtest_prod \ |
| 274 | libstatslog |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 275 | |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 276 | LOCAL_MODULE_TAGS := eng tests |
| 277 | |
| 278 | include $(BUILD_NATIVE_BENCHMARK) |
| 279 | |
| 280 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 281 | statsd_common_src:= |
| 282 | statsd_common_aidl_includes:= |
| 283 | statsd_common_c_includes:= |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 284 | statsd_common_static_libraries:= |
| 285 | statsd_common_shared_libraries:= |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 286 | |
Yao Chen | 1ff4f43 | 2017-11-16 17:01:40 -0800 | [diff] [blame] | 287 | |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 288 | include $(call all-makefiles-under,$(LOCAL_PATH)) |