util: Move xxd.py to util
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7034>
This commit is contained in:
@@ -90,7 +90,7 @@ compiler_objs += mesa_objs
|
|||||||
# GLSL generated sources
|
# GLSL generated sources
|
||||||
env.CodeGenerate(
|
env.CodeGenerate(
|
||||||
target = 'glsl/float64_glsl.h',
|
target = 'glsl/float64_glsl.h',
|
||||||
script = 'glsl/xxd.py',
|
script = '../util/xxd.py',
|
||||||
source = ['glsl/float64.glsl'],
|
source = ['glsl/float64.glsl'],
|
||||||
command = python_cmd + ' $SCRIPT $SOURCE $TARGET -n float64_source',
|
command = python_cmd + ' $SCRIPT $SOURCE $TARGET -n float64_source',
|
||||||
)
|
)
|
||||||
|
@@ -55,7 +55,7 @@ ir_expression_operation_strings_h = custom_target(
|
|||||||
|
|
||||||
float64_glsl_h = custom_target(
|
float64_glsl_h = custom_target(
|
||||||
'float64_glsl.h',
|
'float64_glsl.h',
|
||||||
input : ['xxd.py', 'float64.glsl'],
|
input : [files_xxd, 'float64.glsl'],
|
||||||
output : 'float64_glsl.h',
|
output : 'float64_glsl.h',
|
||||||
command : [prog_python, '@INPUT@', '@OUTPUT@', '-n', 'float64_source'],
|
command : [prog_python, '@INPUT@', '@OUTPUT@', '-n', 'float64_source'],
|
||||||
)
|
)
|
||||||
|
@@ -224,6 +224,8 @@ idep_xmlconfig = declare_dependency(
|
|||||||
link_with : _libxmlconfig,
|
link_with : _libxmlconfig,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
files_xxd = files('xxd.py')
|
||||||
|
|
||||||
if with_tests
|
if with_tests
|
||||||
# DRI_CONF macros use designated initializers (required for union
|
# DRI_CONF macros use designated initializers (required for union
|
||||||
# initializaiton), so we need c++2a since gtest forces us to use c++
|
# initializaiton), so we need c++2a since gtest forces us to use c++
|
||||||
|
Reference in New Issue
Block a user