summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-07-22 14:50:15 +0100
committerEric Engestrom <[email protected]>2019-08-03 00:08:37 +0000
commitd2d85b950d78c553b2694cda9ef0cc7bf9a0f737 (patch)
treeafdd28e30b66064b8b540a6e9d6d0ecbe27a6678 /src/compiler
parent8ddb38209d51c53d6e5792b04b97814dfce9bce6 (diff)
meson: replace libmesa_util with idep_mesautil
This automates the include_directories and dependencies tracking so that all users of libmesa_util don't need to add them manually. Next commit will remove the ones that were only added for that reason. Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Eric Anholt <[email protected]> Tested-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/glcpp/meson.build2
-rw-r--r--src/compiler/glsl/meson.build4
-rw-r--r--src/compiler/meson.build3
-rw-r--r--src/compiler/nir/meson.build12
4 files changed, 8 insertions, 13 deletions
diff --git a/src/compiler/glsl/glcpp/meson.build b/src/compiler/glsl/glcpp/meson.build
index 677baf1df10..5a665444f06 100644
--- a/src/compiler/glsl/glcpp/meson.build
+++ b/src/compiler/glsl/glcpp/meson.build
@@ -38,7 +38,7 @@ glcpp_lex = custom_target(
libglcpp = static_library(
'glcpp',
[glcpp_lex, glcpp_parse, files('glcpp.h', 'pp.c')],
- link_with : libmesa_util,
+ dependencies : idep_mesautil,
include_directories : [inc_common],
c_args : [c_vis_args, no_override_init_args, c_msvc_compat_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
diff --git a/src/compiler/glsl/meson.build b/src/compiler/glsl/meson.build
index fe1dc8ffe6a..ce6744eec66 100644
--- a/src/compiler/glsl/meson.build
+++ b/src/compiler/glsl/meson.build
@@ -240,8 +240,8 @@ libglsl_standalone = static_library(
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- link_with : [libglsl, libglsl_util, libmesa_util],
- dependencies : [dep_thread],
+ link_with : [libglsl, libglsl_util],
+ dependencies : [dep_thread, idep_mesautil],
build_by_default : false,
)
diff --git a/src/compiler/meson.build b/src/compiler/meson.build
index 0f8f3c12966..81ca0269003 100644
--- a/src/compiler/meson.build
+++ b/src/compiler/meson.build
@@ -63,9 +63,8 @@ subdir('nir')
spirv2nir = executable(
'spirv2nir',
files('spirv/spirv2nir.c'),
- dependencies : [dep_m, dep_thread, idep_nir],
+ dependencies : [dep_m, dep_thread, idep_nir, idep_mesautil],
include_directories : [inc_common, inc_nir, include_directories('spirv')],
- link_with : libmesa_util,
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
build_by_default : with_tools.contains('nir'),
install : with_tools.contains('nir'),
diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build
index a54e899912f..dce8eabaab5 100644
--- a/src/compiler/nir/meson.build
+++ b/src/compiler/nir/meson.build
@@ -267,8 +267,7 @@ if with_tests
files('tests/control_flow_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
@@ -280,8 +279,7 @@ if with_tests
files('tests/vars_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
@@ -301,8 +299,7 @@ if with_tests
files('tests/negative_equal_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
)
)
@@ -313,8 +310,7 @@ if with_tests
files('tests/comparison_pre_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
)
)
endif