blob: 71b6fb6a28c12d80f3b3758001dbe3a26394f028 [file] [log] [blame]
Dan Willemsenc140d852018-11-19 16:36:35 -08001build = ["AndroidGen.bp"]
2
3cc_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 Forbes2637abb2019-08-02 21:42:03 -070044 "deqp_amber",
Dan Willemsenc140d852018-11-19 16:36:35 -080045 ],
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 Forbesaed9d9d2019-08-02 18:37:39 -070061 "-Wno-unused-private-field",
Chris Forbes6bc164c2019-10-08 16:13:36 -070062 "-DENABLE_HLSL",
Dan Willemsenc140d852018-11-19 16:36:35 -080063 ],
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 Cui22edc1e2020-04-21 13:24:19 -070072 "-Wno-unused-parameter",
Dan Willemsenc140d852018-11-19 16:36:35 -080073 "-Wno-unused-variable",
74 "-fexceptions",
75 ],
76 rtti: true,
77 stl: "c++_static",
78}
79
80android_test {
81 name: "com.drawelements.deqp",
82
83 test_suites: [
84 "cts",
Dan Shi6ed08312020-03-23 23:48:08 -070085 "mts",
86 "vts10",
Dan Willemsenc140d852018-11-19 16:36:35 -080087 ],
88
89 srcs: ["android/package/src/**/*.java"],
90 resource_dirs: ["android/package/res"],
Yiwei Zhangc13ba4b2019-06-21 16:47:29 -070091 manifest: "android/package/AndroidManifest-integration.xml",
Dan Willemsenc140d852018-11-19 16:36:35 -080092
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}