summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-01-31 13:31:53 -0500
committerAdam Jackson <ajax@redhat.com>2018-02-01 15:01:56 -0500
commit193b75db8c1aa9d91d079901d7da98ec72810378 (patch)
tree016f228b0046db822ec41668100a899a13143a49 /meson.build
parent0d4330017c811227f8424ecbd061d987f39b4e9f (diff)
meson: Spread the install rules into their subdirs
Mostly this is is so the generated Xpoll.h can be emitted into a usable directory when we build as a subproject. Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build191
1 files changed, 5 insertions, 186 deletions
diff --git a/meson.build b/meson.build
index aa20a78..b9964cb 100644
--- a/meson.build
+++ b/meson.build
@@ -18,177 +18,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-project('xorgproto', license : 'MIT', version : '2018.0')
+project('xorgproto', 'c', license : 'MIT', version : '2018.0')
pkg = import('pkgconfig')
-
-# core
-install_headers(
- 'include/X11/ap_keysym.h',
- 'include/X11/DECkeysym.h',
- 'include/X11/HPkeysym.h',
- 'include/X11/keysymdef.h',
- 'include/X11/keysym.h',
- 'include/X11/Sunkeysym.h',
- 'include/X11/Xalloca.h',
- 'include/X11/Xarch.h',
- 'include/X11/Xatom.h',
- 'include/X11/Xdefs.h',
- 'include/X11/XF86keysym.h',
- 'include/X11/Xfuncs.h',
- 'include/X11/X.h',
- 'include/X11/Xmd.h',
- 'include/X11/Xosdefs.h',
- 'include/X11/Xos.h',
- 'include/X11/Xos_r.h',
- 'include/X11/Xproto.h',
- 'include/X11/Xprotostr.h',
- 'include/X11/Xthreads.h',
- 'include/X11/Xw32defs.h',
- 'include/X11/XWDFile.h',
- 'include/X11/Xwindows.h',
- 'include/X11/Xwinsock.h',
- subdir : 'X11')
-
-# proxy manager
-install_headers(
- 'include/X11/PM/PM.h',
- 'include/X11/PM/PMproto.h',
- subdir : 'X11/PM'
-)
-
-# fonts
-install_headers(
- 'include/X11/fonts/font.h',
- 'include/X11/fonts/fontproto.h',
- 'include/X11/fonts/fontstruct.h',
- 'include/X11/fonts/FS.h',
- 'include/X11/fonts/fsmasks.h',
- 'include/X11/fonts/FSproto.h',
- subdir : 'X11/fonts'
-)
-
-# dri1
-install_headers(
- 'include/X11/dri/xf86dri.h',
- 'include/X11/dri/xf86driproto.h',
- 'include/X11/dri/xf86dristr.h',
- subdir : 'X11/dri'
-)
-
-# GL
-install_headers(
- 'include/GL/glxint.h',
- 'include/GL/glxmd.h',
- 'include/GL/glxproto.h',
- 'include/GL/glxtokens.h',
- subdir : 'GL')
-install_headers('include/GL/internal/glcore.h', subdir : 'GL/internal')
-
-# all other extensions
-install_headers(
- 'include/X11/extensions/ag.h',
- 'include/X11/extensions/agproto.h',
- 'include/X11/extensions/applewmconst.h',
- 'include/X11/extensions/applewmproto.h',
- 'include/X11/extensions/bigreqsproto.h',
- 'include/X11/extensions/bigreqstr.h',
- 'include/X11/extensions/composite.h',
- 'include/X11/extensions/compositeproto.h',
- 'include/X11/extensions/cup.h',
- 'include/X11/extensions/cupproto.h',
- 'include/X11/extensions/damageproto.h',
- 'include/X11/extensions/damagewire.h',
- 'include/X11/extensions/dbe.h',
- 'include/X11/extensions/dbeproto.h',
- 'include/X11/extensions/dmx.h',
- 'include/X11/extensions/dmxproto.h',
- 'include/X11/extensions/dpmsconst.h',
- 'include/X11/extensions/dpmsproto.h',
- 'include/X11/extensions/dri2proto.h',
- 'include/X11/extensions/dri2tokens.h',
- 'include/X11/extensions/dri3proto.h',
- 'include/X11/extensions/EVI.h',
- 'include/X11/extensions/EVIproto.h',
- 'include/X11/extensions/ge.h',
- 'include/X11/extensions/geproto.h',
- 'include/X11/extensions/lbx.h',
- 'include/X11/extensions/lbxproto.h',
- 'include/X11/extensions/mitmiscconst.h',
- 'include/X11/extensions/mitmiscproto.h',
- 'include/X11/extensions/multibufconst.h',
- 'include/X11/extensions/multibufproto.h',
- 'include/X11/extensions/panoramiXproto.h',
- 'include/X11/extensions/presentproto.h',
- 'include/X11/extensions/presenttokens.h',
- 'include/X11/extensions/randr.h',
- 'include/X11/extensions/randrproto.h',
- 'include/X11/extensions/recordconst.h',
- 'include/X11/extensions/recordproto.h',
- 'include/X11/extensions/recordstr.h',
- 'include/X11/extensions/render.h',
- 'include/X11/extensions/renderproto.h',
- 'include/X11/extensions/saver.h',
- 'include/X11/extensions/saverproto.h',
- 'include/X11/extensions/secur.h',
- 'include/X11/extensions/securproto.h',
- 'include/X11/extensions/shapeconst.h',
- 'include/X11/extensions/shapeproto.h',
- 'include/X11/extensions/shapestr.h',
- 'include/X11/extensions/shm.h',
- 'include/X11/extensions/shmproto.h',
- 'include/X11/extensions/shmstr.h',
- 'include/X11/extensions/syncconst.h',
- 'include/X11/extensions/syncproto.h',
- 'include/X11/extensions/syncstr.h',
- 'include/X11/extensions/vldXvMC.h',
- 'include/X11/extensions/windowswm.h',
- 'include/X11/extensions/windowswmstr.h',
- 'include/X11/extensions/xcmiscproto.h',
- 'include/X11/extensions/xcmiscstr.h',
- 'include/X11/extensions/xf86bigfont.h',
- 'include/X11/extensions/xf86bigfproto.h',
- 'include/X11/extensions/xf86bigfstr.h',
- 'include/X11/extensions/xf86dga1const.h',
- 'include/X11/extensions/xf86dga1proto.h',
- 'include/X11/extensions/xf86dga1str.h',
- 'include/X11/extensions/xf86dgaconst.h',
- 'include/X11/extensions/xf86dga.h',
- 'include/X11/extensions/xf86dgaproto.h',
- 'include/X11/extensions/xf86dgastr.h',
- 'include/X11/extensions/xf86misc.h',
- 'include/X11/extensions/xf86mscstr.h',
- 'include/X11/extensions/xf86vm.h',
- 'include/X11/extensions/xf86vmproto.h',
- 'include/X11/extensions/xf86vmstr.h',
- 'include/X11/extensions/xfixesproto.h',
- 'include/X11/extensions/xfixeswire.h',
- 'include/X11/extensions/XI2.h',
- 'include/X11/extensions/XI2proto.h',
- 'include/X11/extensions/XI.h',
- 'include/X11/extensions/XIproto.h',
- 'include/X11/extensions/XKBgeom.h',
- 'include/X11/extensions/XKB.h',
- 'include/X11/extensions/XKBproto.h',
- 'include/X11/extensions/XKBsrv.h',
- 'include/X11/extensions/XKBstr.h',
- 'include/X11/extensions/XResproto.h',
- 'include/X11/extensions/xtestconst.h',
- 'include/X11/extensions/xtestext1const.h',
- 'include/X11/extensions/xtestext1proto.h',
- 'include/X11/extensions/xtestproto.h',
- 'include/X11/extensions/xtrapbits.h',
- 'include/X11/extensions/xtrapddmi.h',
- 'include/X11/extensions/xtrapdi.h',
- 'include/X11/extensions/xtrapemacros.h',
- 'include/X11/extensions/xtraplib.h',
- 'include/X11/extensions/xtraplibp.h',
- 'include/X11/extensions/xtrapproto.h',
- 'include/X11/extensions/Xv.h',
- 'include/X11/extensions/XvMC.h',
- 'include/X11/extensions/XvMCproto.h',
- 'include/X11/extensions/Xvproto.h',
- subdir : 'X11/extensions'
-)
+cc = meson.get_compiler('c')
+sed = find_program('sed')
pcs = [
['applewmproto', '1.4.2'],
@@ -234,23 +67,7 @@ foreach pc : pcs
)
endforeach
-# legacy
if get_option('legacy') == true
- install_headers(
- 'include/X11/extensions/evieproto.h',
- 'include/X11/extensions/fontcache.h',
- 'include/X11/extensions/fontcacheP.h',
- 'include/X11/extensions/fontcachstr.h',
- 'include/X11/extensions/lgewire.h',
- 'include/X11/extensions/Print.h',
- 'include/X11/extensions/Printstr.h',
- 'include/X11/extensions/xcalibrateproto.h',
- 'include/X11/extensions/xcalibratewire.h',
- 'include/X11/extensions/Xeviestr.h',
- 'include/X11/extensions/xf86rush.h',
- 'include/X11/extensions/xf86rushstr.h',
- subdir : 'X11/extensions'
- )
legacy_pcs = [
['evieproto', '1.1.1'],
['fontcacheproto', '0.1.3'],
@@ -273,3 +90,5 @@ endif
ext_xorgproto = declare_dependency(
include_directories : include_directories('include')
)
+
+subdir('include')