meson: Refactoring shared gen_vs_module_defs_normal_command out
Cc: mesa-stable Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610>
This commit is contained in:
@@ -20,5 +20,10 @@
|
||||
|
||||
git_sha1_gen_py = files('git_sha1_gen.py')
|
||||
gen_vs_module_defs_py = files('gen_vs_module_defs.py')
|
||||
gen_vs_module_defs_normal_command = [
|
||||
prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()
|
||||
]
|
||||
symbols_check = find_program('symbols-check.py')
|
||||
install_megadrivers_py = find_program('install_megadrivers.py')
|
||||
|
@@ -183,9 +183,7 @@ egl_def = custom_target(
|
||||
'egl.def',
|
||||
input: 'main/egl.def.in',
|
||||
output : 'egl.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libegl = shared_library(
|
||||
|
@@ -23,9 +23,7 @@ d3d10_sw_def = custom_target(
|
||||
'd3d10_sw.def',
|
||||
input: 'd3d10_sw.def.in',
|
||||
output : 'd3d10_sw.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libd3d10sw = shared_library(
|
||||
|
@@ -25,9 +25,7 @@ opengl32_def = custom_target(
|
||||
'opengl32.def',
|
||||
input: 'opengl32.def.in',
|
||||
output : 'opengl32.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libopengl32 = shared_library(
|
||||
|
@@ -36,9 +36,7 @@ osmesa_def = custom_target(
|
||||
'osmesa.def',
|
||||
input: 'osmesa.def.in',
|
||||
output : 'osmesa.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libosmesa = shared_library(
|
||||
|
@@ -56,9 +56,7 @@ if host_machine.system() == 'windows'
|
||||
'vaon12.def',
|
||||
input: vaon12_def_input,
|
||||
output : 'vaon12.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libva_gallium = shared_library(
|
||||
|
@@ -25,9 +25,7 @@ wgl_def = custom_target(
|
||||
'gallium_wgl.def',
|
||||
input: 'gallium_wgl.def.in',
|
||||
output : 'gallium_wgl.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
gallium_wgl_name = get_option('gallium-windows-dll-name')
|
||||
|
@@ -36,9 +36,7 @@ gles1_def = custom_target(
|
||||
'gles1.def',
|
||||
input: 'gles1.def.in',
|
||||
output : 'gles1.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libglesv1_cm = shared_library(
|
||||
|
@@ -36,9 +36,7 @@ gles2_def = custom_target(
|
||||
'gles2.def',
|
||||
input: 'gles2.def.in',
|
||||
output : 'gles2.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
libgles2 = shared_library(
|
||||
|
@@ -30,9 +30,7 @@ vulkan_api_def = custom_target(
|
||||
'vulkan_api.def',
|
||||
input: 'vulkan_api.def.in',
|
||||
output : 'vulkan_api.def',
|
||||
command : [prog_python, gen_vs_module_defs_py,
|
||||
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
||||
'--compiler_id', cc.get_argument_syntax(), '--cpu_family', host_machine.cpu_family()]
|
||||
command : gen_vs_module_defs_normal_command,
|
||||
)
|
||||
|
||||
if with_platform_x11
|
||||
|
Reference in New Issue
Block a user