meson.build revision 4627b59c
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 : '2020.1') 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 ['dpmsproto', '1.2'], 33 ['dri2proto', '2.8'], 34 ['dri3proto', '1.2'], 35 ['fixesproto', '5.0'], 36 ['fontsproto', '2.1.3'], 37 ['glproto', '1.4.17'], 38 ['inputproto', '2.3.2'], 39 ['kbproto', '1.0.7'], 40 ['presentproto', '1.2'], 41 ['randrproto', '1.6.0'], 42 ['recordproto', '1.14.2'], 43 ['renderproto', '0.11.1'], 44 ['resourceproto', '1.2.0'], 45 ['scrnsaverproto', '1.2.2'], 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 ['xf86vidmodeproto', '2.3.1'], 53 ['xineramaproto', '1.2.1'], 54 ['xproto', '7.0.32'], 55] 56 57foreach pc : pcs 58 if pc[0] == 'xf86driproto' 59 subdir = 'X11/dri' 60 else 61 subdir = '' 62 endif 63 pkg.generate( 64 name : pc[0], 65 filebase : pc[0], 66 description : pc[0] + ' headers', 67 version : pc[1], 68 install_dir : get_option('datadir') + '/pkgconfig', 69 subdirs : subdir, 70 ) 71endforeach 72 73if get_option('legacy') == true 74 legacy_pcs = [ 75 ['evieproto', '1.1.1'], 76 ['fontcacheproto', '0.1.3'], 77 ['lg3dproto', '5.0'], 78 ['printproto', '1.0.5'], 79 ['trapproto', '3.4.3'], 80 ['windowswmproto', '1.0.4'], 81 ['xcalibrateproto', '0.1.0'], 82 ['xf86miscproto', '0.9.3'], 83 ['xf86rushproto', '1.2.2'], 84 ['xproxymngproto', '1.0.3'], 85 ] 86 foreach pc : legacy_pcs 87 pkg.generate( 88 name : pc[0], 89 filebase : pc[0], 90 description : pc[0] + ' headers', 91 version : pc[1], 92 install_dir : get_option('datadir') + '/pkgconfig' 93 ) 94 endforeach 95endif 96 97ext_xorgproto = declare_dependency( 98 include_directories : include_directories('include') 99) 100 101subdir('include') 102