summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build')
-rw-r--r--lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build b/lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build
index 0e4b1ded5..4c6ae60ff 100644
--- a/lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build
+++ b/lib/mesa/src/gallium/auxiliary/pipe-loader/meson.build
@@ -27,9 +27,11 @@ 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_dri
libpipe_loader_defines += '-DHAVE_PIPE_LOADER_DRI'
@@ -37,10 +39,13 @@ 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',
- [files_pipe_loader, xmlpool_options_h],
+ files_pipe_loader,
include_directories : [
inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,
inc_gallium_winsys,
@@ -53,7 +58,7 @@ libpipe_loader_static = static_library(
libpipe_loader_dynamic = static_library(
'pipe_loader_dynamic',
- [files_pipe_loader, xmlpool_options_h],
+ files_pipe_loader,
include_directories : [
inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,
inc_gallium_winsys,
@@ -64,7 +69,7 @@ libpipe_loader_dynamic = static_library(
join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')
)
],
- link_with : libloader,
+ link_with : [libpipe_loader_links],
dependencies : [dep_libdrm, idep_xmlconfig],
build_by_default : false,
)