1d722e3fbSopenharmony_ci# Copyright © 2017-2018 Intel Corporation
2d722e3fbSopenharmony_ci
3d722e3fbSopenharmony_ci# Permission is hereby granted, free of charge, to any person obtaining a copy
4d722e3fbSopenharmony_ci# of this software and associated documentation files (the "Software"), to deal
5d722e3fbSopenharmony_ci# in the Software without restriction, including without limitation the rights
6d722e3fbSopenharmony_ci# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7d722e3fbSopenharmony_ci# copies of the Software, and to permit persons to whom the Software is
8d722e3fbSopenharmony_ci# furnished to do so, subject to the following conditions:
9d722e3fbSopenharmony_ci
10d722e3fbSopenharmony_ci# The above copyright notice and this permission notice shall be included in
11d722e3fbSopenharmony_ci# all copies or substantial portions of the Software.
12d722e3fbSopenharmony_ci
13d722e3fbSopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14d722e3fbSopenharmony_ci# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15d722e3fbSopenharmony_ci# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16d722e3fbSopenharmony_ci# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17d722e3fbSopenharmony_ci# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18d722e3fbSopenharmony_ci# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19d722e3fbSopenharmony_ci# SOFTWARE.
20d722e3fbSopenharmony_ci
21d722e3fbSopenharmony_ciinc_tests = include_directories('.')
22d722e3fbSopenharmony_ci
23d722e3fbSopenharmony_cisubdir('util')
24d722e3fbSopenharmony_cisubdir('modeprint')
25d722e3fbSopenharmony_cisubdir('proptest')
26d722e3fbSopenharmony_cisubdir('modetest')
27d722e3fbSopenharmony_cisubdir('vbltest')
28d722e3fbSopenharmony_ciif with_radeon
29d722e3fbSopenharmony_ci  subdir('radeon')
30d722e3fbSopenharmony_ciendif
31d722e3fbSopenharmony_ciif with_amdgpu
32d722e3fbSopenharmony_ci  subdir('amdgpu')
33d722e3fbSopenharmony_ciendif
34d722e3fbSopenharmony_ciif with_exynos
35d722e3fbSopenharmony_ci  subdir('exynos')
36d722e3fbSopenharmony_ciendif
37d722e3fbSopenharmony_ciif with_tegra
38d722e3fbSopenharmony_ci  subdir('tegra')
39d722e3fbSopenharmony_ciendif
40d722e3fbSopenharmony_ciif with_etnaviv
41d722e3fbSopenharmony_ci  subdir('etnaviv')
42d722e3fbSopenharmony_ciendif
43d722e3fbSopenharmony_ciif with_nouveau
44d722e3fbSopenharmony_ci  subdir('nouveau')
45d722e3fbSopenharmony_ciendif
46d722e3fbSopenharmony_ci
47d722e3fbSopenharmony_cidrmsl = executable(
48d722e3fbSopenharmony_ci  'drmsl',
49d722e3fbSopenharmony_ci  files('drmsl.c'),
50d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm],
51d722e3fbSopenharmony_ci  link_with : libdrm,
52d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
53d722e3fbSopenharmony_ci)
54d722e3fbSopenharmony_ci
55d722e3fbSopenharmony_cihash = executable(
56d722e3fbSopenharmony_ci  'hash',
57d722e3fbSopenharmony_ci  files('hash.c'),
58d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm],
59d722e3fbSopenharmony_ci  link_with : libdrm,
60d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
61d722e3fbSopenharmony_ci)
62d722e3fbSopenharmony_ci
63d722e3fbSopenharmony_cidrmdevice = executable(
64d722e3fbSopenharmony_ci  'drmdevice',
65d722e3fbSopenharmony_ci  files('drmdevice.c'),
66d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm],
67d722e3fbSopenharmony_ci  link_with : libdrm,
68d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
69d722e3fbSopenharmony_ci  install : with_install_tests,
70d722e3fbSopenharmony_ci)
71d722e3fbSopenharmony_ci
72d722e3fbSopenharmony_citest('hash', hash)
73d722e3fbSopenharmony_citest('drmsl', drmsl)
74d722e3fbSopenharmony_citest('drmdevice', drmdevice)
75