xref: /aosp_15_r20/external/OpenCL-CTS/scripts/android_bp_head (revision 6467f958c7de8070b317fc65bcb0f6472e388d82)
1package {
2    default_applicable_licenses: ["external_OpenCL-CTS_license"],
3}
4
5license {
6    name: "external_OpenCL-CTS_license",
7    visibility: [":__subpackages__"],
8    license_kinds: [
9        "SPDX-license-identifier-Apache-2.0",
10        "SPDX-license-identifier-BSD",
11        "SPDX-license-identifier-MIT",
12        "SPDX-license-identifier-Unlicense",
13    ],
14    license_text: [
15        "LICENSE.txt",
16    ],
17}
18
19cc_library_headers {
20    name: "ocl-harness-headers",
21    export_include_dirs: [
22        "test_common/harness",
23        "test_common"
24    ]
25}
26
27cc_defaults {
28    name: "ocl-harness-defaults",
29    header_libs: [
30        "ocl-harness-headers",
31    ],
32    export_header_lib_headers: [
33        "ocl-harness-headers",
34    ],
35    cflags: [
36        "-DCL_EXPERIMENTAL",
37        "-DCL_TARGET_OPENCL_VERSION=300",
38        "-Wno-#warnings",
39        "-Wno-c++11-narrowing",
40        "-Wno-date-time",
41        "-Wno-deprecated-declarations",
42        "-Wno-format",
43        "-Wno-ignored-qualifiers",
44        "-Wno-implicit-fallthrough",
45        "-Wno-missing-braces",
46        "-Wno-missing-field-initializers",
47        "-Wno-non-virtual-dtor",
48        "-Wno-overloaded-virtual",
49        "-Wno-reorder-ctor",
50        "-Wno-sometimes-uninitialized",
51        "-Wno-unused-parameter",
52        "-fexceptions",
53    ],
54    static_libs: [
55        "ocl-stubs"
56    ],
57}
58
59cc_library {
60    name: "ocl-harness",
61    srcs: [ "test_common/harness/*.cpp", ],
62    defaults: [ "ocl-harness-defaults" ],
63}
64
65cc_defaults {
66    name: "ocl-test-defaults",
67    defaults: [ "ocl-harness-defaults" ],
68    static_libs: [ "ocl-harness" ],
69    compile_multilib: "64",
70    multilib: {
71        lib64: {
72            suffix: "64",
73        },
74    },
75}
76
77cc_defaults {
78    name: "ocl-test-image-defaults",
79    srcs: [ "test_conformance/images/common.cpp" ],
80    export_include_dirs: [ "test_conformance/images" ],
81    defaults: [ "ocl-test-defaults" ],
82}
83