Blame tests/meson.build

Packit Service 103f6b
# Copyright © 2017-2018 Intel Corporation
Packit Service 103f6b
Packit Service 103f6b
# Permission is hereby granted, free of charge, to any person obtaining a copy
Packit Service 103f6b
# of this software and associated documentation files (the "Software"), to deal
Packit Service 103f6b
# in the Software without restriction, including without limitation the rights
Packit Service 103f6b
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Packit Service 103f6b
# copies of the Software, and to permit persons to whom the Software is
Packit Service 103f6b
# furnished to do so, subject to the following conditions:
Packit Service 103f6b
Packit Service 103f6b
# The above copyright notice and this permission notice shall be included in
Packit Service 103f6b
# all copies or substantial portions of the Software.
Packit Service 103f6b
Packit Service 103f6b
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service 103f6b
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service 103f6b
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit Service 103f6b
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service 103f6b
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit Service 103f6b
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit Service 103f6b
# SOFTWARE.
Packit Service 103f6b
Packit Service 103f6b
inc_tests = include_directories('.')
Packit Service 103f6b
Packit Service 103f6b
subdir('util')
Packit Service 103f6b
subdir('kms')
Packit Service 103f6b
subdir('modeprint')
Packit Service 103f6b
subdir('proptest')
Packit Service 103f6b
subdir('modetest')
Packit Service 103f6b
subdir('vbltest')
Packit Service 103f6b
if with_libkms
Packit Service 103f6b
  subdir('kmstest')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_radeon
Packit Service 103f6b
  subdir('radeon')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_amdgpu
Packit Service 103f6b
  subdir('amdgpu')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_exynos
Packit Service 103f6b
  subdir('exynos')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_tegra
Packit Service 103f6b
  subdir('tegra')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_etnaviv
Packit Service 103f6b
  subdir('etnaviv')
Packit Service 103f6b
endif
Packit Service 103f6b
if with_nouveau
Packit Service 103f6b
  subdir('nouveau')
Packit Service 103f6b
endif
Packit Service 103f6b
Packit Service 103f6b
drmsl = executable(
Packit Service 103f6b
  'drmsl',
Packit Service 103f6b
  files('drmsl.c'),
Packit Service 103f6b
  include_directories : [inc_root, inc_drm],
Packit Service 103f6b
  link_with : libdrm,
Packit Service 103f6b
  c_args : libdrm_c_args,
Packit Service 103f6b
)
Packit Service 103f6b
Packit Service 103f6b
hash = executable(
Packit Service 103f6b
  'hash',
Packit Service 103f6b
  files('hash.c'),
Packit Service 103f6b
  include_directories : [inc_root, inc_drm],
Packit Service 103f6b
  link_with : libdrm,
Packit Service 103f6b
  c_args : libdrm_c_args,
Packit Service 103f6b
)
Packit Service 103f6b
Packit Service 103f6b
drmdevice = executable(
Packit Service 103f6b
  'drmdevice',
Packit Service 103f6b
  files('drmdevice.c'),
Packit Service 103f6b
  include_directories : [inc_root, inc_drm],
Packit Service 103f6b
  link_with : libdrm,
Packit Service 103f6b
  c_args : libdrm_c_args,
Packit Service 103f6b
  install : with_install_tests,
Packit Service 103f6b
)
Packit Service 103f6b
Packit Service 103f6b
test('hash', hash)
Packit Service 103f6b
test('drmsl', drmsl)
Packit Service 103f6b
test('drmdevice', drmdevice)