summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-03-05 22:50:51 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-03-11 00:22:36 +0000
commit376eaadde36f80fcbe6b0391a3385e77b4602854 (patch)
treebdaeb7480122904d2a2a7af1de059abf4306d273
parent4ae36f418ed683532b0b6991e4a1e7d56740b845 (diff)
meson: hide C API if Xorg is disabled (like autotools)
When building only Xwayland using Meson some files are always installed. This causes package conflict if Xwayland is built separately from Xorg. include/xorg/compositeext.h include/xorg/damage.h include/xorg/damagestr.h include/xorg/dbestruct.h include/xorg/dri3.h include/xorg/fb.h include/xorg/fboverlay.h include/xorg/fbpict.h include/xorg/fbrop.h include/xorg/geext.h include/xorg/geint.h include/xorg/glyphstr.h include/xorg/mi.h include/xorg/micmap.h include/xorg/micoord.h include/xorg/migc.h include/xorg/miline.h include/xorg/mioverlay.h include/xorg/mipict.h include/xorg/mipointer.h include/xorg/mipointrst.h include/xorg/mistruct.h include/xorg/misync.h include/xorg/misyncfd.h include/xorg/misyncshm.h include/xorg/misyncstr.h include/xorg/mizerarc.h include/xorg/panoramiX.h include/xorg/panoramiXsrv.h include/xorg/picture.h include/xorg/picturestr.h include/xorg/present.h include/xorg/presentext.h include/xorg/randrstr.h include/xorg/rrtransform.h include/xorg/shadow.h include/xorg/shmint.h include/xorg/syncsdk.h include/xorg/vndserver.h include/xorg/wfbrename.h include/xorg/xace.h include/xorg/xacestr.h include/xorg/xorg-server.h include/xorg/xvdix.h include/xorg/xvmcext.h share/aclocal/xorg-server.m4 Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
-rw-r--r--Xext/meson.build4
-rw-r--r--composite/meson.build4
-rw-r--r--dbe/meson.build4
-rw-r--r--dri3/meson.build4
-rw-r--r--fb/meson.build4
-rw-r--r--glx/meson.build4
-rw-r--r--include/meson.build1
-rw-r--r--meson.build6
-rw-r--r--mi/meson.build4
-rw-r--r--miext/damage/meson.build4
-rw-r--r--miext/shadow/meson.build4
-rw-r--r--miext/sync/meson.build4
-rw-r--r--present/meson.build4
-rw-r--r--randr/meson.build4
-rw-r--r--render/meson.build4
15 files changed, 43 insertions, 16 deletions
diff --git a/Xext/meson.build b/Xext/meson.build
index 7727e207e..0600fe98b 100644
--- a/Xext/meson.build
+++ b/Xext/meson.build
@@ -74,4 +74,6 @@ libxserver_xext_vidmode = static_library('libxserver_xext_vidmode',
dependencies: common_dep,
)
-install_data(hdrs_xext, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_xext, install_dir: xorgsdkdir)
+endif
diff --git a/composite/meson.build b/composite/meson.build
index 7547f0e7e..4f3303e20 100644
--- a/composite/meson.build
+++ b/composite/meson.build
@@ -16,4 +16,6 @@ libxserver_composite = static_library('libxserver_composite',
dependencies: common_dep,
)
-install_data(hdrs_composite, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_composite, install_dir: xorgsdkdir)
+endif
diff --git a/dbe/meson.build b/dbe/meson.build
index 76a2d3f85..2aa595aa3 100644
--- a/dbe/meson.build
+++ b/dbe/meson.build
@@ -13,4 +13,6 @@ libxserver_dbe = static_library('libxserver_dbe',
dependencies: common_dep,
)
-install_data(hdrs_dbe, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_dbe, install_dir: xorgsdkdir)
+endif
diff --git a/dri3/meson.build b/dri3/meson.build
index d446fdda7..91bd68d87 100644
--- a/dri3/meson.build
+++ b/dri3/meson.build
@@ -17,4 +17,6 @@ if build_dri3
)
endif
-install_data(hdrs_dri3, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_dri3, install_dir: xorgsdkdir)
+endif
diff --git a/fb/meson.build b/fb/meson.build
index 477ab047d..1d8d259a1 100644
--- a/fb/meson.build
+++ b/fb/meson.build
@@ -54,4 +54,6 @@ libxserver_wfb = static_library('libxserver_wfb',
build_by_default: false,
)
-install_data(hdrs_fb, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_fb, install_dir: xorgsdkdir)
+endif
diff --git a/glx/meson.build b/glx/meson.build
index 292e7a59d..2ec00ce22 100644
--- a/glx/meson.build
+++ b/glx/meson.build
@@ -79,5 +79,7 @@ if build_glx
],
)
- install_data(hdrs_vnd, install_dir : xorgsdkdir)
+ if build_xorg
+ install_data(hdrs_vnd, install_dir : xorgsdkdir)
+ endif
endif
diff --git a/include/meson.build b/include/meson.build
index 14f2be777..f764f1547 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -318,6 +318,7 @@ configure_file(output : 'dix-config.h',
configure_file(output : 'xorg-server.h',
input : 'xorg-server.h.meson.in',
configuration : conf_data,
+ install: build_xorg,
install_dir: xorgsdkdir)
version_data = configuration_data()
diff --git a/meson.build b/meson.build
index 46b76b182..6cba5bb5d 100644
--- a/meson.build
+++ b/meson.build
@@ -819,7 +819,7 @@ if build_xorg
get_option('libdir'),
'pkgconfig'),
)
-endif
-install_data('xorg-server.m4',
- install_dir: join_paths(get_option('datadir'), 'aclocal'))
+ install_data('xorg-server.m4',
+ install_dir: join_paths(get_option('datadir'), 'aclocal'))
+endif
diff --git a/mi/meson.build b/mi/meson.build
index 73b196ad0..9f97d149c 100644
--- a/mi/meson.build
+++ b/mi/meson.build
@@ -51,4 +51,6 @@ libxserver_mi = static_library('libxserver_mi',
],
)
-install_data(hdrs_mi, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_mi, install_dir: xorgsdkdir)
+endif
diff --git a/miext/damage/meson.build b/miext/damage/meson.build
index 1f6032c68..c7ec10938 100644
--- a/miext/damage/meson.build
+++ b/miext/damage/meson.build
@@ -13,4 +13,6 @@ libxserver_miext_damage = static_library('libxserver_miext_damage',
dependencies: common_dep,
)
-install_data(hdrs_miext_damage, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_miext_damage, install_dir: xorgsdkdir)
+endif
diff --git a/miext/shadow/meson.build b/miext/shadow/meson.build
index 7230df635..f91accd69 100644
--- a/miext/shadow/meson.build
+++ b/miext/shadow/meson.build
@@ -35,4 +35,6 @@ libxserver_miext_shadow = static_library('libxserver_miext_shadow',
dependencies: common_dep,
)
-install_data(hdrs_miext_shadow, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_miext_shadow, install_dir: xorgsdkdir)
+endif
diff --git a/miext/sync/meson.build b/miext/sync/meson.build
index 182a4aef4..0892fd807 100644
--- a/miext/sync/meson.build
+++ b/miext/sync/meson.build
@@ -23,4 +23,6 @@ libxserver_miext_sync = static_library('libxserver_miext_sync',
],
)
-install_data(hdrs_miext_sync, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_miext_sync, install_dir: xorgsdkdir)
+endif
diff --git a/present/meson.build b/present/meson.build
index 026ccf90a..aa7ce86ff 100644
--- a/present/meson.build
+++ b/present/meson.build
@@ -26,4 +26,6 @@ libxserver_present = static_library('libxserver_present',
],
)
-install_data(hdrs_present, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_present, install_dir: xorgsdkdir)
+endif
diff --git a/randr/meson.build b/randr/meson.build
index 7090dde60..9bd751bf2 100644
--- a/randr/meson.build
+++ b/randr/meson.build
@@ -31,4 +31,6 @@ libxserver_randr = static_library('libxserver_randr',
dependencies: common_dep,
)
-install_data(hdrs_randr, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_randr, install_dir: xorgsdkdir)
+endif
diff --git a/render/meson.build b/render/meson.build
index cbd64741c..b95b082b3 100644
--- a/render/meson.build
+++ b/render/meson.build
@@ -25,4 +25,6 @@ libxserver_render = static_library('libxserver_render',
dependencies: common_dep,
)
-install_data(hdrs_render, install_dir: xorgsdkdir)
+if build_xorg
+ install_data(hdrs_render, install_dir: xorgsdkdir)
+endif