Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 1 | build = ["AndroidGen.bp"] |
| 2 | |
| 3 | cc_library_shared { |
| 4 | name: "libdeqp", |
| 5 | defaults: ["libdeqp_gen"], |
| 6 | |
| 7 | tidy_checks: [ |
| 8 | // The clang-tidy google-explicit-constructor warning is issued to nearly |
| 9 | // 1000 conversion constructors in this project. They are from more than |
| 10 | // 500 source files. Most of them should be declared explicit, but many |
| 11 | // of them need to be implicit. Until we correctly mark them as explicit |
| 12 | // or NOLINT(implicit), we suppress the google-explicit-constructor check. |
| 13 | "-google-explicit-constructor", |
| 14 | |
| 15 | "-google-build-explicit-make-pair", |
| 16 | "-google-global-names-in-headers", |
| 17 | "-google-runtime-member-string-references", |
| 18 | "-google-runtime-operator", |
| 19 | ], |
| 20 | |
| 21 | include_dirs: [ |
| 22 | "external/deqp-deps/SPIRV-Headers/include", |
| 23 | ], |
| 24 | |
| 25 | shared_libs: [ |
| 26 | "libEGL", |
| 27 | "libGLESv2", |
| 28 | "libandroid", |
| 29 | "liblog", |
| 30 | "libm", |
| 31 | "libc", |
| 32 | "libz", |
| 33 | "libdl", |
| 34 | ], |
| 35 | |
| 36 | static_libs: [ |
| 37 | "libpng_ndk", |
| 38 | "deqp_OSDependent", |
| 39 | "deqp_OGLCompiler", |
| 40 | "deqp_HLSL", |
| 41 | "deqp_glslang", |
| 42 | "deqp_SPIRV", |
| 43 | "deqp_spirv-tools", |
Chris Forbes | 2637abb | 2019-08-02 21:42:03 -0700 | [diff] [blame] | 44 | "deqp_amber", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 45 | ], |
| 46 | |
| 47 | cflags: [ |
| 48 | "-DDEQP_SUPPORT_GLES1=1", |
| 49 | "-DDE_ANDROID_API=28", |
| 50 | "-D_XOPEN_SOURCE=600", |
| 51 | "-DDEQP_TARGET_NAME=\"android\"", |
| 52 | "-DQP_SUPPORT_PNG=1", |
| 53 | "-DDEQP_HAVE_GLSLANG=1", |
| 54 | "-DDEQP_HAVE_SPIRV_TOOLS=1", |
| 55 | "-Wall", |
| 56 | "-Werror", |
| 57 | "-Wconversion", |
| 58 | "-fwrapv", |
| 59 | "-Wno-implicit-fallthrough", |
| 60 | "-Wno-sign-conversion", |
Chris Forbes | aed9d9d | 2019-08-02 18:37:39 -0700 | [diff] [blame] | 61 | "-Wno-unused-private-field", |
Chris Forbes | 6bc164c | 2019-10-08 16:13:36 -0700 | [diff] [blame] | 62 | "-DENABLE_HLSL", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 63 | ], |
| 64 | |
| 65 | sdk_version: "27", |
| 66 | cppflags: [ |
| 67 | "-Wno-non-virtual-dtor", |
| 68 | "-Wno-delete-non-virtual-dtor", |
| 69 | "-Wno-implicit-int-conversion", |
| 70 | "-Wno-missing-field-initializers", |
| 71 | "-Wno-switch", |
Yabin Cui | 22edc1e | 2020-04-21 13:24:19 -0700 | [diff] [blame] | 72 | "-Wno-unused-parameter", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 73 | "-Wno-unused-variable", |
| 74 | "-fexceptions", |
| 75 | ], |
| 76 | rtti: true, |
| 77 | stl: "c++_static", |
| 78 | } |
| 79 | |
| 80 | android_test { |
| 81 | name: "com.drawelements.deqp", |
| 82 | |
| 83 | test_suites: [ |
| 84 | "cts", |
Dan Shi | 6ed0831 | 2020-03-23 23:48:08 -0700 | [diff] [blame] | 85 | "mts", |
| 86 | "vts10", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 87 | ], |
| 88 | |
| 89 | srcs: ["android/package/src/**/*.java"], |
| 90 | resource_dirs: ["android/package/res"], |
Yiwei Zhang | c13ba4b | 2019-06-21 16:47:29 -0700 | [diff] [blame] | 91 | manifest: "android/package/AndroidManifest-integration.xml", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 92 | |
| 93 | asset_dirs: [ |
| 94 | "data", |
| 95 | "external/vulkancts/data", |
| 96 | "external/graphicsfuzz/data", |
| 97 | ], |
| 98 | |
| 99 | jni_libs: ["libdeqp"], |
| 100 | |
| 101 | compile_multilib: "both", |
| 102 | |
| 103 | // We could go down all the way to API-13 for 32bit. 22 is required for 64bit ARM. |
| 104 | sdk_version: "test_current", |
| 105 | } |