[Mesa-dev] [PATCH v4 26/49] meson: fix pipe-loader compilation for windows
Dylan Baker
dylan at pnwbakers.com
Wed Aug 22 17:04:49 UTC 2018
v2: - Add missing D to pound define
- Simply define the variable rather than set it to 1 (mirrors
android.mk not scons)
---
src/gallium/auxiliary/pipe-loader/meson.build | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/pipe-loader/meson.build b/src/gallium/auxiliary/pipe-loader/meson.build
index 32e8188c68b..c5db4e18203 100644
--- a/src/gallium/auxiliary/pipe-loader/meson.build
+++ b/src/gallium/auxiliary/pipe-loader/meson.build
@@ -27,13 +27,18 @@ files_pipe_loader = files(
)
libpipe_loader_defines = []
+libpipe_loader_links = []
if dep_libdrm.found()
files_pipe_loader += files('pipe_loader_drm.c')
+ libpipe_loader_links += libloader
endif
if with_gallium_drisw_kms
libpipe_loader_defines += '-DHAVE_PIPE_LOADER_KMS'
endif
+if not (with_gallium_st_nine or with_gallium_opencl)
+ libpipe_loader_defines += '-DDROP_PIPE_LOADER_MISC'
+endif
libpipe_loader_static = static_library(
'pipe_loader_static',
@@ -46,7 +51,7 @@ libpipe_loader_static = static_library(
c_vis_args, '-DHAVE_PIPE_LOADER_DRI', '-DGALLIUM_STATIC_TARGETS=1',
libpipe_loader_defines,
],
- link_with : [libloader, libxmlconfig],
+ link_with : [libpipe_loader_links, libxmlconfig],
dependencies : [dep_libdrm],
build_by_default : false,
)
@@ -64,7 +69,7 @@ libpipe_loader_dynamic = static_library(
join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')
)
],
- link_with : [libloader, libxmlconfig],
+ link_with : [libpipe_loader_links, libxmlconfig],
dependencies : [dep_libdrm],
build_by_default : false,
)
--
2.18.0
More information about the mesa-dev
mailing list