meson.build revision 9d6fedf0
1# Copyright © 2018 Intel Corporation 2 3# Permission is hereby granted, free of charge, to any person obtaining a copy 4# of this software and associated documentation files (the "Software"), to deal 5# in the Software without restriction, including without limitation the rights 6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7# copies of the Software, and to permit persons to whom the Software is 8# furnished to do so, subject to the following conditions: 9 10# The above copyright notice and this permission notice shall be included in 11# all copies or substantial portions of the Software. 12 13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19# SOFTWARE. 20 21project('xorgproto', 'c', license : 'MIT', version : '2019.2') 22pkg = import('pkgconfig') 23cc = meson.get_compiler('c') 24sed = find_program('sed') 25 26pcs = [ 27 ['applewmproto', '1.4.2'], 28 ['bigreqsproto', '1.1.2'], 29 ['compositeproto', '0.4.2'], 30 ['damageproto', '1.2.1'], 31 ['dmxproto', '2.3.1'], 32 ['dri2proto', '2.8'], 33 ['dri3proto', '1.2'], 34 ['fixesproto', '5.0'], 35 ['fontsproto', '2.1.3'], 36 ['glproto', '1.4.17'], 37 ['inputproto', '2.3.2'], 38 ['kbproto', '1.0.7'], 39 ['presentproto', '1.2'], 40 ['randrproto', '1.6.0'], 41 ['recordproto', '1.14.2'], 42 ['renderproto', '0.11.1'], 43 ['resourceproto', '1.2.0'], 44 ['scrnsaverproto', '1.2.2'], 45 ['trapproto', '3.4.3'], 46 ['videoproto', '2.3.3'], 47 ['xcmiscproto', '1.2.2'], 48 ['xextproto', '7.3.0'], 49 ['xf86bigfontproto', '1.2.0'], 50 ['xf86dgaproto', '2.1'], 51 ['xf86driproto', '2.1.1'], 52 ['xf86miscproto', '0.9.3'], 53 ['xf86vidmodeproto', '2.3.1'], 54 ['xineramaproto', '1.2.1'], 55 ['xproto', '7.0.32'], 56 ['xproxymngproto', '1.0.3'], 57] 58 59foreach pc : pcs 60 if pc[0] == 'xf86driproto' 61 subdir = 'X11/dri' 62 else 63 subdir = '' 64 endif 65 pkg.generate( 66 name : pc[0], 67 filebase : pc[0], 68 description : pc[0] + ' headers', 69 version : pc[1], 70 install_dir : get_option('datadir') + '/pkgconfig', 71 subdirs : subdir, 72 ) 73endforeach 74 75if get_option('legacy') == true 76 legacy_pcs = [ 77 ['evieproto', '1.1.1'], 78 ['fontcacheproto', '0.1.3'], 79 ['lg3dproto', '5.0'], 80 ['printproto', '1.0.5'], 81 ['windowswmproto', '1.0.4'], 82 ['xcalibrateproto', '0.1.0'], 83 ['xf86rushproto', '1.2.2'], 84 ] 85 foreach pc : legacy_pcs 86 pkg.generate( 87 name : pc[0], 88 filebase : pc[0], 89 description : pc[0] + ' headers', 90 version : pc[1], 91 install_dir : get_option('datadir') + '/pkgconfig' 92 ) 93 endforeach 94endif 95 96ext_xorgproto = declare_dependency( 97 include_directories : include_directories('include') 98) 99 100subdir('include') 101