1d722e3fbSopenharmony_ci# Copyright © 2017 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_tegra = include_directories('../../tegra')
22d722e3fbSopenharmony_ci
23d722e3fbSopenharmony_cilibdrm_test = static_library(
24d722e3fbSopenharmony_ci  'drm-test',
25d722e3fbSopenharmony_ci  [files('drm-test.c', 'drm-test.h'), config_file ],
26d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
27d722e3fbSopenharmony_ci  link_with : libdrm,
28d722e3fbSopenharmony_ci)
29d722e3fbSopenharmony_ci
30d722e3fbSopenharmony_cilibdrm_test_tegra = static_library(
31d722e3fbSopenharmony_ci  'drm-test-tegra',
32d722e3fbSopenharmony_ci  [files(
33d722e3fbSopenharmony_ci    'drm-test-tegra.c',
34d722e3fbSopenharmony_ci    'drm-test-tegra.h',
35d722e3fbSopenharmony_ci    'vic.c',
36d722e3fbSopenharmony_ci    'vic.h',
37d722e3fbSopenharmony_ci    'vic30.c',
38d722e3fbSopenharmony_ci    'vic30.h',
39d722e3fbSopenharmony_ci    'vic40.c',
40d722e3fbSopenharmony_ci    'vic40.h',
41d722e3fbSopenharmony_ci    'vic41.c',
42d722e3fbSopenharmony_ci    'vic41.h',
43d722e3fbSopenharmony_ci    'vic42.c',
44d722e3fbSopenharmony_ci    'vic42.h',
45d722e3fbSopenharmony_ci  ), config_file ],
46d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
47d722e3fbSopenharmony_ci  link_with : libdrm,
48d722e3fbSopenharmony_ci)
49d722e3fbSopenharmony_ci
50d722e3fbSopenharmony_ciopenclose = executable(
51d722e3fbSopenharmony_ci  'tegra-openclose',
52d722e3fbSopenharmony_ci  files('openclose.c'),
53d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
54d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
55d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra],
56d722e3fbSopenharmony_ci  install : with_install_tests,
57d722e3fbSopenharmony_ci)
58d722e3fbSopenharmony_ci
59d722e3fbSopenharmony_cigr2d_fill = executable(
60d722e3fbSopenharmony_ci  'tegra-gr2d-fill',
61d722e3fbSopenharmony_ci  files('gr2d-fill.c'),
62d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
63d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
64d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
65d722e3fbSopenharmony_ci  install : with_install_tests,
66d722e3fbSopenharmony_ci)
67d722e3fbSopenharmony_ci
68d722e3fbSopenharmony_cisyncpt_wait = executable(
69d722e3fbSopenharmony_ci  'tegra-syncpt-wait',
70d722e3fbSopenharmony_ci  files('syncpt-wait.c'),
71d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
72d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
73d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
74d722e3fbSopenharmony_ci  install : with_install_tests,
75d722e3fbSopenharmony_ci)
76d722e3fbSopenharmony_ci
77d722e3fbSopenharmony_cisyncpt_timeout = executable(
78d722e3fbSopenharmony_ci  'tegra-syncpt-timeout',
79d722e3fbSopenharmony_ci  files('syncpt-timeout.c'),
80d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
81d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
82d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
83d722e3fbSopenharmony_ci  install : with_install_tests,
84d722e3fbSopenharmony_ci)
85d722e3fbSopenharmony_ci
86d722e3fbSopenharmony_civic_clear = executable(
87d722e3fbSopenharmony_ci  'tegra-vic-clear',
88d722e3fbSopenharmony_ci  files('vic-clear.c'),
89d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
90d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
91d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
92d722e3fbSopenharmony_ci  install : with_install_tests,
93d722e3fbSopenharmony_ci)
94d722e3fbSopenharmony_ci
95d722e3fbSopenharmony_civic_blit = executable(
96d722e3fbSopenharmony_ci  'tegra-vic-blit',
97d722e3fbSopenharmony_ci  files('vic-blit.c'),
98d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
99d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
100d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
101d722e3fbSopenharmony_ci  install : with_install_tests,
102d722e3fbSopenharmony_ci)
103d722e3fbSopenharmony_ci
104d722e3fbSopenharmony_civic_flip = executable(
105d722e3fbSopenharmony_ci  'tegra-vic-flip',
106d722e3fbSopenharmony_ci  files('vic-flip.c'),
107d722e3fbSopenharmony_ci  include_directories : [inc_root, inc_drm, inc_tegra],
108d722e3fbSopenharmony_ci  c_args : libdrm_c_args,
109d722e3fbSopenharmony_ci  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
110d722e3fbSopenharmony_ci  install : with_install_tests,
111d722e3fbSopenharmony_ci)
112