• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3//     DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5    default_applicable_licenses: ["external_OpenCL-CTS_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23    name: "external_OpenCL-CTS_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "SPDX-license-identifier-BSD",
28        "SPDX-license-identifier-MIT",
29        "SPDX-license-identifier-Unlicense",
30        "legacy_by_exception_only", // by exception only
31        "legacy_proprietary", // by exception only
32        "legacy_unencumbered",
33    ],
34    license_text: [
35        "LICENSE.txt",
36    ],
37}
38
39cc_library_headers {
40    name: "ocl-harness-headers",
41    export_include_dirs: [
42        "test_common/harness",
43        "test_common"
44    ]
45}
46
47cc_defaults {
48    name: "ocl-harness-defaults",
49    header_libs: [
50        "ocl-harness-headers",
51    ],
52    export_header_lib_headers: [
53        "ocl-harness-headers",
54    ],
55    cflags: [
56        "-DCL_EXPERIMENTAL",
57        "-DCL_TARGET_OPENCL_VERSION=300",
58        "-Wno-#warnings",
59        "-Wno-absolute-value",
60        "-Wno-asm-operand-widths",
61        "-Wno-c++11-narrowing",
62        "-Wno-dangling-else",
63        "-Wno-date-time",
64        "-Wno-deprecated-declarations",
65        "-Wno-format",
66        "-Wno-ignored-pragmas",
67        "-Wno-ignored-qualifiers",
68        "-Wno-implicit-fallthrough",
69        "-Wno-logical-op-parentheses",
70        "-Wno-macro-redefined",
71        "-Wno-missing-braces",
72        "-Wno-missing-declarations",
73        "-Wno-missing-field-initializers",
74        "-Wno-non-virtual-dtor",
75        "-Wno-overloaded-virtual",
76        "-Wno-parentheses",
77        "-Wno-parentheses-equality",
78        "-Wno-reorder-ctor",
79        "-Wno-return-stack-address",
80        "-Wno-shift-negative-value",
81        "-Wno-sometimes-uninitialized",
82        "-Wno-switch",
83        "-Wno-unknown-pragmas",
84        "-Wno-unneeded-internal-declaration",
85        "-Wno-unused-function",
86        "-Wno-unused-label",
87        "-Wno-unused-parameter",
88        "-Wno-unused-variable",
89        "-Wno-writable-strings",
90        "-fexceptions",
91    ],
92    static_libs: [
93        "ocl-stubs"
94    ],
95}
96
97cc_library {
98    name: "ocl-harness",
99    srcs: [ "test_common/harness/*.cpp", ],
100    defaults: [ "ocl-harness-defaults" ],
101}
102
103cc_defaults {
104    name: "ocl-test-defaults",
105    defaults: [ "ocl-harness-defaults" ],
106    static_libs: [ "ocl-harness" ],
107    compile_multilib: "64",
108    multilib: {
109        lib64: {
110            suffix: "64",
111        },
112    },
113}
114
115cc_defaults {
116    name: "ocl-test-image-defaults",
117    srcs: [ "test_conformance/images/common.cpp" ],
118    export_include_dirs: [ "test_conformance/images" ],
119    defaults: [ "ocl-test-defaults" ],
120}
121
122