microsoft/clc: use files-function for source-list

This makes things a bit more explicit, and is generally what we seem to
do around in the source-tree.

Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7869>
This commit is contained in:
Erik Faye-Lund 2020-12-02 13:18:48 +01:00 committed by Marge Bot
parent 19a9f22501
commit 84dd4ac1c7
1 changed files with 7 additions and 3 deletions

View File

@ -42,11 +42,15 @@ opencl_c_base_h = custom_target(
command : [prog_python, '@INPUT@', '@OUTPUT@', '-n', 'opencl_c_base_source'],
)
libclc_compiler = shared_library(
'clglon12compiler',
files_libclc_compiler = files(
'clc_compiler.c',
'clc_nir.c',
'clc_helpers.cpp',
'clc_helpers.cpp'
)
libclc_compiler = shared_library(
'clglon12compiler',
[files_libclc_compiler],
opencl_c_h,
opencl_c_base_h,
vs_module_defs : 'clglon12compiler.def',