xref: /aosp_15_r20/external/libdrm/tests/tegra/meson.build (revision 7688df22e49036ff52a766b7101da3a49edadb8c)
1*7688df22SAndroid Build Coastguard Worker# Copyright © 2017 Intel Corporation
2*7688df22SAndroid Build Coastguard Worker
3*7688df22SAndroid Build Coastguard Worker# Permission is hereby granted, free of charge, to any person obtaining a copy
4*7688df22SAndroid Build Coastguard Worker# of this software and associated documentation files (the "Software"), to deal
5*7688df22SAndroid Build Coastguard Worker# in the Software without restriction, including without limitation the rights
6*7688df22SAndroid Build Coastguard Worker# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7*7688df22SAndroid Build Coastguard Worker# copies of the Software, and to permit persons to whom the Software is
8*7688df22SAndroid Build Coastguard Worker# furnished to do so, subject to the following conditions:
9*7688df22SAndroid Build Coastguard Worker
10*7688df22SAndroid Build Coastguard Worker# The above copyright notice and this permission notice shall be included in
11*7688df22SAndroid Build Coastguard Worker# all copies or substantial portions of the Software.
12*7688df22SAndroid Build Coastguard Worker
13*7688df22SAndroid Build Coastguard Worker# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14*7688df22SAndroid Build Coastguard Worker# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15*7688df22SAndroid Build Coastguard Worker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16*7688df22SAndroid Build Coastguard Worker# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17*7688df22SAndroid Build Coastguard Worker# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18*7688df22SAndroid Build Coastguard Worker# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19*7688df22SAndroid Build Coastguard Worker# SOFTWARE.
20*7688df22SAndroid Build Coastguard Worker
21*7688df22SAndroid Build Coastguard Workerinc_tegra = include_directories('../../tegra')
22*7688df22SAndroid Build Coastguard Worker
23*7688df22SAndroid Build Coastguard Workerlibdrm_test = static_library(
24*7688df22SAndroid Build Coastguard Worker  'drm-test',
25*7688df22SAndroid Build Coastguard Worker  [files('drm-test.c', 'drm-test.h'), config_file ],
26*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
27*7688df22SAndroid Build Coastguard Worker  link_with : libdrm,
28*7688df22SAndroid Build Coastguard Worker)
29*7688df22SAndroid Build Coastguard Worker
30*7688df22SAndroid Build Coastguard Workerlibdrm_test_tegra = static_library(
31*7688df22SAndroid Build Coastguard Worker  'drm-test-tegra',
32*7688df22SAndroid Build Coastguard Worker  [files(
33*7688df22SAndroid Build Coastguard Worker    'drm-test-tegra.c',
34*7688df22SAndroid Build Coastguard Worker    'drm-test-tegra.h',
35*7688df22SAndroid Build Coastguard Worker    'vic.c',
36*7688df22SAndroid Build Coastguard Worker    'vic.h',
37*7688df22SAndroid Build Coastguard Worker    'vic30.c',
38*7688df22SAndroid Build Coastguard Worker    'vic30.h',
39*7688df22SAndroid Build Coastguard Worker    'vic40.c',
40*7688df22SAndroid Build Coastguard Worker    'vic40.h',
41*7688df22SAndroid Build Coastguard Worker    'vic41.c',
42*7688df22SAndroid Build Coastguard Worker    'vic41.h',
43*7688df22SAndroid Build Coastguard Worker    'vic42.c',
44*7688df22SAndroid Build Coastguard Worker    'vic42.h',
45*7688df22SAndroid Build Coastguard Worker  ), config_file ],
46*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
47*7688df22SAndroid Build Coastguard Worker  link_with : libdrm,
48*7688df22SAndroid Build Coastguard Worker)
49*7688df22SAndroid Build Coastguard Worker
50*7688df22SAndroid Build Coastguard Workeropenclose = executable(
51*7688df22SAndroid Build Coastguard Worker  'tegra-openclose',
52*7688df22SAndroid Build Coastguard Worker  files('openclose.c'),
53*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
54*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
55*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra],
56*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
57*7688df22SAndroid Build Coastguard Worker)
58*7688df22SAndroid Build Coastguard Worker
59*7688df22SAndroid Build Coastguard Workergr2d_fill = executable(
60*7688df22SAndroid Build Coastguard Worker  'tegra-gr2d-fill',
61*7688df22SAndroid Build Coastguard Worker  files('gr2d-fill.c'),
62*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
63*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
64*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
65*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
66*7688df22SAndroid Build Coastguard Worker)
67*7688df22SAndroid Build Coastguard Worker
68*7688df22SAndroid Build Coastguard Workersyncpt_wait = executable(
69*7688df22SAndroid Build Coastguard Worker  'tegra-syncpt-wait',
70*7688df22SAndroid Build Coastguard Worker  files('syncpt-wait.c'),
71*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
72*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
73*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
74*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
75*7688df22SAndroid Build Coastguard Worker)
76*7688df22SAndroid Build Coastguard Worker
77*7688df22SAndroid Build Coastguard Workersyncpt_timeout = executable(
78*7688df22SAndroid Build Coastguard Worker  'tegra-syncpt-timeout',
79*7688df22SAndroid Build Coastguard Worker  files('syncpt-timeout.c'),
80*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
81*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
82*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
83*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
84*7688df22SAndroid Build Coastguard Worker)
85*7688df22SAndroid Build Coastguard Worker
86*7688df22SAndroid Build Coastguard Workervic_clear = executable(
87*7688df22SAndroid Build Coastguard Worker  'tegra-vic-clear',
88*7688df22SAndroid Build Coastguard Worker  files('vic-clear.c'),
89*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
90*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
91*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
92*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
93*7688df22SAndroid Build Coastguard Worker)
94*7688df22SAndroid Build Coastguard Worker
95*7688df22SAndroid Build Coastguard Workervic_blit = executable(
96*7688df22SAndroid Build Coastguard Worker  'tegra-vic-blit',
97*7688df22SAndroid Build Coastguard Worker  files('vic-blit.c'),
98*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
99*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
100*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
101*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
102*7688df22SAndroid Build Coastguard Worker)
103*7688df22SAndroid Build Coastguard Worker
104*7688df22SAndroid Build Coastguard Workervic_flip = executable(
105*7688df22SAndroid Build Coastguard Worker  'tegra-vic-flip',
106*7688df22SAndroid Build Coastguard Worker  files('vic-flip.c'),
107*7688df22SAndroid Build Coastguard Worker  include_directories : [inc_root, inc_drm, inc_tegra],
108*7688df22SAndroid Build Coastguard Worker  c_args : libdrm_c_args,
109*7688df22SAndroid Build Coastguard Worker  link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
110*7688df22SAndroid Build Coastguard Worker  install : with_install_tests,
111*7688df22SAndroid Build Coastguard Worker)
112