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 | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 20 | src/statsd_config.proto \ |
Yao Chen | 8a8d16c | 2018-02-08 14:50:40 -0800 | [diff] [blame] | 21 | src/FieldValue.cpp \ |
Yangster-mac | 9def8e3 | 2018-04-17 13:55:51 -0700 | [diff] [blame] | 22 | src/hash.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 23 | src/stats_log_util.cpp \ |
Yangster-mac | 932ecec | 2018-02-01 10:23:52 -0800 | [diff] [blame] | 24 | src/anomaly/AlarmMonitor.cpp \ |
| 25 | src/anomaly/AlarmTracker.cpp \ |
Yangster-mac | e2cd6d5 | 2017-11-09 20:38:30 -0800 | [diff] [blame] | 26 | src/anomaly/AnomalyTracker.cpp \ |
Bookatz | 857aaa5 | 2017-12-19 15:29:06 -0800 | [diff] [blame] | 27 | src/anomaly/DurationAnomalyTracker.cpp \ |
Yangster-mac | 932ecec | 2018-02-01 10:23:52 -0800 | [diff] [blame] | 28 | src/anomaly/subscriber_util.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 29 | src/condition/CombinationConditionTracker.cpp \ |
| 30 | src/condition/condition_util.cpp \ |
| 31 | src/condition/SimpleConditionTracker.cpp \ |
Yao Chen | 729093d | 2017-10-16 10:33:26 -0700 | [diff] [blame] | 32 | src/condition/ConditionWizard.cpp \ |
Yao Chen | 580ea321 | 2018-02-26 14:21:54 -0800 | [diff] [blame] | 33 | src/condition/StateTracker.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 34 | src/config/ConfigKey.cpp \ |
| 35 | src/config/ConfigListener.cpp \ |
| 36 | src/config/ConfigManager.cpp \ |
Primiano Tucci | e4d4491 | 2018-01-10 12:14:50 +0000 | [diff] [blame] | 37 | src/external/Perfetto.cpp \ |
Andreas Gampe | 48f9832 | 2018-05-08 10:34:55 -0700 | [diff] [blame] | 38 | src/external/Perfprofd.cpp \ |
Chenjie Yu | b038b70 | 2017-12-18 15:15:34 -0800 | [diff] [blame] | 39 | src/external/StatsPuller.cpp \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 40 | src/external/StatsCompanionServicePuller.cpp \ |
Chenjie Yu | c8b7f22 | 2018-01-11 23:25:57 -0800 | [diff] [blame] | 41 | src/external/SubsystemSleepStatePuller.cpp \ |
Tej Singh | bf972d9 | 2018-01-10 20:51:13 -0800 | [diff] [blame] | 42 | src/external/ResourceHealthManagerPuller.cpp \ |
Tej Singh | 4029831 | 2018-02-16 00:15:09 -0800 | [diff] [blame] | 43 | src/external/ResourceThermalManagerPuller.cpp \ |
Chenjie Yu | e221920 | 2018-06-08 10:07:51 -0700 | [diff] [blame] | 44 | src/external/StatsPullerManager.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 \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 48 | src/matchers/CombinationLogMatchingTracker.cpp \ |
| 49 | src/matchers/matcher_util.cpp \ |
| 50 | src/matchers/SimpleLogMatchingTracker.cpp \ |
Yao Chen | b704177 | 2017-10-20 16:59:25 -0700 | [diff] [blame] | 51 | src/metrics/MetricProducer.cpp \ |
Yao Chen | 5110bed | 2017-10-23 12:50:02 -0700 | [diff] [blame] | 52 | src/metrics/EventMetricProducer.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 53 | src/metrics/CountMetricProducer.cpp \ |
Yao Chen | 729093d | 2017-10-16 10:33:26 -0700 | [diff] [blame] | 54 | src/metrics/DurationMetricProducer.cpp \ |
Yao Chen | 5154a37 | 2017-10-30 22:57:06 -0700 | [diff] [blame] | 55 | src/metrics/duration_helper/OringDurationTracker.cpp \ |
| 56 | src/metrics/duration_helper/MaxDurationTracker.cpp \ |
Chenjie Yu | b3dda41 | 2017-10-24 13:41:59 -0700 | [diff] [blame] | 57 | src/metrics/ValueMetricProducer.cpp \ |
Yangster | 1d4d686 | 2017-10-31 12:58:51 -0700 | [diff] [blame] | 58 | src/metrics/GaugeMetricProducer.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 59 | src/metrics/MetricsManager.cpp \ |
| 60 | src/metrics/metrics_manager_util.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 61 | src/packages/UidMap.cpp \ |
yro | 947fbce | 2017-11-15 22:50:23 -0800 | [diff] [blame] | 62 | src/storage/StorageManager.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 63 | src/StatsLogProcessor.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 64 | src/StatsService.cpp \ |
Chenjie Yu | aa5b201 | 2018-03-21 13:53:15 -0700 | [diff] [blame] | 65 | src/statscompanion_util.cpp \ |
Yi Jin | afb3606 | 2018-01-31 19:14:25 -0800 | [diff] [blame] | 66 | src/subscriber/IncidentdReporter.cpp \ |
Bookatz | c697797 | 2018-01-16 16:55:05 -0800 | [diff] [blame] | 67 | src/subscriber/SubscriberReporter.cpp \ |
Yao Chen | d5aa01b3 | 2017-12-19 16:46:36 -0800 | [diff] [blame] | 68 | src/HashableDimensionKey.cpp \ |
Yao Chen | 49954cd | 2018-04-18 13:48:02 -0700 | [diff] [blame] | 69 | src/guardrail/StatsdStats.cpp \ |
Yao Chen | a80e5c0 | 2018-09-04 13:55:29 -0700 | [diff] [blame] | 70 | src/socket/StatsSocketListener.cpp \ |
| 71 | src/shell/ShellSubscriber.cpp \ |
| 72 | src/shell/shell_config.proto |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 73 | |
Yao Chen | 5bfffb5 | 2018-06-21 16:58:51 -0700 | [diff] [blame] | 74 | # TODO(b/110563449): Once statsd is using a blueprint file, migrate to the proper filegroups. |
Andreas Gampe | ca1fb02 | 2018-05-07 09:10:21 -0700 | [diff] [blame] | 75 | statsd_common_src += \ |
Primiano Tucci | 65c72fc | 2018-07-17 16:53:14 +0100 | [diff] [blame] | 76 | ../../../../system/extras/perfprofd/binder_interface/aidl/android/os/IPerfProfd.aidl |
Andreas Gampe | ca1fb02 | 2018-05-07 09:10:21 -0700 | [diff] [blame] | 77 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 78 | statsd_common_c_includes := \ |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 79 | $(LOCAL_PATH)/src \ |
| 80 | $(LOCAL_PATH)/../../libs/services/include |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 81 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 82 | statsd_common_aidl_includes := \ |
| 83 | $(LOCAL_PATH)/../../core/java |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 84 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 85 | statsd_common_static_libraries := \ |
Howard Ro | cb767f6 | 2018-06-19 19:58:05 -0700 | [diff] [blame] | 86 | libhealthhalutils |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 87 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 88 | statsd_common_shared_libraries := \ |
| 89 | libbase \ |
| 90 | libbinder \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 91 | libincident \ |
| 92 | liblog \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 93 | libutils \ |
| 94 | libservices \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 95 | libprotoutil \ |
| 96 | libstatslog \ |
| 97 | libhardware \ |
| 98 | libhardware_legacy \ |
| 99 | libhidlbase \ |
| 100 | libhidltransport \ |
| 101 | libhwbinder \ |
Howard Ro | a46b658 | 2018-09-18 16:45:02 -0700 | [diff] [blame] | 102 | android.frameworks.stats@1.0 \ |
Tej Singh | bf972d9 | 2018-01-10 20:51:13 -0800 | [diff] [blame] | 103 | android.hardware.health@2.0 \ |
Chenjie Yu | 5305e1d | 2017-10-31 13:49:36 -0700 | [diff] [blame] | 104 | android.hardware.power@1.0 \ |
Yao Chen | 8d9989b | 2017-11-18 18:54:50 -0800 | [diff] [blame] | 105 | android.hardware.power@1.1 \ |
Yao Chen | 49954cd | 2018-04-18 13:48:02 -0700 | [diff] [blame] | 106 | android.hardware.thermal@1.0 \ |
| 107 | libpackagelistparser \ |
| 108 | libsysutils \ |
| 109 | libcutils |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 110 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 111 | # ========= |
| 112 | # statsd |
| 113 | # ========= |
| 114 | |
| 115 | include $(CLEAR_VARS) |
| 116 | |
| 117 | LOCAL_MODULE := statsd |
| 118 | |
| 119 | LOCAL_SRC_FILES := \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 120 | $(statsd_common_src) \ |
| 121 | src/main.cpp |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 122 | |
| 123 | LOCAL_CFLAGS += \ |
| 124 | -Wall \ |
Yao Chen | 4c959cb | 2018-02-13 13:27:48 -0800 | [diff] [blame] | 125 | -Wextra \ |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 126 | -Werror \ |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 127 | -Wno-unused-parameter |
| 128 | |
| 129 | ifeq (debug,) |
| 130 | LOCAL_CFLAGS += \ |
| 131 | -g -O0 |
| 132 | else |
| 133 | # optimize for size (protobuf glop can get big) |
| 134 | LOCAL_CFLAGS += \ |
| 135 | -Os |
| 136 | endif |
Yao Chen | 20e9e62 | 2018-02-28 11:18:51 -0800 | [diff] [blame] | 137 | LOCAL_PROTOC_OPTIMIZE_TYPE := lite |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 138 | |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 139 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 140 | LOCAL_C_INCLUDES += $(statsd_common_c_includes) |
Yao Chen | ab273e2 | 2017-09-06 12:53:50 -0700 | [diff] [blame] | 141 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 142 | LOCAL_STATIC_LIBRARIES := $(statsd_common_static_libraries) |
| 143 | |
David Chen | d689689 | 2017-10-25 11:49:03 -0700 | [diff] [blame] | 144 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
| 145 | libgtest_prod |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 146 | |
| 147 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 148 | |
Yao Chen | 980333c | 2018-05-30 09:03:17 -0700 | [diff] [blame] | 149 | # Enable sanitizer ONLY on eng builds. |
Yao Chen | 2cc4b4a | 2018-09-24 14:35:29 -0700 | [diff] [blame] | 150 | #ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 151 | # LOCAL_CLANG := true |
| 152 | # LOCAL_SANITIZE := address |
| 153 | #endif |
Yao Chen | 980333c | 2018-05-30 09:03:17 -0700 | [diff] [blame] | 154 | |
| 155 | # Add a flag to enable stats log printing from statsd on debug builds. |
| 156 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Yao Chen | 876889c | 2018-05-02 11:16:16 -0700 | [diff] [blame] | 157 | LOCAL_CFLAGS += \ |
| 158 | -DVERY_VERBOSE_PRINTING |
Yao Chen | cd7f900 | 2018-03-21 11:00:53 -0700 | [diff] [blame] | 159 | endif |
| 160 | |
yro | 9b97976 | 2018-01-29 16:23:13 -0800 | [diff] [blame] | 161 | LOCAL_INIT_RC := statsd.rc |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 162 | |
| 163 | include $(BUILD_EXECUTABLE) |
| 164 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 165 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 166 | # ============== |
| 167 | # statsd_test |
| 168 | # ============== |
| 169 | |
| 170 | include $(CLEAR_VARS) |
| 171 | |
| 172 | LOCAL_MODULE := statsd_test |
| 173 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 174 | LOCAL_MODULE_TAGS := tests |
| 175 | |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame] | 176 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 177 | LOCAL_C_INCLUDES += $(statsd_common_c_includes) |
David Chen | dd89694 | 2017-09-26 11:44:40 -0700 | [diff] [blame] | 178 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 179 | LOCAL_CFLAGS += \ |
| 180 | -Wall \ |
| 181 | -Werror \ |
| 182 | -Wno-missing-field-initializers \ |
| 183 | -Wno-unused-variable \ |
| 184 | -Wno-unused-function \ |
| 185 | -Wno-unused-parameter |
| 186 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 187 | LOCAL_SRC_FILES := \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 188 | $(statsd_common_src) \ |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 189 | src/atom_field_options.proto \ |
| 190 | src/atoms.proto \ |
| 191 | src/stats_log.proto \ |
Yangster-mac | 932ecec | 2018-02-01 10:23:52 -0800 | [diff] [blame] | 192 | tests/AlarmMonitor_test.cpp \ |
| 193 | tests/anomaly/AlarmTracker_test.cpp \ |
Yang Lu | 3eba621 | 2017-10-25 19:54:45 -0700 | [diff] [blame] | 194 | tests/anomaly/AnomalyTracker_test.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 195 | tests/ConfigManager_test.cpp \ |
Chenjie Yu | 80f9112 | 2018-01-31 20:24:50 -0800 | [diff] [blame] | 196 | tests/external/puller_util_test.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 197 | tests/indexed_priority_queue_test.cpp \ |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 198 | tests/LogEntryMatcher_test.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 199 | tests/LogEvent_test.cpp \ |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 200 | tests/MetricsManager_test.cpp \ |
David Chen | d9269e2 | 2017-12-05 13:43:51 -0800 | [diff] [blame] | 201 | tests/StatsLogProcessor_test.cpp \ |
David Chen | 9fdd403 | 2018-03-20 14:38:56 -0700 | [diff] [blame] | 202 | tests/StatsService_test.cpp \ |
Yao Chen | 5154a37 | 2017-10-30 22:57:06 -0700 | [diff] [blame] | 203 | tests/UidMap_test.cpp \ |
Yao Chen | 8a8d16c | 2018-02-08 14:50:40 -0800 | [diff] [blame] | 204 | tests/FieldValue_test.cpp \ |
Yao Chen | 967b205 | 2017-11-07 16:36:43 -0800 | [diff] [blame] | 205 | tests/condition/CombinationConditionTracker_test.cpp \ |
| 206 | tests/condition/SimpleConditionTracker_test.cpp \ |
Yao Chen | 580ea321 | 2018-02-26 14:21:54 -0800 | [diff] [blame] | 207 | tests/condition/StateTracker_test.cpp \ |
Yao Chen | 93fe3a3 | 2017-11-02 13:52:59 -0700 | [diff] [blame] | 208 | tests/metrics/OringDurationTracker_test.cpp \ |
| 209 | tests/metrics/MaxDurationTracker_test.cpp \ |
| 210 | tests/metrics/CountMetricProducer_test.cpp \ |
Yangster | f2bee6f | 2017-11-29 12:01:05 -0800 | [diff] [blame] | 211 | tests/metrics/DurationMetricProducer_test.cpp \ |
Chenjie Yu | 6736c89 | 2017-11-09 10:50:09 -0800 | [diff] [blame] | 212 | tests/metrics/EventMetricProducer_test.cpp \ |
Yao Chen | b356151 | 2017-11-21 18:07:17 -0800 | [diff] [blame] | 213 | tests/metrics/ValueMetricProducer_test.cpp \ |
Chenjie Yu | d9dfda7 | 2017-12-11 17:41:20 -0800 | [diff] [blame] | 214 | tests/metrics/GaugeMetricProducer_test.cpp \ |
Yao Chen | d5aa01b3 | 2017-12-19 16:46:36 -0800 | [diff] [blame] | 215 | tests/guardrail/StatsdStats_test.cpp \ |
Yangster-mac | 2087716 | 2017-12-22 17:19:39 -0800 | [diff] [blame] | 216 | tests/metrics/metrics_test_helper.cpp \ |
| 217 | tests/statsd_test_util.cpp \ |
| 218 | tests/e2e/WakelockDuration_e2e_test.cpp \ |
Yangster-mac | b5bc741 | 2018-01-06 23:17:45 -0800 | [diff] [blame] | 219 | tests/e2e/MetricConditionLink_e2e_test.cpp \ |
Yangster-mac | 684d195 | 2018-03-24 16:47:16 -0700 | [diff] [blame] | 220 | tests/e2e/Alarm_e2e_test.cpp \ |
Yangster-mac | 87718e2 | 2018-01-11 16:16:26 -0800 | [diff] [blame] | 221 | tests/e2e/Attribution_e2e_test.cpp \ |
Yangster-mac | 3fa5d7f | 2018-03-10 21:50:27 -0800 | [diff] [blame] | 222 | tests/e2e/GaugeMetric_e2e_push_test.cpp \ |
Yangster-mac | 15f6bbc | 2018-04-08 11:52:26 -0700 | [diff] [blame] | 223 | tests/e2e/GaugeMetric_e2e_pull_test.cpp \ |
| 224 | tests/e2e/ValueMetric_pull_e2e_test.cpp \ |
Yangster | 13fb7e4 | 2018-03-07 17:30:49 -0800 | [diff] [blame] | 225 | tests/e2e/DimensionInCondition_e2e_combination_AND_cond_test.cpp \ |
| 226 | tests/e2e/DimensionInCondition_e2e_combination_OR_cond_test.cpp \ |
Yangster-mac | be10ddf | 2018-03-13 15:39:51 -0700 | [diff] [blame] | 227 | tests/e2e/DimensionInCondition_e2e_simple_cond_test.cpp \ |
| 228 | tests/e2e/Anomaly_count_e2e_test.cpp \ |
Yangster-mac | b142cc8 | 2018-03-30 15:22:08 -0700 | [diff] [blame] | 229 | tests/e2e/Anomaly_duration_sum_e2e_test.cpp \ |
David Chen | bd12527 | 2018-04-04 19:02:50 -0700 | [diff] [blame] | 230 | tests/e2e/ConfigTtl_e2e_test.cpp \ |
Yao Chen | 398dd19 | 2018-10-01 14:49:03 -0700 | [diff] [blame] | 231 | tests/e2e/PartialBucket_e2e_test.cpp \ |
| 232 | tests/shell/ShellSubscriber_test.cpp |
Joe Onorato | 9fc9edf | 2017-10-15 20:08:52 -0700 | [diff] [blame] | 233 | |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 234 | LOCAL_STATIC_LIBRARIES := \ |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 235 | $(statsd_common_static_libraries) \ |
Howard Ro | cb767f6 | 2018-06-19 19:58:05 -0700 | [diff] [blame] | 236 | libgmock \ |
Howard Ro | cb767f6 | 2018-06-19 19:58:05 -0700 | [diff] [blame] | 237 | libplatformprotos |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 238 | |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 239 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 240 | |
Yao Chen | 9c1debe | 2018-02-19 14:39:19 -0800 | [diff] [blame] | 241 | LOCAL_PROTOC_FLAGS := \ |
| 242 | -Iexternal/protobuf/src |
| 243 | |
| 244 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
| 245 | libprotobuf-cpp-full |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 246 | |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 247 | include $(BUILD_NATIVE_TEST) |
| 248 | |
Yao Chen | 459dee6 | 2018-01-10 16:47:05 -0800 | [diff] [blame] | 249 | ############################## |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 250 | # statsd micro benchmark |
| 251 | ############################## |
| 252 | |
| 253 | include $(CLEAR_VARS) |
| 254 | LOCAL_MODULE := statsd_benchmark |
| 255 | |
| 256 | LOCAL_SRC_FILES := $(statsd_common_src) \ |
Yangster | 13fb7e4 | 2018-03-07 17:30:49 -0800 | [diff] [blame] | 257 | src/atom_field_options.proto \ |
| 258 | src/atoms.proto \ |
| 259 | src/stats_log.proto \ |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 260 | benchmark/main.cpp \ |
| 261 | benchmark/hello_world_benchmark.cpp \ |
Tej Singh | 3410634 | 2018-02-02 17:08:05 -0800 | [diff] [blame] | 262 | benchmark/log_event_benchmark.cpp \ |
Yangster-mac | f520492 | 2018-02-23 13:08:03 -0800 | [diff] [blame] | 263 | benchmark/stats_write_benchmark.cpp \ |
Yangster | 13fb7e4 | 2018-03-07 17:30:49 -0800 | [diff] [blame] | 264 | benchmark/filter_value_benchmark.cpp \ |
| 265 | benchmark/get_dimensions_for_condition_benchmark.cpp \ |
| 266 | benchmark/metric_util.cpp \ |
| 267 | benchmark/duration_metric_benchmark.cpp |
| 268 | |
| 269 | LOCAL_STATIC_LIBRARIES := \ |
| 270 | $(statsd_common_static_libraries) |
| 271 | |
| 272 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
| 273 | |
| 274 | LOCAL_PROTOC_FLAGS := \ |
| 275 | -Iexternal/protobuf/src |
| 276 | |
| 277 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
| 278 | libprotobuf-cpp-full |
| 279 | |
Yangster | 13fb7e4 | 2018-03-07 17:30:49 -0800 | [diff] [blame] | 280 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 281 | platformprotoslite |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 282 | |
| 283 | LOCAL_C_INCLUDES := $(statsd_common_c_includes) |
| 284 | |
| 285 | LOCAL_CFLAGS := -Wall \ |
| 286 | -Werror \ |
| 287 | -Wno-unused-parameter \ |
| 288 | -Wno-unused-variable \ |
| 289 | -Wno-unused-function \ |
| 290 | |
| 291 | # Bug: http://b/29823425 Disable -Wvarargs for Clang update to r271374 |
| 292 | LOCAL_CFLAGS += -Wno-varargs |
| 293 | |
| 294 | LOCAL_AIDL_INCLUDES := $(statsd_common_aidl_includes) |
| 295 | |
| 296 | LOCAL_STATIC_LIBRARIES := \ |
Howard Ro | cb767f6 | 2018-06-19 19:58:05 -0700 | [diff] [blame] | 297 | $(statsd_common_static_libraries) \ |
Howard Ro | cb767f6 | 2018-06-19 19:58:05 -0700 | [diff] [blame] | 298 | libplatformprotos |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 299 | |
| 300 | LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \ |
Tej Singh | 3410634 | 2018-02-02 17:08:05 -0800 | [diff] [blame] | 301 | libgtest_prod \ |
| 302 | libstatslog |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 303 | |
Yao Chen | 48d7518 | 2018-01-23 09:40:48 -0800 | [diff] [blame] | 304 | LOCAL_MODULE_TAGS := eng tests |
| 305 | |
| 306 | include $(BUILD_NATIVE_BENCHMARK) |
| 307 | |
| 308 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 309 | statsd_common_src:= |
| 310 | statsd_common_aidl_includes:= |
| 311 | statsd_common_c_includes:= |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 312 | statsd_common_static_libraries:= |
| 313 | statsd_common_shared_libraries:= |
Joe Onorato | 5dcbc6c | 2017-08-29 15:13:58 -0700 | [diff] [blame] | 314 | |
Yao Chen | 1ff4f43 | 2017-11-16 17:01:40 -0800 | [diff] [blame] | 315 | |
Yao Chen | b19425e | 2018-03-08 14:38:12 -0800 | [diff] [blame] | 316 | include $(call all-makefiles-under,$(LOCAL_PATH)) |