diff options
author | Dylan Baker <[email protected]> | 2018-02-12 10:46:06 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-02-15 10:35:23 -0800 |
commit | d672084ba29a64f5ec8c9cd23d4b77c0efa05693 (patch) | |
tree | b0de243249e09efd842345b10ce53a9885b98ba4 /src/gallium/meson.build | |
parent | 7d0e342af2221fb1fabc490b240a821ecbab7b6a (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/gallium/meson.build')
-rw-r--r-- | src/gallium/meson.build | 12 |
1 files changed, 10 insertions, 2 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') |