panfrost: Build midgard_pack.h via meson
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6195>
This commit is contained in:

committed by
Tomeu Vizoso

parent
75cc5b8c29
commit
1ad921956d
@@ -42,9 +42,17 @@ libpanfrost_decode_files = files(
|
||||
'decode.c',
|
||||
)
|
||||
|
||||
midgard_pack = custom_target(
|
||||
'midgard_pack.h',
|
||||
input : ['gen_pack.py', 'midgard.xml'],
|
||||
output : 'midgard_pack.h',
|
||||
command : [prog_python, '@INPUT@'],
|
||||
capture : true,
|
||||
)
|
||||
|
||||
libpanfrost_lib = static_library(
|
||||
'panfrost_lib',
|
||||
[libpanfrost_lib_files],
|
||||
[libpanfrost_lib_files, midgard_pack],
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],
|
||||
c_args : [no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
@@ -54,7 +62,7 @@ libpanfrost_lib = static_library(
|
||||
|
||||
libpanfrost_decode = static_library(
|
||||
'panfrost_decode',
|
||||
[libpanfrost_decode_files],
|
||||
[libpanfrost_decode_files, midgard_pack],
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost],
|
||||
c_args : [no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
|
@@ -42,7 +42,7 @@ files_bifrost = files(
|
||||
|
||||
bifrost_compiler = executable(
|
||||
'bifrost_compiler',
|
||||
[files_bifrost],
|
||||
[files_bifrost, midgard_pack],
|
||||
include_directories : [
|
||||
inc_mapi,
|
||||
inc_mesa,
|
||||
|
Reference in New Issue
Block a user