meson: Build i965 and dri stack
[mesa.git] / src / compiler / glsl / tests / meson.build
1 # Copyright © 2017 Intel Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 glsl_blob_test = executable(
22 'blob_test',
23 'blob_test.c',
24 c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
25 include_directories : [inc_common, inc_glsl],
26 link_with : [libglsl],
27 )
28
29 glsl_cache_test = executable(
30 'cache_test',
31 'cache_test.c',
32 c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
33 include_directories : [inc_common, inc_glsl],
34 link_with : [libglsl],
35 dependencies : [dep_clock, dep_thread],
36 )
37
38 glsl_general_ir_test = executable(
39 'general_ir_test',
40 ['array_refcount_test.cpp', 'builtin_variable_test.cpp',
41 'invalidate_locations_test.cpp', 'general_ir_test.cpp',
42 'lower_int64_test.cpp', 'opt_add_neg_to_sub_test.cpp', 'varyings_test.cpp',
43 ir_expression_operation_h],
44 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
45 include_directories : [inc_common, inc_glsl],
46 link_with : [libglsl, libglsl_standalone, libglsl_util],
47 dependencies : [dep_clock, dep_thread, idep_gtest],
48 )
49
50 glsl_uniform_initializer_test = executable(
51 'uniform_initializer_test',
52 ['copy_constant_to_storage_tests.cpp', 'set_uniform_initializer_tests.cpp',
53 'uniform_initializer_utils.cpp', 'uniform_initializer_utils.h',
54 ir_expression_operation_h],
55 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
56 include_directories : [inc_common, inc_glsl],
57 link_with : [libglsl, libglsl_util],
58 dependencies : [dep_thread, idep_gtest],
59 )
60
61 glsl_sampler_types_test = executable(
62 'sampler_types_test',
63 ['sampler_types_test.cpp', ir_expression_operation_h],
64 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
65 include_directories : [inc_common, inc_glsl],
66 link_with : [libglsl, libglsl_util],
67 dependencies : [dep_thread, idep_gtest],
68 )
69
70 test('blob_test', glsl_blob_test)
71 test('cache_test', glsl_cache_test)
72 test('general_ir_test', glsl_general_ir_test)
73 test('uniform_initializer_test', glsl_uniform_initializer_test)
74 test('sampler_types_test', glsl_sampler_types_test)
75
76 # TODO: figure out how to get the shell based tests to work?