blob: 52d24547a2d78b6ff393d799d7eb4e9b05b37711 [file] [log] [blame]
Marat Dukhan59d30712017-05-08 04:43:52 -04001LOCAL_PATH := $(call my-dir)/..
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := cpuinfo
5LOCAL_SRC_FILES := $(LOCAL_PATH)/src/init.c \
Marat Dukhan30401972017-09-26 18:35:52 -07006 $(LOCAL_PATH)/src/api.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -07007 $(LOCAL_PATH)/src/log.c \
Marat Dukhanc40c7312017-09-21 16:08:18 -07008 $(LOCAL_PATH)/src/gpu/gles2.c \
Marat Dukhanfd0f3ef2017-12-18 17:45:18 -08009 $(LOCAL_PATH)/src/linux/gpu.c \
Marat Dukhand9f76e02017-09-24 22:46:08 -070010 $(LOCAL_PATH)/src/linux/current.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070011 $(LOCAL_PATH)/src/linux/processors.c \
12 $(LOCAL_PATH)/src/linux/smallfile.c \
13 $(LOCAL_PATH)/src/linux/multiline.c \
14 $(LOCAL_PATH)/src/linux/cpulist.c
Marat Dukhan63a78bb2017-05-09 10:20:51 -040015ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
Marat Dukhan59d30712017-05-08 04:43:52 -040016LOCAL_SRC_FILES += \
17 $(LOCAL_PATH)/src/arm/uarch.c \
18 $(LOCAL_PATH)/src/arm/cache.c \
19 $(LOCAL_PATH)/src/arm/linux/init.c \
Marat Dukhan006461a2017-08-24 16:10:46 -070020 $(LOCAL_PATH)/src/arm/linux/cpuinfo.c \
Marat Dukhan9403e5a2017-09-11 10:23:21 -070021 $(LOCAL_PATH)/src/arm/linux/clusters.c \
Marat Dukhan1415d7d2017-10-16 09:40:15 -070022 $(LOCAL_PATH)/src/arm/linux/chipset.c \
Marat Dukhan9403e5a2017-09-11 10:23:21 -070023 $(LOCAL_PATH)/src/arm/linux/midr.c \
Marat Dukhan63a7a6b2017-11-29 15:11:56 -080024 $(LOCAL_PATH)/src/arm/linux/hwcap.c \
Marat Dukhan3985cf82017-12-18 18:58:26 -080025 $(LOCAL_PATH)/src/arm/android/gpu.c \
Marat Dukhan1415d7d2017-10-16 09:40:15 -070026 $(LOCAL_PATH)/src/arm/android/properties.c
Marat Dukhan59d30712017-05-08 04:43:52 -040027ifeq ($(TARGET_ARCH_ABI),armeabi)
Marat Dukhandeaa8982017-11-28 11:07:11 -080028LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch32-isa.c.arm
Marat Dukhan59d30712017-05-08 04:43:52 -040029endif # armeabi
Marat Dukhan63a78bb2017-05-09 10:20:51 -040030ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
Marat Dukhandeaa8982017-11-28 11:07:11 -080031LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch32-isa.c
Marat Dukhan63a78bb2017-05-09 10:20:51 -040032endif # armeabi-v7a
33ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
Marat Dukhandeaa8982017-11-28 11:07:11 -080034LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch64-isa.c
Marat Dukhan63a78bb2017-05-09 10:20:51 -040035endif # arm64-v8a
36endif # armeabi, armeabi-v7a, or arm64-v8a
Marat Dukhan59d30712017-05-08 04:43:52 -040037ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
38LOCAL_SRC_FILES += \
Marat Dukhan51528ce2017-09-13 22:07:16 -070039 $(LOCAL_PATH)/src/x86/init.c \
40 $(LOCAL_PATH)/src/x86/info.c \
Marat Dukhana0157022017-09-22 16:45:28 -070041 $(LOCAL_PATH)/src/x86/name.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070042 $(LOCAL_PATH)/src/x86/isa.c \
43 $(LOCAL_PATH)/src/x86/vendor.c \
44 $(LOCAL_PATH)/src/x86/uarch.c \
45 $(LOCAL_PATH)/src/x86/topology.c \
46 $(LOCAL_PATH)/src/x86/cache/init.c \
47 $(LOCAL_PATH)/src/x86/cache/descriptor.c \
48 $(LOCAL_PATH)/src/x86/cache/deterministic.c \
Marat Dukhan4f70b9a2017-09-25 23:18:41 -070049 $(LOCAL_PATH)/src/x86/linux/cpuinfo.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070050 $(LOCAL_PATH)/src/x86/linux/init.c
Marat Dukhan59d30712017-05-08 04:43:52 -040051endif # x86 or x86_64
52LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
53LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/src
Marat Dukhan0de277f2017-09-22 14:25:10 -070054LOCAL_CFLAGS := -std=gnu99 -Wall -Wno-maybe-uninitialized -Wno-unknown-warning-option -D_GNU_SOURCE=1
Marat Dukhan59d30712017-05-08 04:43:52 -040055include $(BUILD_STATIC_LIBRARY)
56
57include $(CLEAR_VARS)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070058LOCAL_MODULE := cpuinfo_mock
59LOCAL_SRC_FILES := $(LOCAL_PATH)/src/init.c \
Marat Dukhan30401972017-09-26 18:35:52 -070060 $(LOCAL_PATH)/src/api.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070061 $(LOCAL_PATH)/src/log.c \
Marat Dukhanfd0f3ef2017-12-18 17:45:18 -080062 $(LOCAL_PATH)/src/gpu/gles2-mock.c \
63 $(LOCAL_PATH)/src/linux/gpu.c \
Marat Dukhand9f76e02017-09-24 22:46:08 -070064 $(LOCAL_PATH)/src/linux/current.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070065 $(LOCAL_PATH)/src/linux/mockfile.c \
66 $(LOCAL_PATH)/src/linux/processors.c \
67 $(LOCAL_PATH)/src/linux/smallfile.c \
68 $(LOCAL_PATH)/src/linux/multiline.c \
69 $(LOCAL_PATH)/src/linux/cpulist.c
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070070ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
71LOCAL_SRC_FILES += \
72 $(LOCAL_PATH)/src/arm/uarch.c \
73 $(LOCAL_PATH)/src/arm/cache.c \
74 $(LOCAL_PATH)/src/arm/linux/init.c \
Marat Dukhan006461a2017-08-24 16:10:46 -070075 $(LOCAL_PATH)/src/arm/linux/cpuinfo.c \
Marat Dukhan9403e5a2017-09-11 10:23:21 -070076 $(LOCAL_PATH)/src/arm/linux/clusters.c \
Marat Dukhan1415d7d2017-10-16 09:40:15 -070077 $(LOCAL_PATH)/src/arm/linux/chipset.c \
Marat Dukhan9403e5a2017-09-11 10:23:21 -070078 $(LOCAL_PATH)/src/arm/linux/midr.c \
Marat Dukhan63a7a6b2017-11-29 15:11:56 -080079 $(LOCAL_PATH)/src/arm/linux/hwcap.c \
Marat Dukhan3985cf82017-12-18 18:58:26 -080080 $(LOCAL_PATH)/src/arm/android/gpu.c \
Marat Dukhan1415d7d2017-10-16 09:40:15 -070081 $(LOCAL_PATH)/src/arm/android/properties.c
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070082ifeq ($(TARGET_ARCH_ABI),armeabi)
Marat Dukhandeaa8982017-11-28 11:07:11 -080083LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch32-isa.c.arm
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070084endif # armeabi
85ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
Marat Dukhandeaa8982017-11-28 11:07:11 -080086LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch32-isa.c
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070087endif # armeabi-v7a
88ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
Marat Dukhandeaa8982017-11-28 11:07:11 -080089LOCAL_SRC_FILES += $(LOCAL_PATH)/src/arm/linux/aarch64-isa.c
Marat Dukhana8fb3dd2017-08-09 13:49:39 -070090endif # arm64-v8a
91endif # armeabi, armeabi-v7a, or arm64-v8a
92ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
93LOCAL_SRC_FILES += \
Marat Dukhan51528ce2017-09-13 22:07:16 -070094 $(LOCAL_PATH)/src/x86/init.c \
95 $(LOCAL_PATH)/src/x86/info.c \
Marat Dukhana0157022017-09-22 16:45:28 -070096 $(LOCAL_PATH)/src/x86/name.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -070097 $(LOCAL_PATH)/src/x86/isa.c \
98 $(LOCAL_PATH)/src/x86/vendor.c \
99 $(LOCAL_PATH)/src/x86/uarch.c \
100 $(LOCAL_PATH)/src/x86/topology.c \
Marat Dukhan8fb88ad2017-09-25 23:20:12 -0700101 $(LOCAL_PATH)/src/x86/mockcpuid.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -0700102 $(LOCAL_PATH)/src/x86/cache/init.c \
103 $(LOCAL_PATH)/src/x86/cache/descriptor.c \
104 $(LOCAL_PATH)/src/x86/cache/deterministic.c \
Marat Dukhan4f70b9a2017-09-25 23:18:41 -0700105 $(LOCAL_PATH)/src/x86/linux/cpuinfo.c \
Marat Dukhan51528ce2017-09-13 22:07:16 -0700106 $(LOCAL_PATH)/src/x86/linux/init.c
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700107endif # x86 or x86_64
108LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
109LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/src
Marat Dukhan0de277f2017-09-22 14:25:10 -0700110LOCAL_CFLAGS := -std=gnu99 -Wall -Wno-maybe-uninitialized -Wno-unknown-warning-option -D_GNU_SOURCE=1 -DCPUINFO_LOG_LEVEL=4 -DCPUINFO_MOCK=1
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700111LOCAL_EXPORT_CFLAGS := -DCPUINFO_MOCK=1
112include $(BUILD_STATIC_LIBRARY)
113
114include $(CLEAR_VARS)
Marat Dukhan59d30712017-05-08 04:43:52 -0400115LOCAL_MODULE := cpu-info
116LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/cpu-info.c
Marat Dukhanc7c09992017-09-22 12:12:19 -0700117LOCAL_CFLAGS := -std=gnu99
Marat Dukhan59d30712017-05-08 04:43:52 -0400118LOCAL_STATIC_LIBRARIES := cpuinfo
119include $(BUILD_EXECUTABLE)
120
121include $(CLEAR_VARS)
122LOCAL_MODULE := isa-info
123LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/isa-info.c
Marat Dukhanc7c09992017-09-22 12:12:19 -0700124LOCAL_CFLAGS := -std=gnu99
Marat Dukhan59d30712017-05-08 04:43:52 -0400125LOCAL_STATIC_LIBRARIES := cpuinfo
126include $(BUILD_EXECUTABLE)
127
128include $(CLEAR_VARS)
129LOCAL_MODULE := cache-info
130LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/cache-info.c
Marat Dukhanc7c09992017-09-22 12:12:19 -0700131LOCAL_CFLAGS := -std=gnu99
Marat Dukhan59d30712017-05-08 04:43:52 -0400132LOCAL_STATIC_LIBRARIES := cpuinfo
133include $(BUILD_EXECUTABLE)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700134
Marat Dukhan115d4152017-10-19 11:24:17 -0700135# include $(CLEAR_VARS)
136# LOCAL_MODULE := gpu-dump
137# LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/gpu-dump.c
138# LOCAL_CFLAGS := -std=gnu99
139# LOCAL_LDLIBS := -ldl -lEGL -lGLESv2
140# include $(BUILD_EXECUTABLE)
141
Marat Dukhan0f0b2332017-09-22 15:08:44 -0700142include $(CLEAR_VARS)
143LOCAL_MODULE := size-test
144LOCAL_SRC_FILES := $(LOCAL_PATH)/test/size.c
145LOCAL_CFLAGS := -std=gnu99
146LOCAL_STATIC_LIBRARIES := cpuinfo
147include $(BUILD_EXECUTABLE)
148
Marat Dukhanf3a71e62017-11-29 15:15:36 -0800149ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
150
151include $(CLEAR_VARS)
152LOCAL_MODULE := auxv-dump
153LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/auxv-dump.c
Marat Dukhanf3a71e62017-11-29 15:15:36 -0800154LOCAL_CFLAGS := -std=gnu99
155include $(BUILD_EXECUTABLE)
156
Marat Dukhancb9ae9c2018-04-19 12:29:15 -0700157include $(CLEAR_VARS)
158LOCAL_MODULE := cpuinfo-dump
159LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/cpuinfo-dump.c
160LOCAL_CFLAGS := -std=gnu99
161include $(BUILD_EXECUTABLE)
162
Marat Dukhanf3a71e62017-11-29 15:15:36 -0800163endif # armeabi, armeabi-v7a, or arm64-v8a
164
Marat Dukhan0de277f2017-09-22 14:25:10 -0700165ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
166
167include $(CLEAR_VARS)
168LOCAL_MODULE := cpuid-dump
169LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/cpuid-dump.c
170LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/src
171LOCAL_CFLAGS := -std=gnu99
172include $(BUILD_EXECUTABLE)
173
174endif # x86, or x86_64
175
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700176include $(CLEAR_VARS)
177LOCAL_MODULE := gtest
178LOCAL_SRC_FILES := $(LOCAL_PATH)/deps/googletest/googletest/src/gtest-all.cc
179LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/deps/googletest/googletest/include
180LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/deps/googletest/googletest
181ifeq ($(TARGET_ARCH_ABI),armeabi)
182LOCAL_EXPORT_LDLIBS := -latomic
183endif # armeabi
184include $(BUILD_STATIC_LIBRARY)
185
186include $(CLEAR_VARS)
Marat Dukhan006461a2017-08-24 16:10:46 -0700187LOCAL_MODULE := gtest_main
188LOCAL_SRC_FILES := $(LOCAL_PATH)/deps/googletest/googletest/src/gtest_main.cc
189LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/deps/googletest/googletest/include
190LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/deps/googletest/googletest
191include $(BUILD_STATIC_LIBRARY)
192
193include $(CLEAR_VARS)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700194LOCAL_MODULE := init-test
195LOCAL_SRC_FILES := $(LOCAL_PATH)/test/init.cc
196LOCAL_C_INCLUDES := $(LOCAL_PATH)/test
197LOCAL_STATIC_LIBRARIES := cpuinfo gtest
198include $(BUILD_EXECUTABLE)
199
Marat Dukhan30401972017-09-26 18:35:52 -0700200include $(CLEAR_VARS)
201LOCAL_MODULE := get-current-test
202LOCAL_SRC_FILES := $(LOCAL_PATH)/test/get-current.cc
203LOCAL_C_INCLUDES := $(LOCAL_PATH)/test
204LOCAL_STATIC_LIBRARIES := cpuinfo gtest
205include $(BUILD_EXECUTABLE)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700206
207ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a))
208
209include $(CLEAR_VARS)
Marat Dukhanf18db832017-11-28 11:10:10 -0800210LOCAL_MODULE := atm7029b-tablet-test
211LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/atm7029b-tablet.cc
212LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
213LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
214include $(BUILD_EXECUTABLE)
215
216include $(CLEAR_VARS)
Marat Dukhan1aeee8e2017-08-10 17:33:45 -0700217LOCAL_MODULE := blu-r1-hd-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700218LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/blu-r1-hd.cc
219LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan1aeee8e2017-08-10 17:33:45 -0700220LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
221include $(BUILD_EXECUTABLE)
222
223include $(CLEAR_VARS)
Marat Dukhan94f763a2017-12-04 16:44:33 -0800224LOCAL_MODULE := galaxy-a3-2016-eu-test
225LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a3-2016-eu.cc
226LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
227LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
228include $(BUILD_EXECUTABLE)
229
230include $(CLEAR_VARS)
Marat Dukhanf9ccfa32017-11-27 15:50:06 -0800231LOCAL_MODULE := galaxy-a8-2016-duos-test
232LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a8-2016-duos.cc
233LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
234LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
235include $(BUILD_EXECUTABLE)
236
237include $(CLEAR_VARS)
Marat Dukhanc90b4062017-08-10 15:45:11 -0700238LOCAL_MODULE := galaxy-grand-prime-value-edition-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700239LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-grand-prime-value-edition.cc
240LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanc90b4062017-08-10 15:45:11 -0700241LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
242include $(BUILD_EXECUTABLE)
243
244include $(CLEAR_VARS)
Marat Dukhand77e1a22018-01-04 19:45:06 -0800245LOCAL_MODULE := galaxy-j1-2016-test
246LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j1-2016.cc
247LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
248LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
249include $(BUILD_EXECUTABLE)
250
251include $(CLEAR_VARS)
Marat Dukhan126c46d2017-12-04 16:24:48 -0800252LOCAL_MODULE := galaxy-j5-test
253LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j5.cc
254LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
255LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
256include $(BUILD_EXECUTABLE)
257
258include $(CLEAR_VARS)
Marat Dukhan84435902017-11-29 15:53:58 -0800259LOCAL_MODULE := galaxy-j7-prime-test
260LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-prime.cc
261LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
262LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
263include $(BUILD_EXECUTABLE)
264
265include $(CLEAR_VARS)
Marat Dukhan0d2aaa72017-11-29 15:48:46 -0800266LOCAL_MODULE := galaxy-j7-tmobile-test
267LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-tmobile.cc
268LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
269LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
270include $(BUILD_EXECUTABLE)
271
272include $(CLEAR_VARS)
273LOCAL_MODULE := galaxy-j7-uae-test
274LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-uae.cc
275LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
276LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
277include $(BUILD_EXECUTABLE)
278
279include $(CLEAR_VARS)
Marat Dukhanb8a4f122017-08-10 14:18:50 -0700280LOCAL_MODULE := galaxy-s3-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700281LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s3-us.cc
282LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanb8a4f122017-08-10 14:18:50 -0700283LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
284include $(BUILD_EXECUTABLE)
285
286include $(CLEAR_VARS)
Marat Dukhanb0ad4922017-08-10 14:07:19 -0700287LOCAL_MODULE := galaxy-s4-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700288LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s4-us.cc
289LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanb0ad4922017-08-10 14:07:19 -0700290LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
291include $(BUILD_EXECUTABLE)
292
293include $(CLEAR_VARS)
Marat Dukhane1f62e52017-09-08 17:11:08 -0700294LOCAL_MODULE := galaxy-s5-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700295LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s5-global.cc
296LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane1f62e52017-09-08 17:11:08 -0700297LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
298include $(BUILD_EXECUTABLE)
299
300include $(CLEAR_VARS)
Marat Dukhan16b89c72017-09-08 17:16:10 -0700301LOCAL_MODULE := galaxy-s5-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700302LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s5-us.cc
303LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan16b89c72017-09-08 17:16:10 -0700304LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
305include $(BUILD_EXECUTABLE)
306
307include $(CLEAR_VARS)
Marat Dukhan6ce014a2017-09-14 14:00:41 -0700308LOCAL_MODULE := galaxy-tab-3-7.0-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700309LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-tab-3-7.0.cc
310LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan6ce014a2017-09-14 14:00:41 -0700311LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
312include $(BUILD_EXECUTABLE)
313
314include $(CLEAR_VARS)
Marat Dukhan15effa52017-10-19 11:40:12 -0700315LOCAL_MODULE := galaxy-tab-3-lite-test
316LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-tab-3-lite.cc
317LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
318LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
319include $(BUILD_EXECUTABLE)
320
321include $(CLEAR_VARS)
Marat Dukhan955c3db2017-09-14 13:13:46 -0700322LOCAL_MODULE := galaxy-win-duos-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700323LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-win-duos.cc
324LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan955c3db2017-09-14 13:13:46 -0700325LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
326include $(BUILD_EXECUTABLE)
327
328include $(CLEAR_VARS)
Marat Dukhan115d4152017-10-19 11:24:17 -0700329LOCAL_MODULE := huawei-ascend-p7-test
330LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-ascend-p7.cc
331LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
332LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
333include $(BUILD_EXECUTABLE)
334
335include $(CLEAR_VARS)
Marat Dukhan80f4b7f2018-04-10 21:37:52 -0700336LOCAL_MODULE := huawei-honor-6-test
337LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-honor-6.cc
338LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
339LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
340include $(BUILD_EXECUTABLE)
341
342include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700343LOCAL_MODULE := lenovo-a6600-plus-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700344LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lenovo-a6600-plus.cc
345LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700346LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
347include $(BUILD_EXECUTABLE)
348
349include $(CLEAR_VARS)
350LOCAL_MODULE := lenovo-vibe-x2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700351LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lenovo-vibe-x2.cc
352LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700353LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
354include $(BUILD_EXECUTABLE)
355
356include $(CLEAR_VARS)
357LOCAL_MODULE := lg-k10-eu-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700358LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lg-k10-eu.cc
359LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700360LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
361include $(BUILD_EXECUTABLE)
362
363include $(CLEAR_VARS)
Marat Dukhandc58d502018-01-04 20:25:30 -0800364LOCAL_MODULE := lg-optimus-g-pro-test
365LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lg-optimus-g-pro.cc
366LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
367LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
368include $(BUILD_EXECUTABLE)
369
370include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700371LOCAL_MODULE := moto-e-gen1-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700372LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-e-gen1.cc
373LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700374LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
375include $(BUILD_EXECUTABLE)
376
377include $(CLEAR_VARS)
Marat Dukhan92db81f2018-01-05 19:01:52 -0800378LOCAL_MODULE := moto-g-gen1-test
379LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen1.cc
380LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
381LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
382include $(BUILD_EXECUTABLE)
383
384include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700385LOCAL_MODULE := moto-g-gen2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700386LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen2.cc
387LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700388LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
389include $(BUILD_EXECUTABLE)
390
391include $(CLEAR_VARS)
392LOCAL_MODULE := moto-g-gen3-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700393LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen3.cc
394LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700395LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
396include $(BUILD_EXECUTABLE)
397
398include $(CLEAR_VARS)
Marat Dukhan76829232018-03-02 12:58:30 -0800399LOCAL_MODULE := moto-g-gen4-test
400LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen4.cc
401LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
402LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
403include $(BUILD_EXECUTABLE)
404
405include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700406LOCAL_MODULE := nexus-s-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700407LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus-s.cc
408LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700409LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
410include $(BUILD_EXECUTABLE)
411
412include $(CLEAR_VARS)
413LOCAL_MODULE := nexus4-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700414LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus4.cc
415LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700416LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
417include $(BUILD_EXECUTABLE)
418
419include $(CLEAR_VARS)
420LOCAL_MODULE := nexus6-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700421LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus6.cc
422LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700423LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
424include $(BUILD_EXECUTABLE)
425
426include $(CLEAR_VARS)
Marat Dukhan2ca13b22018-01-04 18:52:46 -0800427LOCAL_MODULE := nexus10-test
428LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus10.cc
429LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
430LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
431include $(BUILD_EXECUTABLE)
432
433include $(CLEAR_VARS)
Marat Dukhan59572542017-11-27 17:22:09 -0800434LOCAL_MODULE := padcod-10.1-test
435LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/padcod-10.1.cc
436LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
437LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
438include $(BUILD_EXECUTABLE)
439
440include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700441LOCAL_MODULE := xiaomi-redmi-2a-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700442LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-2a.cc
443LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700444LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
445include $(BUILD_EXECUTABLE)
446
Marat Dukhanad741842017-12-03 23:11:46 -0800447include $(CLEAR_VARS)
448LOCAL_MODULE := xperia-sl-test
449LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xperia-sl.cc
450LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
451LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
452include $(BUILD_EXECUTABLE)
453
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700454endif # armeabi, armeabi-v7a
455
456ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
457
458include $(CLEAR_VARS)
Marat Dukhanc7c09992017-09-22 12:12:19 -0700459LOCAL_MODULE := android_properties_interface
460LOCAL_SRC_FILES := $(LOCAL_PATH)/test/name/android-properties-interface.c
461LOCAL_CFLAGS := -std=gnu99
462LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
463LOCAL_STATIC_LIBRARIES := cpuinfo
464include $(BUILD_STATIC_LIBRARY)
465
466include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700467LOCAL_MODULE := chipset-test
Marat Dukhanc7c09992017-09-22 12:12:19 -0700468LOCAL_SRC_FILES := \
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700469 $(LOCAL_PATH)/test/name/proc-cpuinfo-hardware.cc \
470 $(LOCAL_PATH)/test/name/ro-product-board.cc \
471 $(LOCAL_PATH)/test/name/ro-board-platform.cc \
472 $(LOCAL_PATH)/test/name/ro-mediatek-platform.cc \
Marat Dukhane5d60492018-03-08 12:47:27 -0800473 $(LOCAL_PATH)/test/name/ro-arch.cc \
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700474 $(LOCAL_PATH)/test/name/ro-chipname.cc \
475 $(LOCAL_PATH)/test/name/android-properties.cc
476LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
Marat Dukhanc7c09992017-09-22 12:12:19 -0700477LOCAL_STATIC_LIBRARIES := android_properties_interface gtest gtest_main
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700478include $(BUILD_EXECUTABLE)
479
480include $(CLEAR_VARS)
Marat Dukhanc1852c72017-09-21 23:18:11 -0700481LOCAL_MODULE := cache-test
482LOCAL_SRC_FILES := $(LOCAL_PATH)/test/arm-cache.cc
483LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
Marat Dukhanc7c09992017-09-22 12:12:19 -0700484LOCAL_CFLAGS := -std=gnu++11 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
Marat Dukhanc1852c72017-09-21 23:18:11 -0700485LOCAL_STATIC_LIBRARIES := cpuinfo gtest gtest_main
486include $(BUILD_EXECUTABLE)
487
488include $(CLEAR_VARS)
Marat Dukhanc246e322018-01-26 11:21:48 -0800489LOCAL_MODULE := alcatel-revvl-test
490LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/alcatel-revvl.cc
491LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
492LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
493include $(BUILD_EXECUTABLE)
494
495include $(CLEAR_VARS)
Marat Dukhan89a3f082018-03-13 11:59:03 -0700496LOCAL_MODULE := galaxy-a8-2018-test
497LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a8-2018.cc
498LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
499LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
500include $(BUILD_EXECUTABLE)
501
502include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700503LOCAL_MODULE := galaxy-c9-pro-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700504LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-c9-pro.cc
505LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700506LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
507include $(BUILD_EXECUTABLE)
508
509include $(CLEAR_VARS)
Marat Dukhanc4236f52017-08-17 17:32:55 -0700510LOCAL_MODULE := galaxy-s6-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700511LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s6.cc
512LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanc4236f52017-08-17 17:32:55 -0700513LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
514include $(BUILD_EXECUTABLE)
515
516include $(CLEAR_VARS)
Marat Dukhanbfd92f22017-08-09 18:30:38 -0700517LOCAL_MODULE := galaxy-s7-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700518LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s7-us.cc
519LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanbfd92f22017-08-09 18:30:38 -0700520LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
521include $(BUILD_EXECUTABLE)
522
Marat Dukhan2e00fed2017-08-10 17:23:43 -0700523include $(CLEAR_VARS)
524LOCAL_MODULE := galaxy-s7-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700525LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s7-global.cc
526LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan2e00fed2017-08-10 17:23:43 -0700527LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
528include $(BUILD_EXECUTABLE)
529
Marat Dukhan47ad0072017-08-11 01:12:52 -0700530include $(CLEAR_VARS)
531LOCAL_MODULE := galaxy-s8-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700532LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s8-us.cc
533LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan47ad0072017-08-11 01:12:52 -0700534LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
535include $(BUILD_EXECUTABLE)
536
Marat Dukhan5d358682017-08-11 15:21:54 -0700537include $(CLEAR_VARS)
538LOCAL_MODULE := galaxy-s8-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700539LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s8-global.cc
540LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan5d358682017-08-11 15:21:54 -0700541LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
542include $(BUILD_EXECUTABLE)
543
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700544include $(CLEAR_VARS)
Marat Dukhand51d3952018-03-17 19:18:06 -0700545LOCAL_MODULE := galaxy-s9-us-test
546LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s9-us.cc
547LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
548LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
549include $(BUILD_EXECUTABLE)
550
551include $(CLEAR_VARS)
Marat Dukhan2f29c762018-04-10 22:07:36 -0700552LOCAL_MODULE := galaxy-s9-global-test
553LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s9-global.cc
554LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
555LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
556include $(BUILD_EXECUTABLE)
557
558include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700559LOCAL_MODULE := huawei-mate-8-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700560LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-8.cc
561LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700562LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
563include $(BUILD_EXECUTABLE)
564
565include $(CLEAR_VARS)
Marat Dukhanb589f1f2017-10-19 12:02:00 -0700566LOCAL_MODULE := huawei-mate-9-test
567LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-9.cc
568LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
569LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
570include $(BUILD_EXECUTABLE)
571
572include $(CLEAR_VARS)
Marat Dukhan7be11402017-11-27 14:57:02 -0800573LOCAL_MODULE := huawei-mate-10-test
574LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-10.cc
575LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
576LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
577include $(BUILD_EXECUTABLE)
578
579include $(CLEAR_VARS)
Marat Dukhan705122f2018-01-03 18:24:55 -0800580LOCAL_MODULE := huawei-p8-lite-test
581LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-p8-lite.cc
582LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
583LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
584include $(BUILD_EXECUTABLE)
585
586include $(CLEAR_VARS)
587LOCAL_MODULE := huawei-p9-lite-test
588LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-p9-lite.cc
589LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
590LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
591include $(BUILD_EXECUTABLE)
592
593include $(CLEAR_VARS)
594LOCAL_MODULE := iconia-one-10-test
595LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/iconia-one-10.cc
596LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
597LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
598include $(BUILD_EXECUTABLE)
599
600include $(CLEAR_VARS)
Marat Dukhanc068a812017-10-19 18:52:04 -0700601LOCAL_MODULE := meizu-pro-6-test
602LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-6.cc
603LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
604LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
605include $(BUILD_EXECUTABLE)
606
607include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700608LOCAL_MODULE := meizu-pro-6s-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700609LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-6s.cc
610LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700611LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
612include $(BUILD_EXECUTABLE)
613
614include $(CLEAR_VARS)
Marat Dukhan1c761102017-10-16 15:00:52 -0700615LOCAL_MODULE := meizu-pro-7-plus-test
616LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-7-plus.cc
617LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
618LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
619include $(BUILD_EXECUTABLE)
620
621include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700622LOCAL_MODULE := nexus5x-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700623LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus5x.cc
624LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700625LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
626include $(BUILD_EXECUTABLE)
627
628include $(CLEAR_VARS)
629LOCAL_MODULE := nexus6p-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700630LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus6p.cc
631LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700632LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
633include $(BUILD_EXECUTABLE)
634
635include $(CLEAR_VARS)
636LOCAL_MODULE := nexus9-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700637LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus9.cc
638LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700639LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
640include $(BUILD_EXECUTABLE)
641
642include $(CLEAR_VARS)
Marat Dukhan4d4d7e22018-03-02 10:34:59 -0800643LOCAL_MODULE := oneplus-3t-test
644LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-3t.cc
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700645LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700646LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
647include $(BUILD_EXECUTABLE)
648
649include $(CLEAR_VARS)
Marat Dukhan52621bb2018-03-02 10:51:11 -0800650LOCAL_MODULE := oneplus-5-test
651LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-5.cc
652LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
653LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
654include $(BUILD_EXECUTABLE)
655
656include $(CLEAR_VARS)
Marat Dukhand00216b2018-03-02 11:43:51 -0800657LOCAL_MODULE := oneplus-5t-test
658LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-5t.cc
659LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
660LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
661include $(BUILD_EXECUTABLE)
662
663include $(CLEAR_VARS)
Marat Dukhan75dd8a12017-12-04 15:43:02 -0800664LOCAL_MODULE := oppo-a37-test
665LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oppo-a37.cc
666LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
667LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
668include $(BUILD_EXECUTABLE)
669
670include $(CLEAR_VARS)
Marat Dukhan4d4d7e22018-03-02 10:34:59 -0800671LOCAL_MODULE := oppo-r9-test
672LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oppo-r9.cc
673LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
674LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
675include $(BUILD_EXECUTABLE)
676
677include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700678LOCAL_MODULE := pixel-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700679LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel.cc
680LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700681LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
682include $(BUILD_EXECUTABLE)
683
684include $(CLEAR_VARS)
685LOCAL_MODULE := pixel-xl-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700686LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-xl.cc
687LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700688LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
689include $(BUILD_EXECUTABLE)
690
691include $(CLEAR_VARS)
692LOCAL_MODULE := pixel-c-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700693LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-c.cc
694LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700695LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
696include $(BUILD_EXECUTABLE)
697
698include $(CLEAR_VARS)
Marat Dukhan9bfb1072017-11-27 17:02:25 -0800699LOCAL_MODULE := pixel-2-xl-test
700LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-2-xl.cc
701LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
702LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
703include $(BUILD_EXECUTABLE)
704
705include $(CLEAR_VARS)
Marat Dukhan7d645da2017-10-19 18:39:05 -0700706LOCAL_MODULE := xiaomi-mi-5c-test
707LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-mi-5c.cc
708LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
709LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
710include $(BUILD_EXECUTABLE)
711
712include $(CLEAR_VARS)
Marat Dukhand617ccd2017-10-19 17:55:39 -0700713LOCAL_MODULE := xiaomi-redmi-note-3-test
714LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-note-3.cc
715LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
716LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
717include $(BUILD_EXECUTABLE)
718
719include $(CLEAR_VARS)
Marat Dukhana5fda232017-12-04 16:08:25 -0800720LOCAL_MODULE := xiaomi-redmi-note-4-test
721LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-note-4.cc
722LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
723LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
724include $(BUILD_EXECUTABLE)
725
726include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700727LOCAL_MODULE := xperia-c4-dual-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700728LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xperia-c4-dual.cc
729LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700730LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
Marat Dukhan006461a2017-08-24 16:10:46 -0700731include $(BUILD_EXECUTABLE)
732
733endif # armeabi, armeabi-v7a, or arm64-v8a
Marat Dukhan516b6ea2017-09-22 23:14:56 -0700734
735ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
736
737include $(CLEAR_VARS)
738LOCAL_MODULE := brand-string-test
739LOCAL_SRC_FILES := $(LOCAL_PATH)/test/name/brand-string.cc
740LOCAL_STATIC_LIBRARIES := cpuinfo gtest gtest_main
741include $(BUILD_EXECUTABLE)
742
Marat Dukhanc1848602017-09-26 09:57:55 -0700743endif # x86, or x86_64
744
745ifeq ($(TARGET_ARCH_ABI),x86)
746
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700747include $(CLEAR_VARS)
Marat Dukhanaf8a12d2017-12-08 16:12:16 -0800748LOCAL_MODULE := alldocube-iwork8-test
749LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/alldocube-iwork8.cc
750LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
751LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
752include $(BUILD_EXECUTABLE)
753
754include $(CLEAR_VARS)
Marat Dukhan3b434e62018-04-07 02:23:55 -0700755LOCAL_MODULE := leagoo-t5c-test
756LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/leagoo-t5c.cc
757LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
758LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
759include $(BUILD_EXECUTABLE)
760
761include $(CLEAR_VARS)
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700762LOCAL_MODULE := memo-pad-7-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700763LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/memo-pad-7.cc
764LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700765LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
766include $(BUILD_EXECUTABLE)
767
768include $(CLEAR_VARS)
Marat Dukhanf77f7aa2017-10-19 18:12:28 -0700769LOCAL_MODULE := zenfone-c-test
770LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-c.cc
771LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
772LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
773include $(BUILD_EXECUTABLE)
774
775include $(CLEAR_VARS)
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700776LOCAL_MODULE := zenfone-2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700777LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-2.cc
778LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700779LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
780include $(BUILD_EXECUTABLE)
781
Marat Dukhan31076d92017-10-16 12:25:51 -0700782include $(CLEAR_VARS)
783LOCAL_MODULE := zenfone-2e-test
784LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-2e.cc
785LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
786LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
787include $(BUILD_EXECUTABLE)
788
Marat Dukhanc1848602017-09-26 09:57:55 -0700789endif # x86