1# Copyright 2015-2016 Intel Corporation 2# 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files (the "Software"), 5# to deal in the Software without restriction, including without limitation 6# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7# and/or sell copies of the Software, and to permit persons to whom the 8# Software is furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice (including the next 11# paragraph) shall be included in all copies or substantial portions of the 12# Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20# IN THE SOFTWARE. 21 22noinst_LTLIBRARIES += compiler/libintel_compiler.la 23 24compiler_libintel_compiler_la_CPPFLAGS = \ 25 -I$(top_builddir)/src/intel/compiler \ 26 -I$(top_srcdir)/src/intel/compiler \ 27 $(AM_CPPFLAGS) 28 29compiler_libintel_compiler_la_SOURCES = \ 30 $(COMPILER_FILES) \ 31 $(COMPILER_GENERATED_FILES) 32 33BUILT_SOURCES += $(COMPILER_GENERATED_FILES) 34 35compiler/brw_nir_trig_workarounds.c: compiler/brw_nir_trig_workarounds.py \ 36 $(top_srcdir)/src/compiler/nir/nir_algebraic.py 37 $(MKDIR_GEN) 38 $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/compiler/brw_nir_trig_workarounds.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false) 39 40EXTRA_DIST += \ 41 compiler/brw_nir_trig_workarounds.py 42 43# ---------------------------------------------------------------------------- 44# Tests 45# ---------------------------------------------------------------------------- 46 47TEST_LIBS = \ 48 $(top_builddir)/src/gtest/libgtest.la \ 49 compiler/libintel_compiler.la \ 50 common/libintel_common.la \ 51 $(top_builddir)/src/compiler/nir/libnir.la \ 52 $(top_builddir)/src/util/libmesautil.la \ 53 $(top_builddir)/src/intel/isl/libisl.la \ 54 $(PTHREAD_LIBS) \ 55 $(DLOPEN_LIBS) 56 57COMPILER_TESTS = \ 58 compiler/test_fs_cmod_propagation \ 59 compiler/test_fs_copy_propagation \ 60 compiler/test_fs_saturate_propagation \ 61 compiler/test_eu_compact \ 62 compiler/test_eu_validate \ 63 compiler/test_vf_float_conversions \ 64 compiler/test_vec4_cmod_propagation \ 65 compiler/test_vec4_copy_propagation \ 66 compiler/test_vec4_register_coalesce 67 68TESTS += $(COMPILER_TESTS) 69check_PROGRAMS += $(COMPILER_TESTS) 70 71compiler_test_fs_cmod_propagation_SOURCES = \ 72 compiler/test_fs_cmod_propagation.cpp 73compiler_test_fs_cmod_propagation_LDADD = $(TEST_LIBS) 74 75compiler_test_fs_copy_propagation_SOURCES = \ 76 compiler/test_fs_copy_propagation.cpp 77compiler_test_fs_copy_propagation_LDADD = $(TEST_LIBS) 78 79compiler_test_fs_saturate_propagation_SOURCES = \ 80 compiler/test_fs_saturate_propagation.cpp 81compiler_test_fs_saturate_propagation_LDADD = $(TEST_LIBS) 82 83compiler_test_vf_float_conversions_SOURCES = \ 84 compiler/test_vf_float_conversions.cpp 85compiler_test_vf_float_conversions_LDADD = $(TEST_LIBS) 86 87compiler_test_vec4_register_coalesce_SOURCES = \ 88 compiler/test_vec4_register_coalesce.cpp 89compiler_test_vec4_register_coalesce_LDADD = $(TEST_LIBS) 90 91compiler_test_vec4_copy_propagation_SOURCES = \ 92 compiler/test_vec4_copy_propagation.cpp 93compiler_test_vec4_copy_propagation_LDADD = $(TEST_LIBS) 94 95compiler_test_vec4_cmod_propagation_SOURCES = \ 96 compiler/test_vec4_cmod_propagation.cpp 97compiler_test_vec4_cmod_propagation_LDADD = $(TEST_LIBS) 98 99# Strictly speaking this is neither a C++ test nor using gtest - we can address 100# address that at a later point. Until then, this allows us a to simplify things. 101compiler_test_eu_compact_SOURCES = \ 102 compiler/test_eu_compact.cpp 103compiler_test_eu_compact_LDADD = $(TEST_LIBS) 104 105compiler_test_eu_validate_SOURCES = \ 106 compiler/test_eu_validate.cpp 107compiler_test_eu_validate_LDADD = $(TEST_LIBS) 108