Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 1 | # Copyright © 2017-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 | |
| 21 | project( |
| 22 | 'libdrm', |
| 23 | ['c'], |
Marek Olšák | 0573495 | 2019-10-16 15:27:05 -0400 | [diff] [blame] | 24 | version : '2.4.100', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 25 | license : 'MIT', |
Dylan Baker | 5df9367 | 2018-01-12 11:53:39 -0800 | [diff] [blame] | 26 | meson_version : '>= 0.43', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 27 | default_options : ['buildtype=debugoptimized', 'c_std=gnu99'], |
| 28 | ) |
| 29 | |
| 30 | pkg = import('pkgconfig') |
| 31 | |
Eric Engestrom | edaca47 | 2018-03-20 14:54:45 +0000 | [diff] [blame] | 32 | config = configuration_data() |
| 33 | |
Eric Engestrom | 361d4bf | 2018-03-20 14:59:40 +0000 | [diff] [blame] | 34 | config.set10('UDEV', get_option('udev')) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 35 | with_freedreno_kgsl = get_option('freedreno-kgsl') |
| 36 | with_install_tests = get_option('install-test-programs') |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 37 | |
Jonathan Gray | 9eb6c8a | 2018-02-20 17:09:14 +1100 | [diff] [blame] | 38 | if ['freebsd', 'dragonfly', 'netbsd'].contains(host_machine.system()) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 39 | dep_pthread_stubs = dependency('pthread-stubs', version : '>= 0.4') |
| 40 | else |
| 41 | dep_pthread_stubs = [] |
| 42 | endif |
| 43 | dep_threads = dependency('threads') |
| 44 | |
| 45 | cc = meson.get_compiler('c') |
| 46 | |
Eric Engestrom | 303cf6b | 2019-10-23 22:57:51 +0100 | [diff] [blame] | 47 | symbols_check = find_program('symbols-check.py') |
| 48 | prog_nm = find_program('nm') |
| 49 | |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 50 | # Check for atomics |
| 51 | intel_atomics = false |
| 52 | lib_atomics = false |
| 53 | |
Eric Engestrom | 5236de6 | 2018-02-07 14:20:52 +0000 | [diff] [blame] | 54 | dep_atomic_ops = dependency('atomic_ops', required : false) |
Peter Seiderer | 8de2696 | 2018-07-16 23:01:40 +0200 | [diff] [blame^] | 55 | if cc.links(''' |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 56 | int atomic_add(int *i) { return __sync_add_and_fetch (i, 1); } |
| 57 | int atomic_cmpxchg(int *i, int j, int k) { return __sync_val_compare_and_swap (i, j, k); } |
Peter Seiderer | 8de2696 | 2018-07-16 23:01:40 +0200 | [diff] [blame^] | 58 | int main() { } |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 59 | ''', |
| 60 | name : 'Intel Atomics') |
| 61 | intel_atomics = true |
| 62 | with_atomics = true |
Eric Engestrom | 5236de6 | 2018-02-07 14:20:52 +0000 | [diff] [blame] | 63 | dep_atomic_ops = [] |
| 64 | elif dep_atomic_ops.found() |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 65 | lib_atomics = true |
| 66 | with_atomics = true |
| 67 | elif cc.has_function('atomic_cas_uint') |
| 68 | with_atomics = true |
| 69 | else |
| 70 | with_atomics = false |
| 71 | endif |
| 72 | |
| 73 | config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics) |
| 74 | config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) |
| 75 | |
| 76 | with_intel = false |
| 77 | _intel = get_option('intel') |
| 78 | if _intel != 'false' |
| 79 | if _intel == 'true' and not with_atomics |
| 80 | error('libdrm_intel requires atomics.') |
| 81 | else |
| 82 | with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86') |
| 83 | endif |
| 84 | endif |
| 85 | |
| 86 | with_radeon = false |
| 87 | _radeon = get_option('radeon') |
| 88 | if _radeon != 'false' |
| 89 | if _radeon == 'true' and not with_atomics |
| 90 | error('libdrm_radeon requires atomics.') |
| 91 | endif |
| 92 | with_radeon = true |
| 93 | endif |
| 94 | |
| 95 | with_amdgpu = false |
| 96 | _amdgpu = get_option('amdgpu') |
| 97 | if _amdgpu != 'false' |
| 98 | if _amdgpu == 'true' and not with_atomics |
| 99 | error('libdrm_amdgpu requires atomics.') |
| 100 | endif |
| 101 | with_amdgpu = true |
| 102 | endif |
| 103 | |
| 104 | with_nouveau = false |
| 105 | _nouveau = get_option('nouveau') |
| 106 | if _nouveau != 'false' |
| 107 | if _nouveau == 'true' and not with_atomics |
| 108 | error('libdrm_nouveau requires atomics.') |
| 109 | endif |
| 110 | with_nouveau = true |
| 111 | endif |
| 112 | |
| 113 | with_vmwgfx = false |
| 114 | _vmwgfx = get_option('vmwgfx') |
| 115 | if _vmwgfx != 'false' |
| 116 | with_vmwgfx = true |
| 117 | endif |
| 118 | |
| 119 | with_omap = false |
| 120 | _omap = get_option('omap') |
| 121 | if _omap == 'true' |
| 122 | if not with_atomics |
| 123 | error('libdrm_omap requires atomics.') |
| 124 | endif |
| 125 | with_omap = true |
| 126 | endif |
| 127 | |
| 128 | with_freedreno = false |
| 129 | _freedreno = get_option('freedreno') |
| 130 | if _freedreno != 'false' |
| 131 | if _freedreno == 'true' and not with_atomics |
| 132 | error('libdrm_freedreno requires atomics.') |
| 133 | else |
| 134 | with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) |
| 135 | endif |
| 136 | endif |
| 137 | |
| 138 | with_tegra = false |
| 139 | _tegra = get_option('tegra') |
| 140 | if _tegra == 'true' |
| 141 | if not with_atomics |
| 142 | error('libdrm_tegra requires atomics.') |
| 143 | endif |
| 144 | with_tegra = true |
| 145 | endif |
| 146 | |
| 147 | with_etnaviv = false |
| 148 | _etnaviv = get_option('etnaviv') |
| 149 | if _etnaviv == 'true' |
| 150 | if not with_atomics |
| 151 | error('libdrm_etnaviv requires atomics.') |
| 152 | endif |
| 153 | with_etnaviv = true |
| 154 | endif |
| 155 | |
| 156 | with_exynos = get_option('exynos') == 'true' |
| 157 | |
| 158 | with_vc4 = false |
| 159 | _vc4 = get_option('vc4') |
| 160 | if _vc4 != 'false' |
| 161 | with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) |
| 162 | endif |
| 163 | |
Eric Engestrom | 360292c | 2018-12-19 14:55:45 +0000 | [diff] [blame] | 164 | # XXX: Apparently only freebsd and dragonfly bsd actually need this (and |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 165 | # gnu/kfreebsd), not openbsd and netbsd |
| 166 | with_libkms = false |
| 167 | _libkms = get_option('libkms') |
| 168 | if _libkms != 'false' |
| 169 | with_libkms = _libkms == 'true' or ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) |
| 170 | endif |
| 171 | |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 172 | # Among others FreeBSD does not have a separate dl library. |
| 173 | if not cc.has_function('dlsym') |
| 174 | dep_dl = cc.find_library('dl', required : with_nouveau) |
| 175 | else |
| 176 | dep_dl = [] |
| 177 | endif |
| 178 | # clock_gettime might require -rt, or it might not. find out |
| 179 | if not cc.has_function('clock_gettime', prefix : '#define _GNU_SOURCE\n#include <time.h>') |
| 180 | # XXX: untested |
| 181 | dep_rt = cc.find_library('rt') |
| 182 | else |
| 183 | dep_rt = [] |
| 184 | endif |
| 185 | dep_m = cc.find_library('m', required : false) |
Niclas Zeising | 4083e8f | 2019-06-16 14:23:43 +0100 | [diff] [blame] | 186 | # From Niclas Zeising: |
| 187 | # FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the |
| 188 | # includes when checking for headers. |
Eric Engestrom | a58490d | 2018-03-13 14:31:29 +0000 | [diff] [blame] | 189 | foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] |
Eric Engestrom | 431f1a1 | 2018-03-16 17:10:26 +0000 | [diff] [blame] | 190 | config.set('HAVE_' + header.underscorify().to_upper(), |
Niclas Zeising | 4083e8f | 2019-06-16 14:23:43 +0100 | [diff] [blame] | 191 | cc.compiles('#include <sys/types.h>\n#include <@0@>'.format(header), name : '@0@ works'.format(header))) |
Eric Engestrom | 2bd461e | 2018-03-12 16:17:55 +0000 | [diff] [blame] | 192 | endforeach |
Eric Engestrom | 827a2a2 | 2019-09-14 22:22:03 +0100 | [diff] [blame] | 193 | if (cc.has_header_symbol('sys/sysmacros.h', 'major') and |
| 194 | cc.has_header_symbol('sys/sysmacros.h', 'minor') and |
| 195 | cc.has_header_symbol('sys/sysmacros.h', 'makedev')) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 196 | config.set10('MAJOR_IN_SYSMACROS', true) |
Eric Engestrom | 827a2a2 | 2019-09-14 22:22:03 +0100 | [diff] [blame] | 197 | endif |
| 198 | if (cc.has_header_symbol('sys/mkdev.h', 'major') and |
| 199 | cc.has_header_symbol('sys/mkdev.h', 'minor') and |
| 200 | cc.has_header_symbol('sys/mkdev.h', 'makedev')) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 201 | config.set10('MAJOR_IN_MKDEV', true) |
| 202 | endif |
Eric Engestrom | 1a44bba | 2018-01-26 17:04:28 +0000 | [diff] [blame] | 203 | config.set10('HAVE_OPEN_MEMSTREAM', cc.has_function('open_memstream')) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 204 | |
| 205 | warn_c_args = [] |
Eric Engestrom | ba17673 | 2018-01-26 11:18:03 +0000 | [diff] [blame] | 206 | foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef', |
Eric Engestrom | 8c1fddc | 2018-11-07 16:50:06 +0000 | [diff] [blame] | 207 | '-Werror=implicit-function-declaration', '-Wpointer-arith', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 208 | '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', |
| 209 | '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', |
Eric Engestrom | 8177d73 | 2018-01-26 11:18:30 +0000 | [diff] [blame] | 210 | '-Wswitch-enum', '-Wmissing-format-attribute', |
| 211 | '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 212 | '-Wdeclaration-after-statement', '-Wold-style-definition'] |
| 213 | if cc.has_argument(a) |
| 214 | warn_c_args += a |
| 215 | endif |
| 216 | endforeach |
| 217 | # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list |
| 218 | # of options |
Eric Engestrom | 8177d73 | 2018-01-26 11:18:30 +0000 | [diff] [blame] | 219 | foreach a : ['unused-parameter', 'attributes', 'long-long', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 220 | 'missing-field-initializers'] |
| 221 | if cc.has_argument('-W@0@'.format(a)) |
| 222 | warn_c_args += '-Wno-@0@'.format(a) |
| 223 | endif |
| 224 | endforeach |
| 225 | |
Lucas De Marchi | ba80825 | 2018-09-12 13:24:12 -0700 | [diff] [blame] | 226 | # all c args: |
| 227 | libdrm_c_args = warn_c_args + ['-fvisibility=hidden'] |
| 228 | |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 229 | |
| 230 | dep_pciaccess = dependency('pciaccess', version : '>= 0.10', required : with_intel) |
| 231 | dep_cunit = dependency('cunit', version : '>= 2.1', required : false) |
Igor Gnatenko | 9411f8e | 2018-02-19 13:55:27 +0100 | [diff] [blame] | 232 | _cairo_tests = get_option('cairo-tests') |
| 233 | if _cairo_tests != 'false' |
| 234 | dep_cairo = dependency('cairo', required : _cairo_tests == 'true') |
| 235 | with_cairo_tests = dep_cairo.found() |
| 236 | else |
| 237 | dep_cairo = [] |
| 238 | with_cairo_tests = false |
| 239 | endif |
| 240 | _valgrind = get_option('valgrind') |
| 241 | if _valgrind != 'false' |
| 242 | dep_valgrind = dependency('valgrind', required : _valgrind == 'true') |
| 243 | with_valgrind = dep_valgrind.found() |
| 244 | else |
| 245 | dep_valgrind = [] |
| 246 | with_valgrind = false |
| 247 | endif |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 248 | |
| 249 | with_man_pages = get_option('man-pages') |
| 250 | prog_xslt = find_program('xsltproc', required : with_man_pages == 'true') |
| 251 | prog_sed = find_program('sed', required : with_man_pages == 'true') |
| 252 | manpage_style = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' |
| 253 | if prog_xslt.found() |
| 254 | if run_command(prog_xslt, '--nonet', manpage_style).returncode() != 0 |
| 255 | if with_man_pages == 'true' |
| 256 | error('Manpage style sheet cannot be found') |
| 257 | endif |
| 258 | with_man_pages = 'false' |
| 259 | endif |
| 260 | endif |
| 261 | with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found() |
| 262 | |
Eric Engestrom | e8d3d88 | 2018-03-16 17:07:08 +0000 | [diff] [blame] | 263 | config.set10('HAVE_VISIBILITY', |
| 264 | cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''', |
| 265 | name : 'compiler supports __attribute__(("hidden"))')) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 266 | |
Eric Engestrom | 5457e00 | 2018-01-26 16:23:01 +0000 | [diff] [blame] | 267 | foreach t : [ |
Eric Engestrom | 2cd9105 | 2018-01-26 16:17:53 +0000 | [diff] [blame] | 268 | [with_exynos, 'EXYNOS'], |
Eric Engestrom | ec53f48 | 2018-01-26 15:19:03 +0000 | [diff] [blame] | 269 | [with_freedreno_kgsl, 'FREEDRENO_KGSL'], |
Eric Engestrom | 5457e00 | 2018-01-26 16:23:01 +0000 | [diff] [blame] | 270 | [with_intel, 'INTEL'], |
| 271 | [with_nouveau, 'NOUVEAU'], |
| 272 | [with_radeon, 'RADEON'], |
| 273 | [with_vc4, 'VC4'], |
| 274 | [with_vmwgfx, 'VMWGFX'], |
Igor Gnatenko | 9411f8e | 2018-02-19 13:55:27 +0100 | [diff] [blame] | 275 | [with_cairo_tests, 'CAIRO'], |
| 276 | [with_valgrind, 'VALGRIND'], |
Eric Engestrom | 5457e00 | 2018-01-26 16:23:01 +0000 | [diff] [blame] | 277 | ] |
Eric Engestrom | ee47329 | 2018-01-26 16:21:30 +0000 | [diff] [blame] | 278 | config.set10('HAVE_@0@'.format(t[1]), t[0]) |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 279 | endforeach |
Eric Engestrom | ec53f48 | 2018-01-26 15:19:03 +0000 | [diff] [blame] | 280 | if with_freedreno_kgsl and not with_freedreno |
| 281 | error('cannot enable freedreno-kgsl without freedreno support') |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 282 | endif |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 283 | config.set10('_GNU_SOURCE', true) |
| 284 | config_file = configure_file( |
| 285 | configuration : config, |
| 286 | output : 'config.h', |
| 287 | ) |
Eric Engestrom | 0926f0a | 2018-02-01 11:12:05 +0000 | [diff] [blame] | 288 | add_project_arguments('-include', 'config.h', language : 'c') |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 289 | |
| 290 | inc_root = include_directories('.') |
| 291 | inc_drm = include_directories('include/drm') |
| 292 | |
| 293 | libdrm = shared_library( |
| 294 | 'drm', |
| 295 | [files( |
| 296 | 'xf86drm.c', 'xf86drmHash.c', 'xf86drmRandom.c', 'xf86drmSL.c', |
| 297 | 'xf86drmMode.c' |
| 298 | ), |
| 299 | config_file, |
| 300 | ], |
Lucas De Marchi | ba80825 | 2018-09-12 13:24:12 -0700 | [diff] [blame] | 301 | c_args : libdrm_c_args, |
Eric Engestrom | 56f6d3d | 2018-03-20 14:55:50 +0000 | [diff] [blame] | 302 | dependencies : [dep_valgrind, dep_rt, dep_m], |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 303 | include_directories : inc_drm, |
| 304 | version : '2.4.0', |
| 305 | install : true, |
| 306 | ) |
| 307 | |
| 308 | ext_libdrm = declare_dependency( |
| 309 | link_with : libdrm, |
Dylan Baker | deb5978 | 2018-02-07 15:35:24 -0800 | [diff] [blame] | 310 | include_directories : [inc_root, inc_drm], |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 311 | ) |
| 312 | |
| 313 | install_headers('libsync.h', 'xf86drm.h', 'xf86drmMode.h') |
| 314 | install_headers( |
| 315 | 'include/drm/drm.h', 'include/drm/drm_fourcc.h', 'include/drm/drm_mode.h', |
| 316 | 'include/drm/drm_sarea.h', 'include/drm/i915_drm.h', |
| 317 | 'include/drm/mach64_drm.h', 'include/drm/mga_drm.h', |
Tanmay Shah | f0c642e | 2018-08-13 17:29:21 -0700 | [diff] [blame] | 318 | 'include/drm/msm_drm.h', 'include/drm/nouveau_drm.h', |
| 319 | 'include/drm/qxl_drm.h', 'include/drm/r128_drm.h', |
| 320 | 'include/drm/radeon_drm.h', 'include/drm/amdgpu_drm.h', |
| 321 | 'include/drm/savage_drm.h', 'include/drm/sis_drm.h', |
| 322 | 'include/drm/tegra_drm.h', 'include/drm/vc4_drm.h', |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 323 | 'include/drm/via_drm.h', 'include/drm/virtgpu_drm.h', |
| 324 | subdir : 'libdrm', |
| 325 | ) |
| 326 | if with_vmwgfx |
| 327 | install_headers('include/drm/vmwgfx_drm.h', subdir : 'libdrm') |
| 328 | endif |
| 329 | |
| 330 | pkg.generate( |
| 331 | name : 'libdrm', |
| 332 | libraries : libdrm, |
| 333 | subdirs : ['.', 'libdrm'], |
| 334 | version : meson.project_version(), |
| 335 | description : 'Userspace interface to kernel DRM services', |
| 336 | ) |
Eric Engestrom | 8177d73 | 2018-01-26 11:18:30 +0000 | [diff] [blame] | 337 | |
Dylan Baker | 5f7deb5 | 2017-09-13 11:46:13 -0700 | [diff] [blame] | 338 | if with_libkms |
| 339 | subdir('libkms') |
| 340 | endif |
| 341 | if with_intel |
| 342 | subdir('intel') |
| 343 | endif |
| 344 | if with_nouveau |
| 345 | subdir('nouveau') |
| 346 | endif |
| 347 | if with_radeon |
| 348 | subdir('radeon') |
| 349 | endif |
| 350 | if with_amdgpu |
| 351 | subdir('amdgpu') |
| 352 | endif |
| 353 | if with_omap |
| 354 | subdir('omap') |
| 355 | endif |
| 356 | if with_exynos |
| 357 | subdir('exynos') |
| 358 | endif |
| 359 | if with_freedreno |
| 360 | subdir('freedreno') |
| 361 | endif |
| 362 | if with_tegra |
| 363 | subdir('tegra') |
| 364 | endif |
| 365 | if with_vc4 |
| 366 | subdir('vc4') |
| 367 | endif |
| 368 | if with_etnaviv |
| 369 | subdir('etnaviv') |
| 370 | endif |
| 371 | if with_man_pages |
| 372 | subdir('man') |
| 373 | endif |
| 374 | subdir('data') |
| 375 | subdir('tests') |
Eric Engestrom | 7a58c21 | 2018-02-26 15:42:18 +0000 | [diff] [blame] | 376 | |
| 377 | message('') |
| 378 | message('@0@ will be compiled with:'.format(meson.project_name())) |
| 379 | message('') |
| 380 | message(' libkms @0@'.format(with_libkms)) |
| 381 | message(' Intel API @0@'.format(with_intel)) |
| 382 | message(' vmwgfx API @0@'.format(with_vmwgfx)) |
| 383 | message(' Radeon API @0@'.format(with_radeon)) |
| 384 | message(' AMDGPU API @0@'.format(with_amdgpu)) |
| 385 | message(' Nouveau API @0@'.format(with_nouveau)) |
| 386 | message(' OMAP API @0@'.format(with_omap)) |
| 387 | message(' EXYNOS API @0@'.format(with_exynos)) |
| 388 | message(' Freedreno API @0@ (kgsl: @1@)'.format(with_freedreno, with_freedreno_kgsl)) |
| 389 | message(' Tegra API @0@'.format(with_tegra)) |
| 390 | message(' VC4 API @0@'.format(with_vc4)) |
| 391 | message(' Etnaviv API @0@'.format(with_etnaviv)) |
| 392 | message('') |