Auto-generate parts of Android.mk
[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         -Wno-sign-conversion
31
32 LOCAL_SHARED_LIBRARIES := \
33                 libEGL \
34                 libGLESv2 \
35                 libandroid \
36                 liblog \
37                 libm \
38                 libc \
39                 libz \
40                 libdl
41
42 LOCAL_STATIC_LIBRARIES := \
43                 libpng_ndk \
44
45 LOCAL_CFLAGS += \
46         $(deqp_compile_flags)
47
48 LOCAL_SDK_VERSION := 22
49 LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -fwrapv
50 LOCAL_NDK_STL_VARIANT := gnustl_static
51 LOCAL_RTTI_FLAG := -frtti -fexceptions
52 LOCAL_MULTILIB := both
53
54 include $(BUILD_SHARED_LIBRARY)
55
56
57 # Build the test APKs using their own makefiles
58 # include $(call all-makefiles-under,$(LOCAL_PATH)/android)
59
60 include $(LOCAL_PATH)/android/package/Android.mk $(LOCAL_PATH)/android/cts/Android.mk