Don't require supported binary formats in negative tests. am: 7cd59a4409 am: 635f4546...
[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         -Wconversion \
30         -fwrapv \
31         -Wno-sign-conversion
32
33 LOCAL_SHARED_LIBRARIES := \
34                 libEGL \
35                 libGLESv2 \
36                 libandroid \
37                 liblog \
38                 libm \
39                 libc \
40                 libz \
41                 libdl
42
43 LOCAL_STATIC_LIBRARIES := \
44                 libpng_ndk \
45
46 LOCAL_CFLAGS += \
47         $(deqp_compile_flags)
48
49 LOCAL_SDK_VERSION := 22
50 LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor
51 LOCAL_NDK_STL_VARIANT := gnustl_static
52 LOCAL_RTTI_FLAG := -frtti -fexceptions
53 LOCAL_MULTILIB := both
54 LOCAL_TIDY_CHECKS := \
55     -google-build-explicit-make-pair, \
56     -google-global-names-in-headers, \
57     -google-runtime-member-string-references, \
58     -google-runtime-operator, \
59
60 include $(BUILD_SHARED_LIBRARY)
61
62
63 # Build the test APKs using their own makefiles
64 # include $(call all-makefiles-under,$(LOCAL_PATH)/android)
65
66 include $(LOCAL_PATH)/android/package/Android.mk $(LOCAL_PATH)/android/cts/Android.mk