Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Chih-Hung Hsieh | bded0f9 | 2016-08-01 22:33:13 -0700 | [diff] [blame] | 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 | |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 11 | deqp_dir := $(LOCAL_PATH)/ |
| 12 | |
| 13 | LOCAL_MODULE_TAGS := tests |
Pyry Haulos | 03700a8 | 2014-10-20 13:01:20 -0700 | [diff] [blame] | 14 | LOCAL_MODULE := libdeqp |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 15 | |
Pyry Haulos | f30dbb6 | 2017-02-02 11:20:07 -0800 | [diff] [blame] | 16 | include $(LOCAL_PATH)/AndroidGen.mk |
| 17 | |
| 18 | LOCAL_C_INCLUDES += \ |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 19 | frameworks/native/opengl/include \ |
| 20 | external/libpng \ |
Pyry Haulos | f30dbb6 | 2017-02-02 11:20:07 -0800 | [diff] [blame] | 21 | external/zlib |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 22 | |
| 23 | deqp_compile_flags := \ |
Pyry Haulos | 85a0a1c | 2015-04-15 09:36:28 -0700 | [diff] [blame] | 24 | -DDEQP_SUPPORT_GLES1=1 \ |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 25 | -DDE_ANDROID_API=9 \ |
| 26 | -D_XOPEN_SOURCE=600 \ |
| 27 | -DDEQP_TARGET_NAME=\"android\" \ |
Jarkko Pöyry | 0faddb5 | 2015-05-29 18:39:00 -0700 | [diff] [blame] | 28 | -DQP_SUPPORT_PNG=1 \ |
Chih-Hung Hsieh | c87ddeb | 2017-10-10 12:20:23 -0700 | [diff] [blame] | 29 | -Wall \ |
| 30 | -Werror \ |
Jarkko Pöyry | 0faddb5 | 2015-05-29 18:39:00 -0700 | [diff] [blame] | 31 | -Wconversion \ |
Mika Isojärvi | e2af5c7 | 2017-02-06 14:48:37 -0800 | [diff] [blame] | 32 | -fwrapv \ |
Jarkko Pöyry | 0faddb5 | 2015-05-29 18:39:00 -0700 | [diff] [blame] | 33 | -Wno-sign-conversion |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 34 | |
| 35 | LOCAL_SHARED_LIBRARIES := \ |
| 36 | libEGL \ |
| 37 | libGLESv2 \ |
| 38 | libandroid \ |
| 39 | liblog \ |
| 40 | libm \ |
| 41 | libc \ |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 42 | libz \ |
| 43 | libdl |
| 44 | |
Brian Carlstrom | f6346ad | 2016-01-13 11:48:47 -0800 | [diff] [blame] | 45 | LOCAL_STATIC_LIBRARIES := \ |
| 46 | libpng_ndk \ |
| 47 | |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 48 | LOCAL_CFLAGS += \ |
Mika Isojärvi | f006696 | 2016-03-09 14:28:16 -0800 | [diff] [blame] | 49 | $(deqp_compile_flags) |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 50 | |
Khushal | 8c2c784 | 2018-03-22 19:27:50 -0700 | [diff] [blame] | 51 | LOCAL_SDK_VERSION := 26 |
Mika Isojärvi | e2af5c7 | 2017-02-06 14:48:37 -0800 | [diff] [blame] | 52 | LOCAL_CPPFLAGS += -Wno-non-virtual-dtor -Wno-delete-non-virtual-dtor |
Dan Albert | d72d4f9 | 2017-12-20 15:13:57 -0800 | [diff] [blame] | 53 | LOCAL_NDK_STL_VARIANT := c++_static |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 54 | LOCAL_RTTI_FLAG := -frtti -fexceptions |
Mika Isojärvi | 7de597c | 2014-09-17 11:37:36 +0300 | [diff] [blame] | 55 | LOCAL_MULTILIB := both |
Chih-Hung Hsieh | b7ae0d8 | 2017-08-09 16:23:07 -0700 | [diff] [blame] | 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, \ |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 61 | |
Jarkko Poyry | 3c82736 | 2014-09-02 11:48:52 +0300 | [diff] [blame] | 62 | include $(BUILD_SHARED_LIBRARY) |
| 63 | |
Kalle Raita | 64d9cc3 | 2015-10-12 16:18:15 -0700 | [diff] [blame] | 64 | |
| 65 | # Build the test APKs using their own makefiles |
| 66 | # include $(call all-makefiles-under,$(LOCAL_PATH)/android) |
| 67 | |
Colin Cross | 89223c4 | 2018-08-16 18:16:01 +0000 | [diff] [blame] | 68 | include $(LOCAL_PATH)/android/package/Android.mk |