blob: d64867281dadfd39ffaead3818432dbe7991561f [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
154LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/src
155LOCAL_CFLAGS := -std=gnu99
156include $(BUILD_EXECUTABLE)
157
158endif # armeabi, armeabi-v7a, or arm64-v8a
159
Marat Dukhan0de277f2017-09-22 14:25:10 -0700160ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
161
162include $(CLEAR_VARS)
163LOCAL_MODULE := cpuid-dump
164LOCAL_SRC_FILES := $(LOCAL_PATH)/tools/cpuid-dump.c
165LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/src
166LOCAL_CFLAGS := -std=gnu99
167include $(BUILD_EXECUTABLE)
168
169endif # x86, or x86_64
170
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700171include $(CLEAR_VARS)
172LOCAL_MODULE := gtest
173LOCAL_SRC_FILES := $(LOCAL_PATH)/deps/googletest/googletest/src/gtest-all.cc
174LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/deps/googletest/googletest/include
175LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/deps/googletest/googletest
176ifeq ($(TARGET_ARCH_ABI),armeabi)
177LOCAL_EXPORT_LDLIBS := -latomic
178endif # armeabi
179include $(BUILD_STATIC_LIBRARY)
180
181include $(CLEAR_VARS)
Marat Dukhan006461a2017-08-24 16:10:46 -0700182LOCAL_MODULE := gtest_main
183LOCAL_SRC_FILES := $(LOCAL_PATH)/deps/googletest/googletest/src/gtest_main.cc
184LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/deps/googletest/googletest/include
185LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES) $(LOCAL_PATH)/deps/googletest/googletest
186include $(BUILD_STATIC_LIBRARY)
187
188include $(CLEAR_VARS)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700189LOCAL_MODULE := init-test
190LOCAL_SRC_FILES := $(LOCAL_PATH)/test/init.cc
191LOCAL_C_INCLUDES := $(LOCAL_PATH)/test
192LOCAL_STATIC_LIBRARIES := cpuinfo gtest
193include $(BUILD_EXECUTABLE)
194
Marat Dukhan30401972017-09-26 18:35:52 -0700195include $(CLEAR_VARS)
196LOCAL_MODULE := get-current-test
197LOCAL_SRC_FILES := $(LOCAL_PATH)/test/get-current.cc
198LOCAL_C_INCLUDES := $(LOCAL_PATH)/test
199LOCAL_STATIC_LIBRARIES := cpuinfo gtest
200include $(BUILD_EXECUTABLE)
Marat Dukhana8fb3dd2017-08-09 13:49:39 -0700201
202ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a))
203
204include $(CLEAR_VARS)
Marat Dukhanf18db832017-11-28 11:10:10 -0800205LOCAL_MODULE := atm7029b-tablet-test
206LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/atm7029b-tablet.cc
207LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
208LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
209include $(BUILD_EXECUTABLE)
210
211include $(CLEAR_VARS)
Marat Dukhan1aeee8e2017-08-10 17:33:45 -0700212LOCAL_MODULE := blu-r1-hd-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700213LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/blu-r1-hd.cc
214LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan1aeee8e2017-08-10 17:33:45 -0700215LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
216include $(BUILD_EXECUTABLE)
217
218include $(CLEAR_VARS)
Marat Dukhan94f763a2017-12-04 16:44:33 -0800219LOCAL_MODULE := galaxy-a3-2016-eu-test
220LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a3-2016-eu.cc
221LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
222LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
223include $(BUILD_EXECUTABLE)
224
225include $(CLEAR_VARS)
Marat Dukhanf9ccfa32017-11-27 15:50:06 -0800226LOCAL_MODULE := galaxy-a8-2016-duos-test
227LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a8-2016-duos.cc
228LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
229LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
230include $(BUILD_EXECUTABLE)
231
232include $(CLEAR_VARS)
Marat Dukhanc90b4062017-08-10 15:45:11 -0700233LOCAL_MODULE := galaxy-grand-prime-value-edition-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700234LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-grand-prime-value-edition.cc
235LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanc90b4062017-08-10 15:45:11 -0700236LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
237include $(BUILD_EXECUTABLE)
238
239include $(CLEAR_VARS)
Marat Dukhand77e1a22018-01-04 19:45:06 -0800240LOCAL_MODULE := galaxy-j1-2016-test
241LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j1-2016.cc
242LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
243LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
244include $(BUILD_EXECUTABLE)
245
246include $(CLEAR_VARS)
Marat Dukhan126c46d2017-12-04 16:24:48 -0800247LOCAL_MODULE := galaxy-j5-test
248LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j5.cc
249LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
250LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
251include $(BUILD_EXECUTABLE)
252
253include $(CLEAR_VARS)
Marat Dukhan84435902017-11-29 15:53:58 -0800254LOCAL_MODULE := galaxy-j7-prime-test
255LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-prime.cc
256LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
257LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
258include $(BUILD_EXECUTABLE)
259
260include $(CLEAR_VARS)
Marat Dukhan0d2aaa72017-11-29 15:48:46 -0800261LOCAL_MODULE := galaxy-j7-tmobile-test
262LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-tmobile.cc
263LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
264LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
265include $(BUILD_EXECUTABLE)
266
267include $(CLEAR_VARS)
268LOCAL_MODULE := galaxy-j7-uae-test
269LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-j7-uae.cc
270LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
271LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
272include $(BUILD_EXECUTABLE)
273
274include $(CLEAR_VARS)
Marat Dukhanb8a4f122017-08-10 14:18:50 -0700275LOCAL_MODULE := galaxy-s3-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700276LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s3-us.cc
277LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanb8a4f122017-08-10 14:18:50 -0700278LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
279include $(BUILD_EXECUTABLE)
280
281include $(CLEAR_VARS)
Marat Dukhanb0ad4922017-08-10 14:07:19 -0700282LOCAL_MODULE := galaxy-s4-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700283LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s4-us.cc
284LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanb0ad4922017-08-10 14:07:19 -0700285LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
286include $(BUILD_EXECUTABLE)
287
288include $(CLEAR_VARS)
Marat Dukhane1f62e52017-09-08 17:11:08 -0700289LOCAL_MODULE := galaxy-s5-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700290LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s5-global.cc
291LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane1f62e52017-09-08 17:11:08 -0700292LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
293include $(BUILD_EXECUTABLE)
294
295include $(CLEAR_VARS)
Marat Dukhan16b89c72017-09-08 17:16:10 -0700296LOCAL_MODULE := galaxy-s5-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700297LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s5-us.cc
298LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan16b89c72017-09-08 17:16:10 -0700299LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
300include $(BUILD_EXECUTABLE)
301
302include $(CLEAR_VARS)
Marat Dukhan6ce014a2017-09-14 14:00:41 -0700303LOCAL_MODULE := galaxy-tab-3-7.0-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700304LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-tab-3-7.0.cc
305LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan6ce014a2017-09-14 14:00:41 -0700306LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
307include $(BUILD_EXECUTABLE)
308
309include $(CLEAR_VARS)
Marat Dukhan15effa52017-10-19 11:40:12 -0700310LOCAL_MODULE := galaxy-tab-3-lite-test
311LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-tab-3-lite.cc
312LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
313LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
314include $(BUILD_EXECUTABLE)
315
316include $(CLEAR_VARS)
Marat Dukhan955c3db2017-09-14 13:13:46 -0700317LOCAL_MODULE := galaxy-win-duos-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700318LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-win-duos.cc
319LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan955c3db2017-09-14 13:13:46 -0700320LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
321include $(BUILD_EXECUTABLE)
322
323include $(CLEAR_VARS)
Marat Dukhan115d4152017-10-19 11:24:17 -0700324LOCAL_MODULE := huawei-ascend-p7-test
325LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-ascend-p7.cc
326LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
327LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
328include $(BUILD_EXECUTABLE)
329
330include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700331LOCAL_MODULE := lenovo-a6600-plus-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700332LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lenovo-a6600-plus.cc
333LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700334LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
335include $(BUILD_EXECUTABLE)
336
337include $(CLEAR_VARS)
338LOCAL_MODULE := lenovo-vibe-x2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700339LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lenovo-vibe-x2.cc
340LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700341LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
342include $(BUILD_EXECUTABLE)
343
344include $(CLEAR_VARS)
345LOCAL_MODULE := lg-k10-eu-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700346LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lg-k10-eu.cc
347LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700348LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
349include $(BUILD_EXECUTABLE)
350
351include $(CLEAR_VARS)
Marat Dukhandc58d502018-01-04 20:25:30 -0800352LOCAL_MODULE := lg-optimus-g-pro-test
353LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/lg-optimus-g-pro.cc
354LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
355LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
356include $(BUILD_EXECUTABLE)
357
358include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700359LOCAL_MODULE := moto-e-gen1-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700360LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-e-gen1.cc
361LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700362LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
363include $(BUILD_EXECUTABLE)
364
365include $(CLEAR_VARS)
Marat Dukhan92db81f2018-01-05 19:01:52 -0800366LOCAL_MODULE := moto-g-gen1-test
367LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen1.cc
368LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
369LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
370include $(BUILD_EXECUTABLE)
371
372include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700373LOCAL_MODULE := moto-g-gen2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700374LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen2.cc
375LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700376LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
377include $(BUILD_EXECUTABLE)
378
379include $(CLEAR_VARS)
380LOCAL_MODULE := moto-g-gen3-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700381LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen3.cc
382LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700383LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
384include $(BUILD_EXECUTABLE)
385
386include $(CLEAR_VARS)
Marat Dukhan76829232018-03-02 12:58:30 -0800387LOCAL_MODULE := moto-g-gen4-test
388LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/moto-g-gen4.cc
389LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
390LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
391include $(BUILD_EXECUTABLE)
392
393include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700394LOCAL_MODULE := nexus-s-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700395LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus-s.cc
396LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700397LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
398include $(BUILD_EXECUTABLE)
399
400include $(CLEAR_VARS)
401LOCAL_MODULE := nexus4-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700402LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus4.cc
403LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700404LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
405include $(BUILD_EXECUTABLE)
406
407include $(CLEAR_VARS)
408LOCAL_MODULE := nexus6-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700409LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus6.cc
410LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700411LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
412include $(BUILD_EXECUTABLE)
413
414include $(CLEAR_VARS)
Marat Dukhan2ca13b22018-01-04 18:52:46 -0800415LOCAL_MODULE := nexus10-test
416LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus10.cc
417LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
418LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
419include $(BUILD_EXECUTABLE)
420
421include $(CLEAR_VARS)
Marat Dukhan59572542017-11-27 17:22:09 -0800422LOCAL_MODULE := padcod-10.1-test
423LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/padcod-10.1.cc
424LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
425LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
426include $(BUILD_EXECUTABLE)
427
428include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700429LOCAL_MODULE := xiaomi-redmi-2a-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700430LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-2a.cc
431LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700432LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
433include $(BUILD_EXECUTABLE)
434
Marat Dukhanad741842017-12-03 23:11:46 -0800435include $(CLEAR_VARS)
436LOCAL_MODULE := xperia-sl-test
437LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xperia-sl.cc
438LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
439LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
440include $(BUILD_EXECUTABLE)
441
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700442endif # armeabi, armeabi-v7a
443
444ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),armeabi armeabi-v7a arm64-v8a))
445
446include $(CLEAR_VARS)
Marat Dukhanc7c09992017-09-22 12:12:19 -0700447LOCAL_MODULE := android_properties_interface
448LOCAL_SRC_FILES := $(LOCAL_PATH)/test/name/android-properties-interface.c
449LOCAL_CFLAGS := -std=gnu99
450LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
451LOCAL_STATIC_LIBRARIES := cpuinfo
452include $(BUILD_STATIC_LIBRARY)
453
454include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700455LOCAL_MODULE := chipset-test
Marat Dukhanc7c09992017-09-22 12:12:19 -0700456LOCAL_SRC_FILES := \
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700457 $(LOCAL_PATH)/test/name/proc-cpuinfo-hardware.cc \
458 $(LOCAL_PATH)/test/name/ro-product-board.cc \
459 $(LOCAL_PATH)/test/name/ro-board-platform.cc \
460 $(LOCAL_PATH)/test/name/ro-mediatek-platform.cc \
Marat Dukhane5d60492018-03-08 12:47:27 -0800461 $(LOCAL_PATH)/test/name/ro-arch.cc \
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700462 $(LOCAL_PATH)/test/name/ro-chipname.cc \
463 $(LOCAL_PATH)/test/name/android-properties.cc
464LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
Marat Dukhanc7c09992017-09-22 12:12:19 -0700465LOCAL_STATIC_LIBRARIES := android_properties_interface gtest gtest_main
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700466include $(BUILD_EXECUTABLE)
467
468include $(CLEAR_VARS)
Marat Dukhanc1852c72017-09-21 23:18:11 -0700469LOCAL_MODULE := cache-test
470LOCAL_SRC_FILES := $(LOCAL_PATH)/test/arm-cache.cc
471LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
Marat Dukhanc7c09992017-09-22 12:12:19 -0700472LOCAL_CFLAGS := -std=gnu++11 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
Marat Dukhanc1852c72017-09-21 23:18:11 -0700473LOCAL_STATIC_LIBRARIES := cpuinfo gtest gtest_main
474include $(BUILD_EXECUTABLE)
475
476include $(CLEAR_VARS)
Marat Dukhanc246e322018-01-26 11:21:48 -0800477LOCAL_MODULE := alcatel-revvl-test
478LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/alcatel-revvl.cc
479LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
480LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
481include $(BUILD_EXECUTABLE)
482
483include $(CLEAR_VARS)
Marat Dukhan89a3f082018-03-13 11:59:03 -0700484LOCAL_MODULE := galaxy-a8-2018-test
485LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-a8-2018.cc
486LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
487LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
488include $(BUILD_EXECUTABLE)
489
490include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700491LOCAL_MODULE := galaxy-c9-pro-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700492LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-c9-pro.cc
493LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700494LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
495include $(BUILD_EXECUTABLE)
496
497include $(CLEAR_VARS)
Marat Dukhanc4236f52017-08-17 17:32:55 -0700498LOCAL_MODULE := galaxy-s6-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700499LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s6.cc
500LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanc4236f52017-08-17 17:32:55 -0700501LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
502include $(BUILD_EXECUTABLE)
503
504include $(CLEAR_VARS)
Marat Dukhanbfd92f22017-08-09 18:30:38 -0700505LOCAL_MODULE := galaxy-s7-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700506LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s7-us.cc
507LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhanbfd92f22017-08-09 18:30:38 -0700508LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
509include $(BUILD_EXECUTABLE)
510
Marat Dukhan2e00fed2017-08-10 17:23:43 -0700511include $(CLEAR_VARS)
512LOCAL_MODULE := galaxy-s7-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700513LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s7-global.cc
514LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan2e00fed2017-08-10 17:23:43 -0700515LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
516include $(BUILD_EXECUTABLE)
517
Marat Dukhan47ad0072017-08-11 01:12:52 -0700518include $(CLEAR_VARS)
519LOCAL_MODULE := galaxy-s8-us-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700520LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s8-us.cc
521LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan47ad0072017-08-11 01:12:52 -0700522LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
523include $(BUILD_EXECUTABLE)
524
Marat Dukhan5d358682017-08-11 15:21:54 -0700525include $(CLEAR_VARS)
526LOCAL_MODULE := galaxy-s8-global-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700527LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s8-global.cc
528LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan5d358682017-08-11 15:21:54 -0700529LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
530include $(BUILD_EXECUTABLE)
531
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700532include $(CLEAR_VARS)
Marat Dukhand51d3952018-03-17 19:18:06 -0700533LOCAL_MODULE := galaxy-s9-us-test
534LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/galaxy-s9-us.cc
535LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
536LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
537include $(BUILD_EXECUTABLE)
538
539include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700540LOCAL_MODULE := huawei-mate-8-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700541LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-8.cc
542LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700543LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
544include $(BUILD_EXECUTABLE)
545
546include $(CLEAR_VARS)
Marat Dukhanb589f1f2017-10-19 12:02:00 -0700547LOCAL_MODULE := huawei-mate-9-test
548LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-9.cc
549LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
550LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
551include $(BUILD_EXECUTABLE)
552
553include $(CLEAR_VARS)
Marat Dukhan7be11402017-11-27 14:57:02 -0800554LOCAL_MODULE := huawei-mate-10-test
555LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-mate-10.cc
556LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
557LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
558include $(BUILD_EXECUTABLE)
559
560include $(CLEAR_VARS)
Marat Dukhan705122f2018-01-03 18:24:55 -0800561LOCAL_MODULE := huawei-p8-lite-test
562LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-p8-lite.cc
563LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
564LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
565include $(BUILD_EXECUTABLE)
566
567include $(CLEAR_VARS)
568LOCAL_MODULE := huawei-p9-lite-test
569LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/huawei-p9-lite.cc
570LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
571LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
572include $(BUILD_EXECUTABLE)
573
574include $(CLEAR_VARS)
575LOCAL_MODULE := iconia-one-10-test
576LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/iconia-one-10.cc
577LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
578LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
579include $(BUILD_EXECUTABLE)
580
581include $(CLEAR_VARS)
Marat Dukhanc068a812017-10-19 18:52:04 -0700582LOCAL_MODULE := meizu-pro-6-test
583LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-6.cc
584LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
585LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
586include $(BUILD_EXECUTABLE)
587
588include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700589LOCAL_MODULE := meizu-pro-6s-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700590LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-6s.cc
591LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700592LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
593include $(BUILD_EXECUTABLE)
594
595include $(CLEAR_VARS)
Marat Dukhan1c761102017-10-16 15:00:52 -0700596LOCAL_MODULE := meizu-pro-7-plus-test
597LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/meizu-pro-7-plus.cc
598LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
599LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
600include $(BUILD_EXECUTABLE)
601
602include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700603LOCAL_MODULE := nexus5x-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700604LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus5x.cc
605LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700606LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
607include $(BUILD_EXECUTABLE)
608
609include $(CLEAR_VARS)
610LOCAL_MODULE := nexus6p-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700611LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus6p.cc
612LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700613LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
614include $(BUILD_EXECUTABLE)
615
616include $(CLEAR_VARS)
617LOCAL_MODULE := nexus9-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700618LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/nexus9.cc
619LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700620LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
621include $(BUILD_EXECUTABLE)
622
623include $(CLEAR_VARS)
Marat Dukhan4d4d7e22018-03-02 10:34:59 -0800624LOCAL_MODULE := oneplus-3t-test
625LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-3t.cc
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700626LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700627LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
628include $(BUILD_EXECUTABLE)
629
630include $(CLEAR_VARS)
Marat Dukhan52621bb2018-03-02 10:51:11 -0800631LOCAL_MODULE := oneplus-5-test
632LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-5.cc
633LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
634LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
635include $(BUILD_EXECUTABLE)
636
637include $(CLEAR_VARS)
Marat Dukhand00216b2018-03-02 11:43:51 -0800638LOCAL_MODULE := oneplus-5t-test
639LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oneplus-5t.cc
640LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
641LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
642include $(BUILD_EXECUTABLE)
643
644include $(CLEAR_VARS)
Marat Dukhan75dd8a12017-12-04 15:43:02 -0800645LOCAL_MODULE := oppo-a37-test
646LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oppo-a37.cc
647LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
648LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
649include $(BUILD_EXECUTABLE)
650
651include $(CLEAR_VARS)
Marat Dukhan4d4d7e22018-03-02 10:34:59 -0800652LOCAL_MODULE := oppo-r9-test
653LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/oppo-r9.cc
654LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
655LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
656include $(BUILD_EXECUTABLE)
657
658include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700659LOCAL_MODULE := pixel-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700660LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel.cc
661LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700662LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
663include $(BUILD_EXECUTABLE)
664
665include $(CLEAR_VARS)
666LOCAL_MODULE := pixel-xl-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700667LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-xl.cc
668LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700669LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
670include $(BUILD_EXECUTABLE)
671
672include $(CLEAR_VARS)
673LOCAL_MODULE := pixel-c-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700674LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-c.cc
675LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700676LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
677include $(BUILD_EXECUTABLE)
678
679include $(CLEAR_VARS)
Marat Dukhan9bfb1072017-11-27 17:02:25 -0800680LOCAL_MODULE := pixel-2-xl-test
681LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/pixel-2-xl.cc
682LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
683LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
684include $(BUILD_EXECUTABLE)
685
686include $(CLEAR_VARS)
Marat Dukhan7d645da2017-10-19 18:39:05 -0700687LOCAL_MODULE := xiaomi-mi-5c-test
688LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-mi-5c.cc
689LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
690LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
691include $(BUILD_EXECUTABLE)
692
693include $(CLEAR_VARS)
Marat Dukhand617ccd2017-10-19 17:55:39 -0700694LOCAL_MODULE := xiaomi-redmi-note-3-test
695LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-note-3.cc
696LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
697LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
698include $(BUILD_EXECUTABLE)
699
700include $(CLEAR_VARS)
Marat Dukhana5fda232017-12-04 16:08:25 -0800701LOCAL_MODULE := xiaomi-redmi-note-4-test
702LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xiaomi-redmi-note-4.cc
703LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
704LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
705include $(BUILD_EXECUTABLE)
706
707include $(CLEAR_VARS)
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700708LOCAL_MODULE := xperia-c4-dual-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700709LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/xperia-c4-dual.cc
710LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhan3e8e1c72017-09-13 12:15:35 -0700711LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
Marat Dukhan006461a2017-08-24 16:10:46 -0700712include $(BUILD_EXECUTABLE)
713
714endif # armeabi, armeabi-v7a, or arm64-v8a
Marat Dukhan516b6ea2017-09-22 23:14:56 -0700715
716ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI),x86 x86_64))
717
718include $(CLEAR_VARS)
719LOCAL_MODULE := brand-string-test
720LOCAL_SRC_FILES := $(LOCAL_PATH)/test/name/brand-string.cc
721LOCAL_STATIC_LIBRARIES := cpuinfo gtest gtest_main
722include $(BUILD_EXECUTABLE)
723
Marat Dukhanc1848602017-09-26 09:57:55 -0700724endif # x86, or x86_64
725
726ifeq ($(TARGET_ARCH_ABI),x86)
727
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700728include $(CLEAR_VARS)
Marat Dukhanaf8a12d2017-12-08 16:12:16 -0800729LOCAL_MODULE := alldocube-iwork8-test
730LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/alldocube-iwork8.cc
731LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
732LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
733include $(BUILD_EXECUTABLE)
734
735include $(CLEAR_VARS)
Marat Dukhan3b434e62018-04-07 02:23:55 -0700736LOCAL_MODULE := leagoo-t5c-test
737LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/leagoo-t5c.cc
738LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
739LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
740include $(BUILD_EXECUTABLE)
741
742include $(CLEAR_VARS)
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700743LOCAL_MODULE := memo-pad-7-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700744LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/memo-pad-7.cc
745LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700746LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
747include $(BUILD_EXECUTABLE)
748
749include $(CLEAR_VARS)
Marat Dukhanf77f7aa2017-10-19 18:12:28 -0700750LOCAL_MODULE := zenfone-c-test
751LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-c.cc
752LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
753LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
754include $(BUILD_EXECUTABLE)
755
756include $(CLEAR_VARS)
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700757LOCAL_MODULE := zenfone-2-test
Marat Dukhancc70cfb2017-09-26 19:11:14 -0700758LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-2.cc
759LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
Marat Dukhane3ee90d2017-09-25 23:23:05 -0700760LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
761include $(BUILD_EXECUTABLE)
762
Marat Dukhan31076d92017-10-16 12:25:51 -0700763include $(CLEAR_VARS)
764LOCAL_MODULE := zenfone-2e-test
765LOCAL_SRC_FILES := $(LOCAL_PATH)/test/mock/zenfone-2e.cc
766LOCAL_C_INCLUDES := $(LOCAL_PATH)/test/mock
767LOCAL_STATIC_LIBRARIES := cpuinfo_mock gtest
768include $(BUILD_EXECUTABLE)
769
Marat Dukhanc1848602017-09-26 09:57:55 -0700770endif # x86