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:
Jesse Natalie 2020-03-31 14:05:59 -07:00 committed by Marge Bot
parent 3ff513ee5d
commit 22ffc05266
4 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,7 @@ compiler_objs += mesa_objs
# GLSL generated sources
env.CodeGenerate(
target = 'glsl/float64_glsl.h',
script = 'glsl/xxd.py',
script = '../util/xxd.py',
source = ['glsl/float64.glsl'],
command = python_cmd + ' $SCRIPT $SOURCE $TARGET -n float64_source',
)

View File

@ -55,7 +55,7 @@ ir_expression_operation_strings_h = custom_target(
float64_glsl_h = custom_target(
'float64_glsl.h',
input : ['xxd.py', 'float64.glsl'],
input : [files_xxd, 'float64.glsl'],
output : 'float64_glsl.h',
command : [prog_python, '@INPUT@', '@OUTPUT@', '-n', 'float64_source'],
)

View File

@ -224,6 +224,8 @@ idep_xmlconfig = declare_dependency(
link_with : _libxmlconfig,
)
files_xxd = files('xxd.py')
if with_tests
# DRI_CONF macros use designated initializers (required for union
# initializaiton), so we need c++2a since gtest forces us to use c++