mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glcpp/meson: fix libglcpp generated header dependency
Explicitly declare glcpp-parse.h as a file dependency to ensure
glcpp_parse custom target completes before compiling glcpp-lex.c.
Cc: mesa-stable
(cherry picked from commit 53482178ef)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38432>
This commit is contained in:
parent
ec8518d123
commit
c167b0a816
2 changed files with 8 additions and 2 deletions
|
|
@ -1304,7 +1304,7 @@
|
|||
"description": "glcpp/meson: fix libglcpp generated header dependency",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -28,10 +28,16 @@ glcpp_lex = custom_target(
|
|||
command : [prog_flex, '-o', '@OUTPUT@', '@INPUT@'],
|
||||
)
|
||||
|
||||
glcpp_header_gen_deps = declare_dependency(
|
||||
sources : [
|
||||
glcpp_parse[1],
|
||||
],
|
||||
)
|
||||
|
||||
libglcpp = static_library(
|
||||
'glcpp',
|
||||
[glcpp_lex, glcpp_parse, files('glcpp.h', 'pp.c')],
|
||||
dependencies : idep_mesautil,
|
||||
dependencies : [idep_mesautil, glcpp_header_gen_deps],
|
||||
include_directories : [inc_include, inc_src, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||
c_args : [no_override_init_args, c_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue