1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "external_OpenCL-CTS_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["external_OpenCL-CTS_license"], 8} 9 10cc_library_headers { 11 name: "ocl-headers", 12 export_include_dirs: [ "ocl-headers" ], 13} 14 15cc_library { 16 name: "ocl-stubs", 17 srcs: [ "ocl-stubs/stubs.cpp" ], 18 cflags: [ 19 "-DCL_EXPERIMENTAL", 20 "-DCL_TARGET_OPENCL_VERSION=300", 21 ], 22 header_libs: [ "ocl-headers" ], 23 export_header_lib_headers: [ "ocl-headers" ], 24 generated_headers: [ "generated-ocl-apis" ], 25} 26 27genrule { 28 name: "generated-ocl-apis", 29 out: [ "apis.h" ], 30 tool_files: [ "ocl-stubs/apis_generator.py" ], 31 srcs: [ 32 "ocl-headers/CL/cl.h", 33 "ocl-headers/CL/cl_gl.h", 34 "ocl-headers/CL/cl_egl.h", 35 "ocl-headers/CL/cl_ext.h", 36 "ocl-headers/CL/cl_gl_ext.h", 37 ], 38 cmd: "python3 $(location) $(in) > $(out)" 39} 40