diff options
author | Eric Anholt <[email protected]> | 2018-07-29 19:11:53 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-29 19:13:29 -0700 |
commit | 27f1bfe471d87783c2dd2be4cd3d0bbc1ae373cc (patch) | |
tree | 7a09f993d0ba4c586a325265aaa7b8e57eab8eee /src/broadcom/meson.build | |
parent | 05fb2f88ecf46809648230bcdd2c1563b317a188 (diff) |
vc4: Fix meson build when enabled without v3d.
Reported-by: Rob Clark <[email protected]>
Fixes: e92959c4e03c ("v3d: Pass the whole clif_dump structure to v3d_print_group().")
Diffstat (limited to 'src/broadcom/meson.build')
-rw-r--r-- | src/broadcom/meson.build | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/src/broadcom/meson.build b/src/broadcom/meson.build index e4f57152613..d3ea362f200 100644 --- a/src/broadcom/meson.build +++ b/src/broadcom/meson.build @@ -23,35 +23,36 @@ inc_broadcom = include_directories('.', 'cle') subdir('cle') v3d_versions = ['33', '41', '42'] +v3d_libs = [] if with_gallium_v3d subdir('compiler') subdir('qpu') +endif - per_version_libs = [] - foreach ver : v3d_versions - per_version_libs += static_library( - 'libbroadcom-v' + ver, - [ - files('clif/v3dx_dump.c'), - v3d_xml_pack - ], - include_directories : [inc_common, inc_broadcom, inc_src], - c_args : [c_vis_args, no_override_init_args, '-DV3D_VERSION=' + ver], - dependencies: [dep_valgrind, dep_thread], - ) - endforeach - - libbroadcom_v3d = static_library( - 'libbroadcom_v3d', +per_version_libs = [] +foreach ver : v3d_versions + per_version_libs += static_library( + 'libbroadcom-v' + ver, [ - files('common/v3d_debug.c', 'clif/clif_dump.c'), - v3d_xml_pack, + files('clif/v3dx_dump.c'), + v3d_xml_pack ], include_directories : [inc_common, inc_broadcom, inc_src], - c_args : [c_vis_args, no_override_init_args], - link_whole : [libbroadcom_compiler, libbroadcom_qpu] + per_version_libs, - build_by_default : false, + c_args : [c_vis_args, no_override_init_args, '-DV3D_VERSION=' + ver], dependencies: [dep_valgrind, dep_thread], ) -endif +endforeach + +libbroadcom_v3d = static_library( + 'libbroadcom_v3d', + [ + files('common/v3d_debug.c', 'clif/clif_dump.c'), + v3d_xml_pack, + ], + include_directories : [inc_common, inc_broadcom, inc_src], + c_args : [c_vis_args, no_override_init_args], + link_whole : v3d_libs + per_version_libs, + build_by_default : false, + dependencies: [dep_valgrind, dep_thread], +) |