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