# SOFTWARE.
clover_cpp_args = []
+clover_opencl_cpp_args = [
+ '-DCL_TARGET_OPENCL_VERSION=220',
+ '-DCL_USE_DEPRECATED_OPENCL_1_0_APIS',
+ '-DCL_USE_DEPRECATED_OPENCL_1_1_APIS',
+ '-DCL_USE_DEPRECATED_OPENCL_1_2_APIS',
+ '-DCL_USE_DEPRECATED_OPENCL_2_0_APIS',
+ '-DCL_USE_DEPRECATED_OPENCL_2_1_APIS'
+]
clover_spirv_cpp_args = []
clover_incs = [inc_include, inc_src, inc_gallium, inc_gallium_aux]
include_directories : clover_incs,
cpp_args : [
clover_cpp_args,
+ clover_opencl_cpp_args,
clover_spirv_cpp_args,
cpp_vis_args,
'-DLIBCLC_INCLUDEDIR="@0@/"'.format(dep_clc.get_pkgconfig_variable('includedir')),
'clspirv',
files('spirv/invocation.cpp', 'spirv/invocation.hpp'),
include_directories : clover_incs,
- cpp_args : [clover_spirv_cpp_args, cpp_vis_args],
+ cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args, cpp_vis_args],
dependencies : [dep_spirv_tools],
override_options : clover_cpp_std,
)
files('nir/invocation.cpp', 'nir/invocation.hpp'),
include_directories : [clover_incs, inc_mesa],
dependencies : idep_nir,
- cpp_args : [clover_spirv_cpp_args, cpp_vis_args],
+ cpp_args : [clover_opencl_cpp_args, clover_spirv_cpp_args, cpp_vis_args],
override_options : clover_cpp_std,
)
'clover',
[clover_files, sha1_h],
include_directories : clover_incs,
- cpp_args : [clover_spirv_cpp_args, clover_cpp_args, cpp_vis_args],
+ cpp_args : [
+ clover_opencl_cpp_args,
+ clover_spirv_cpp_args,
+ clover_cpp_args,
+ cpp_vis_args
+ ],
link_with : [libclllvm, libclspirv, libclnir],
override_options : clover_cpp_std,
)