Merge vk-gl-cts/vulkan-cts-1.1.1 into vk-gl-cts/vulkan-cts-1.1.2
[platform/upstream/VK-GL-CTS.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # 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.
9 LOCAL_TIDY_CHECKS := -google-explicit-constructor
10
11 deqp_dir := $(LOCAL_PATH)/
12
13 LOCAL_MODULE_TAGS := tests
14 LOCAL_MODULE := libdeqp
15
16 include $(LOCAL_PATH)/AndroidGen.mk
17
18 LOCAL_C_INCLUDES += \
19         frameworks/native/opengl/include \
20         external/libpng \
21         external/zlib
22
23 deqp_compile_flags := \
24         -DDEQP_SUPPORT_GLES1=1 \
25         -DDE_ANDROID_API=9 \
26         -D_XOPEN_SOURCE=600 \
27         -DDEQP_TARGET_NAME=\"android\" \
28         -DQP_SUPPORT_PNG=1 \
29         -Wall \
30         -Werror \
31         -Wconversion \
32         -fwrapv \
33         -Wno-sign-conversion
34
35 LOCAL_SHARED_LIBRARIES := \
36                 libEGL \
37                 libGLESv2 \
38                 libandroid \
39                 liblog \
40                 libm \
41                 libc \
42                 libz \
43                 libdl
44
45 LOCAL_STATIC_LIBRARIES := \
46                 libpng_ndk \
47
48 LOCAL_CFLAGS += \
49         $(deqp_compile_flags)
50
51 LOCAL_SDK_VERSION := 26
52 LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor
53 LOCAL_NDK_STL_VARIANT := c++_static
54 LOCAL_RTTI_FLAG := -frtti -fexceptions
55 LOCAL_MULTILIB := both
56 LOCAL_TIDY_CHECKS := \
57     -google-build-explicit-make-pair, \
58     -google-global-names-in-headers, \
59     -google-runtime-member-string-references, \
60     -google-runtime-operator, \
61
62 include $(BUILD_SHARED_LIBRARY)
63
64
65 # Build the test APKs using their own makefiles
66 # include $(call all-makefiles-under,$(LOCAL_PATH)/android)
67
68 include $(LOCAL_PATH)/android/package/Android.mk $(LOCAL_PATH)/android/cts/Android.mk