aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/meson.build')
-rw-r--r--src/compiler/meson.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/compiler/meson.build b/src/compiler/meson.build
index 9a40e2e3a1a..58d52e4c6cb 100644
--- a/src/compiler/meson.build
+++ b/src/compiler/meson.build
@@ -22,8 +22,6 @@ inc_compiler = include_directories('.')
inc_nir = include_directories('nir')
inc_glsl = include_directories('glsl')
-subdir('glsl')
-
files_libcompiler = files(
'builtin_type_macros.h',
'glsl_types.cpp',
@@ -35,6 +33,14 @@ files_libcompiler = files(
'shader_info.h',
)
+ir_expression_operation_h = custom_target(
+ 'ir_expression_operation.h',
+ input : 'glsl/ir_expression_operation.py',
+ output : 'ir_expression_operation.h',
+ command : [prog_python2, '@INPUT@', 'enum'],
+ capture : true,
+)
+
libcompiler = static_library(
'compiler',
[files_libcompiler, ir_expression_operation_h],
@@ -55,3 +61,5 @@ spirv2nir = executable(
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
build_by_default : false,
)
+
+subdir('glsl')