101e04c3fSmrg# Copyright © 2018 Intel Corporation
201e04c3fSmrg
301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy
401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal
501e04c3fSmrg# in the Software without restriction, including without limitation the rights
601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is
801e04c3fSmrg# furnished to do so, subject to the following conditions:
901e04c3fSmrg
1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in
1101e04c3fSmrg# all copies or substantial portions of the Software.
1201e04c3fSmrg
1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1901e04c3fSmrg# SOFTWARE.
2001e04c3fSmrg
2101e04c3fSmrglibmesa_st_test_common = static_library(
2201e04c3fSmrg  'mesa_st_test_common',
2301e04c3fSmrg  ['st_tests_common.cpp', ir_expression_operation_h],
247ec681f3Smrg  include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
257ec681f3Smrg  dependencies : [idep_gtest, idep_mesautil],
267ec681f3Smrg)
277ec681f3Smrg
287ec681f3Smrgtest(
297ec681f3Smrg  'st_format_test',
307ec681f3Smrg  executable(
317ec681f3Smrg    'st_format_test',
327ec681f3Smrg    ['st_format.c'],
337ec681f3Smrg    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
347ec681f3Smrg    link_with : [
357ec681f3Smrg      libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
367ec681f3Smrg    ],
377ec681f3Smrg    dependencies : idep_mesautil,
387ec681f3Smrg  ),
397ec681f3Smrg  suite : ['st_mesa'],
4001e04c3fSmrg)
4101e04c3fSmrg
4201e04c3fSmrgtest(
4301e04c3fSmrg  'st_renumerate_test',
4401e04c3fSmrg  executable(
4501e04c3fSmrg    'st_renumerate_test',
4601e04c3fSmrg    ['test_glsl_to_tgsi_lifetime.cpp', ir_expression_operation_h],
477ec681f3Smrg    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
4801e04c3fSmrg    link_with : [
4901e04c3fSmrg      libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
5001e04c3fSmrg    ],
517ec681f3Smrg    dependencies : [idep_mesautil, idep_gtest],
52b9abf16eSmaya  ),
53b9abf16eSmaya  suite : ['st_mesa'],
5401e04c3fSmrg)
5501e04c3fSmrg
5601e04c3fSmrgtest(
5701e04c3fSmrg  'st-array-merge-test',
5801e04c3fSmrg  executable(
5901e04c3fSmrg    'st_array_merge_test',
6001e04c3fSmrg    ['test_glsl_to_tgsi_array_merge.cpp', ir_expression_operation_h],
617ec681f3Smrg    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
6201e04c3fSmrg    link_with : [
6301e04c3fSmrg      libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
6401e04c3fSmrg    ],
657ec681f3Smrg    dependencies : [idep_mesautil, idep_gtest],
66b9abf16eSmaya  ),
67b9abf16eSmaya  suite : ['st_mesa'],
6801e04c3fSmrg)
69