blob: d82732bea65b2d625e5d0ddaa4a8efa180da71de [file] [log] [blame]
Jarkko Poyry3c827362014-09-02 11:48:52 +03001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Chih-Hung Hsiehbded0f92016-08-01 22:33:13 -07004# The clang-tidy google-explicit-constructor warning is issued to nearly
5# 1000 conversion constructors in this project. They are from more than
6# 500 source files. Most of them should be declared explicit, but many
7# of them need to be implicit. Until we correctly mark them as explicit
8# or NOLINT(implicit), we suppress the google-explicit-constructor check.
9LOCAL_TIDY_CHECKS := -google-explicit-constructor
10
Jarkko Poyry3c827362014-09-02 11:48:52 +030011deqp_dir := $(LOCAL_PATH)/
12
13LOCAL_MODULE_TAGS := tests
Pyry Haulos03700a82014-10-20 13:01:20 -070014LOCAL_MODULE := libdeqp
Jarkko Poyry3c827362014-09-02 11:48:52 +030015
Pyry Haulosf30dbb62017-02-02 11:20:07 -080016include $(LOCAL_PATH)/AndroidGen.mk
17
18LOCAL_C_INCLUDES += \
Jarkko Poyry3c827362014-09-02 11:48:52 +030019 frameworks/native/opengl/include \
20 external/libpng \
Pyry Haulosf30dbb62017-02-02 11:20:07 -080021 external/zlib
Jarkko Poyry3c827362014-09-02 11:48:52 +030022
23deqp_compile_flags := \
Pyry Haulos85a0a1c2015-04-15 09:36:28 -070024 -DDEQP_SUPPORT_GLES1=1 \
Jarkko Poyry3c827362014-09-02 11:48:52 +030025 -DDE_ANDROID_API=9 \
26 -D_XOPEN_SOURCE=600 \
27 -DDEQP_TARGET_NAME=\"android\" \
Jarkko Pöyry0faddb52015-05-29 18:39:00 -070028 -DQP_SUPPORT_PNG=1 \
29 -Wconversion \
Mika Isojärvie2af5c72017-02-06 14:48:37 -080030 -fwrapv \
Jarkko Pöyry0faddb52015-05-29 18:39:00 -070031 -Wno-sign-conversion
Jarkko Poyry3c827362014-09-02 11:48:52 +030032
33LOCAL_SHARED_LIBRARIES := \
34 libEGL \
35 libGLESv2 \
36 libandroid \
37 liblog \
38 libm \
39 libc \
Jarkko Poyry3c827362014-09-02 11:48:52 +030040 libz \
41 libdl
42
Brian Carlstromf6346ad2016-01-13 11:48:47 -080043LOCAL_STATIC_LIBRARIES := \
44 libpng_ndk \
45
Jarkko Poyry3c827362014-09-02 11:48:52 +030046LOCAL_CFLAGS += \
Mika Isojärvif0066962016-03-09 14:28:16 -080047 $(deqp_compile_flags)
Jarkko Poyry3c827362014-09-02 11:48:52 +030048
Dan Alberte0ef7112016-09-08 16:07:20 -070049LOCAL_SDK_VERSION := 22
Mika Isojärvie2af5c72017-02-06 14:48:37 -080050LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor
Jarkko Poyry3c827362014-09-02 11:48:52 +030051LOCAL_NDK_STL_VARIANT := gnustl_static
52LOCAL_RTTI_FLAG := -frtti -fexceptions
Mika Isojärvi7de597c2014-09-17 11:37:36 +030053LOCAL_MULTILIB := both
Chih-Hung Hsiehb7ae0d82017-08-09 16:23:07 -070054LOCAL_TIDY_CHECKS := \
55 -google-build-explicit-make-pair, \
56 -google-global-names-in-headers, \
57 -google-runtime-member-string-references, \
58 -google-runtime-operator, \
Jarkko Poyry3c827362014-09-02 11:48:52 +030059
Jarkko Poyry3c827362014-09-02 11:48:52 +030060include $(BUILD_SHARED_LIBRARY)
61
Kalle Raita64d9cc32015-10-12 16:18:15 -070062
63# Build the test APKs using their own makefiles
64# include $(call all-makefiles-under,$(LOCAL_PATH)/android)
65
66include $(LOCAL_PATH)/android/package/Android.mk $(LOCAL_PATH)/android/cts/Android.mk