aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Baker2017-09-13 13:46:13 -0500
committerDylan Baker2018-01-12 11:40:48 -0600
commit5f7deb50787b82038cc35fb1e31b761e33e5a341 (patch)
tree6a9fe255f2c5a8b0ab556118fb0cd3dd9de17634 /meson_options.txt
parentf115de819bc10bb36565f344a66fa619219911b9 (diff)
downloadexternal-libdrm-5f7deb50787b82038cc35fb1e31b761e33e5a341.tar.gz
external-libdrm-5f7deb50787b82038cc35fb1e31b761e33e5a341.tar.xz
external-libdrm-5f7deb50787b82038cc35fb1e31b761e33e5a341.zip
Add meson build system
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-and-tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt143
1 files changed, 143 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 00000000..8af33f1c
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,143 @@
1# Copyright © 2017 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
21option(
22 'libkms',
23 type : 'combo',
24 value : 'auto',
25 choices : ['true', 'false', 'auto'],
26 description : 'Build libkms mm abstraction library.',
27)
28option(
29 'intel',
30 type : 'combo',
31 value : 'auto',
32 choices : ['true', 'false', 'auto'],
33 description : '''Enable support for Intel's KMS API.''',
34)
35option(
36 'radeon',
37 type : 'combo',
38 value : 'auto',
39 choices : ['true', 'false', 'auto'],
40 description : '''Enable support for radeons's KMS API.''',
41)
42option(
43 'amdgpu',
44 type : 'combo',
45 value : 'auto',
46 choices : ['true', 'false', 'auto'],
47 description : '''Enable support for amdgpu's KMS API.''',
48)
49option(
50 'nouveau',
51 type : 'combo',
52 value : 'auto',
53 choices : ['true', 'false', 'auto'],
54 description : '''Enable support for nouveau's KMS API.''',
55)
56option(
57 'vmwgfx',
58 type : 'combo',
59 value : 'true',
60 choices : ['true', 'false', 'auto'],
61 description : '''Enable support for vmgfx's KMS API.''',
62)
63option(
64 'omap',
65 type : 'combo',
66 value : 'false',
67 choices : ['true', 'false', 'auto'],
68 description : '''Enable support for OMAP's experimental KMS API.''',
69)
70option(
71 'exynos',
72 type : 'combo',
73 value : 'false',
74 choices : ['true', 'false', 'auto'],
75 description : '''Enable support for EXYNOS's experimental KMS API.''',
76)
77option(
78 'freedreno',
79 type : 'combo',
80 value : 'auto',
81 choices : ['true', 'false', 'auto'],
82 description : '''Enable support for freedreno's KMS API.''',
83)
84option(
85 'tegra',
86 type : 'combo',
87 value : 'false',
88 choices : ['true', 'false', 'auto'],
89 description : '''Enable support for Tegra's experimental KMS API.''',
90)
91option(
92 'vc4',
93 type : 'combo',
94 value : 'auto',
95 choices : ['true', 'false', 'auto'],
96 description : '''Enable support for vc4's KMS API.''',
97)
98option(
99 'etnaviv',
100 type : 'combo',
101 value : 'false',
102 choices : ['true', 'false', 'auto'],
103 description : '''Enable support for etnaviv's experimental KMS API.''',
104)
105option(
106 'cairo-tests',
107 type : 'combo',
108 value : 'auto',
109 choices : ['true', 'false', 'auto'],
110 description : 'Enable support for Cairo rendering in tests.',
111)
112option(
113 'man-pages',
114 type : 'combo',
115 value : 'auto',
116 choices : ['true', 'false', 'auto'],
117 description : 'Enable manpage generation and installation.',
118)
119option(
120 'valgrind',
121 type : 'combo',
122 value : 'auto',
123 choices : ['true', 'false', 'auto'],
124 description : 'Build libdrm with valgrind support.',
125)
126option(
127 'freedreno-kgsl',
128 type : 'boolean',
129 value : false,
130 description : 'Enable support for freedreno to use downstream android kernel API.',
131)
132option(
133 'install-test-programs',
134 type : 'boolean',
135 value : false,
136 description : 'Install test programs.',
137)
138option(
139 'udev',
140 type : 'boolean',
141 value : false,
142 description : 'Enable support for using udev instead of mknod.',
143)