summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-02-12 10:46:06 -0800
committerDylan Baker <[email protected]>2018-02-15 10:35:23 -0800
commitd672084ba29a64f5ec8c9cd23d4b77c0efa05693 (patch)
treeb0de243249e09efd842345b10ce53a9885b98ba4 /src
parent7d0e342af2221fb1fabc490b240a821ecbab7b6a (diff)
meson: define empty variables for libswdri and libswkmsdri
This allows these variables to unconditionally included in `link_with` lists, even if they're not used. This allows deleting duplicated logic in nearly every gallium target implemented in meson today. This also removes the now useless `build_by_default` flag from swdri and swkmsdri. v4: - add this patch Fixes: 66c94b9313a697ce8f2b222f4ba353035e4b8726 ("meson: build gallium winsys for dri, null, and wrapper") Signed-off-by: Dylan Baker <[email protected]> Acked-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/meson.build12
-rw-r--r--src/gallium/winsys/sw/dri/meson.build2
-rw-r--r--src/gallium/winsys/sw/kms-dri/meson.build3
3 files changed, 12 insertions, 5 deletions
diff --git a/src/gallium/meson.build b/src/gallium/meson.build
index 6330c7514af..d05e67630c6 100644
--- a/src/gallium/meson.build
+++ b/src/gallium/meson.build
@@ -29,8 +29,16 @@ subdir('drivers/noop')
subdir('drivers/trace')
subdir('drivers/rbug')
subdir('winsys/sw/null')
-subdir('winsys/sw/dri')
-subdir('winsys/sw/kms-dri')
+if with_dri
+ subdir('winsys/sw/dri')
+else
+ libswdri = []
+endif
+if with_gallium_drisw_kms
+ subdir('winsys/sw/kms-dri')
+else
+ libswkmsdri = []
+endif
subdir('winsys/sw/wrapper')
if with_gallium_swr
if meson.version().version_compare('< 0.44.0')
diff --git a/src/gallium/winsys/sw/dri/meson.build b/src/gallium/winsys/sw/dri/meson.build
index 6ada8d1bc7d..0de62226b96 100644
--- a/src/gallium/winsys/sw/dri/meson.build
+++ b/src/gallium/winsys/sw/dri/meson.build
@@ -1,4 +1,5 @@
# Copyright © 2017 Dylan Baker
+# Copyright © 2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -23,5 +24,4 @@ libswdri = static_library(
files('dri_sw_winsys.c', 'dri_sw_winsys.h'),
c_args : c_vis_args,
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
- build_by_default : false,
)
diff --git a/src/gallium/winsys/sw/kms-dri/meson.build b/src/gallium/winsys/sw/kms-dri/meson.build
index a26644d4f7d..9c46d6e5484 100644
--- a/src/gallium/winsys/sw/kms-dri/meson.build
+++ b/src/gallium/winsys/sw/kms-dri/meson.build
@@ -1,4 +1,4 @@
-# Copyright © 2017 Intel Corporation
+# Copyright © 2017-2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -25,5 +25,4 @@ libswkmsdri = static_library(
c_args : c_vis_args,
include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
dependencies : dep_libdrm,
- build_by_default : false,
)