meson.build revision 7cdc0497
100a23bdaSmrg# Copyright © 2017-2018 Intel Corporation
200a23bdaSmrg
300a23bdaSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy
400a23bdaSmrg# of this software and associated documentation files (the "Software"), to deal
500a23bdaSmrg# in the Software without restriction, including without limitation the rights
600a23bdaSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
700a23bdaSmrg# copies of the Software, and to permit persons to whom the Software is
800a23bdaSmrg# furnished to do so, subject to the following conditions:
900a23bdaSmrg
1000a23bdaSmrg# The above copyright notice and this permission notice shall be included in
1100a23bdaSmrg# all copies or substantial portions of the Software.
1200a23bdaSmrg
1300a23bdaSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1400a23bdaSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1500a23bdaSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1600a23bdaSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1700a23bdaSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1800a23bdaSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1900a23bdaSmrg# SOFTWARE.
2000a23bdaSmrg
2100a23bdaSmrginc_tests = include_directories('.')
2200a23bdaSmrg
2300a23bdaSmrgsubdir('util')
2400a23bdaSmrgsubdir('kms')
2500a23bdaSmrgsubdir('modeprint')
2600a23bdaSmrgsubdir('proptest')
2700a23bdaSmrgsubdir('modetest')
2800a23bdaSmrgsubdir('vbltest')
2900a23bdaSmrgif with_libkms
3000a23bdaSmrg  subdir('kmstest')
3100a23bdaSmrgendif
3200a23bdaSmrgif with_radeon
3300a23bdaSmrg  subdir('radeon')
3400a23bdaSmrgendif
3500a23bdaSmrgif with_amdgpu
3600a23bdaSmrg  subdir('amdgpu')
3700a23bdaSmrgendif
3800a23bdaSmrgif with_exynos
3900a23bdaSmrg  subdir('exynos')
4000a23bdaSmrgendif
4100a23bdaSmrgif with_tegra
4200a23bdaSmrg  subdir('tegra')
4300a23bdaSmrgendif
4400a23bdaSmrgif with_etnaviv
4500a23bdaSmrg  subdir('etnaviv')
4600a23bdaSmrgendif
4700a23bdaSmrgif with_nouveau
4800a23bdaSmrg  subdir('nouveau')
4900a23bdaSmrgendif
5000a23bdaSmrg
5100a23bdaSmrgdrmsl = executable(
5200a23bdaSmrg  'drmsl',
5300a23bdaSmrg  files('drmsl.c'),
5400a23bdaSmrg  include_directories : [inc_root, inc_drm],
5500a23bdaSmrg  link_with : libdrm,
567cdc0497Smrg  c_args : libdrm_c_args,
5700a23bdaSmrg)
5800a23bdaSmrg
5900a23bdaSmrghash = executable(
6000a23bdaSmrg  'hash',
6100a23bdaSmrg  files('hash.c'),
6200a23bdaSmrg  include_directories : [inc_root, inc_drm],
6300a23bdaSmrg  link_with : libdrm,
647cdc0497Smrg  c_args : libdrm_c_args,
6500a23bdaSmrg)
6600a23bdaSmrg
6700a23bdaSmrgrandom = executable(
6800a23bdaSmrg  'random',
6900a23bdaSmrg  files('random.c'),
7000a23bdaSmrg  include_directories : [inc_root, inc_drm],
7100a23bdaSmrg  link_with : libdrm,
727cdc0497Smrg  c_args : libdrm_c_args,
7300a23bdaSmrg)
7400a23bdaSmrg
7500a23bdaSmrgdrmdevice = executable(
7600a23bdaSmrg  'drmdevice',
7700a23bdaSmrg  files('drmdevice.c'),
7800a23bdaSmrg  include_directories : [inc_root, inc_drm],
7900a23bdaSmrg  link_with : libdrm,
807cdc0497Smrg  c_args : libdrm_c_args,
8100a23bdaSmrg)
8200a23bdaSmrg
8300a23bdaSmrgtest('random', random, timeout : 240)
8400a23bdaSmrgtest('hash', hash)
8500a23bdaSmrgtest('drmsl', drmsl)
8600a23bdaSmrgtest('drmdevice', drmdevice)
87