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", |
| 44 | ], |
| 45 | |
| 46 | cflags: [ |
| 47 | "-DDEQP_SUPPORT_GLES1=1", |
| 48 | "-DDE_ANDROID_API=28", |
| 49 | "-D_XOPEN_SOURCE=600", |
| 50 | "-DDEQP_TARGET_NAME=\"android\"", |
| 51 | "-DQP_SUPPORT_PNG=1", |
| 52 | "-DDEQP_HAVE_GLSLANG=1", |
| 53 | "-DDEQP_HAVE_SPIRV_TOOLS=1", |
| 54 | "-Wall", |
| 55 | "-Werror", |
| 56 | "-Wconversion", |
| 57 | "-fwrapv", |
| 58 | "-Wno-implicit-fallthrough", |
| 59 | "-Wno-sign-conversion", |
| 60 | ], |
| 61 | |
| 62 | sdk_version: "27", |
| 63 | cppflags: [ |
| 64 | "-Wno-non-virtual-dtor", |
| 65 | "-Wno-delete-non-virtual-dtor", |
| 66 | "-Wno-implicit-int-conversion", |
| 67 | "-Wno-missing-field-initializers", |
| 68 | "-Wno-switch", |
| 69 | "-Wno-unused-variable", |
| 70 | "-fexceptions", |
| 71 | ], |
| 72 | rtti: true, |
| 73 | stl: "c++_static", |
| 74 | } |
| 75 | |
| 76 | android_test { |
| 77 | name: "com.drawelements.deqp", |
| 78 | |
| 79 | test_suites: [ |
| 80 | "cts", |
| 81 | "vts", |
| 82 | ], |
| 83 | |
| 84 | srcs: ["android/package/src/**/*.java"], |
| 85 | resource_dirs: ["android/package/res"], |
Yiwei Zhang | c13ba4b | 2019-06-21 16:47:29 -0700 | [diff] [blame] | 86 | manifest: "android/package/AndroidManifest-integration.xml", |
Dan Willemsen | c140d85 | 2018-11-19 16:36:35 -0800 | [diff] [blame] | 87 | |
| 88 | asset_dirs: [ |
| 89 | "data", |
| 90 | "external/vulkancts/data", |
| 91 | "external/graphicsfuzz/data", |
| 92 | ], |
| 93 | |
| 94 | jni_libs: ["libdeqp"], |
| 95 | |
| 96 | compile_multilib: "both", |
| 97 | |
| 98 | // We could go down all the way to API-13 for 32bit. 22 is required for 64bit ARM. |
| 99 | sdk_version: "test_current", |
| 100 | } |