blob: 125c89813ff3f67c9471de99369c4b7137118362 [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 \
Chih-Hung Hsiehc87ddeb2017-10-10 12:20:23 -070029 -Wall \
30 -Werror \
Jarkko Pöyry0faddb52015-05-29 18:39:00 -070031 -Wconversion \
Mika Isojärvie2af5c72017-02-06 14:48:37 -080032 -fwrapv \
Jarkko Pöyry0faddb52015-05-29 18:39:00 -070033 -Wno-sign-conversion
Jarkko Poyry3c827362014-09-02 11:48:52 +030034
35LOCAL_SHARED_LIBRARIES := \
36 libEGL \
37 libGLESv2 \
38 libandroid \
39 liblog \
40 libm \
41 libc \
Jarkko Poyry3c827362014-09-02 11:48:52 +030042 libz \
43 libdl
44
Brian Carlstromf6346ad2016-01-13 11:48:47 -080045LOCAL_STATIC_LIBRARIES := \
46 libpng_ndk \
47
Jarkko Poyry3c827362014-09-02 11:48:52 +030048LOCAL_CFLAGS += \
Mika Isojärvif0066962016-03-09 14:28:16 -080049 $(deqp_compile_flags)
Jarkko Poyry3c827362014-09-02 11:48:52 +030050
Khushal8c2c7842018-03-22 19:27:50 -070051LOCAL_SDK_VERSION := 26
Mika Isojärvie2af5c72017-02-06 14:48:37 -080052LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor
Dan Albertd72d4f92017-12-20 15:13:57 -080053LOCAL_NDK_STL_VARIANT := c++_static
Jarkko Poyry3c827362014-09-02 11:48:52 +030054LOCAL_RTTI_FLAG := -frtti -fexceptions
Mika Isojärvi7de597c2014-09-17 11:37:36 +030055LOCAL_MULTILIB := both
Chih-Hung Hsiehb7ae0d82017-08-09 16:23:07 -070056LOCAL_TIDY_CHECKS := \
57 -google-build-explicit-make-pair, \
58 -google-global-names-in-headers, \
59 -google-runtime-member-string-references, \
60 -google-runtime-operator, \
Jarkko Poyry3c827362014-09-02 11:48:52 +030061
Jarkko Poyry3c827362014-09-02 11:48:52 +030062include $(BUILD_SHARED_LIBRARY)
63
Kalle Raita64d9cc32015-10-12 16:18:15 -070064
65# Build the test APKs using their own makefiles
66# include $(call all-makefiles-under,$(LOCAL_PATH)/android)
67
Colin Cross89223c42018-08-16 18:16:01 +000068include $(LOCAL_PATH)/android/package/Android.mk