2 # Copyright © 2012 Jon TURNEY
3 # Copyright (C) 2015 Intel Corporation
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the "Software"),
7 # to deal in the Software without restriction, including without limitation
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 # and/or sell copies of the Software, and to permit persons to whom the
10 # Software is furnished to do so, subject to the following conditions:
12 # The above copyright notice and this permission notice (including the next
13 # paragraph) shall be included in all copies or substantial portions of the
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 noinst_LTLIBRARIES += nir/libnir.la
26 nir_libnir_la_LIBADD = \
29 nir_libnir_la_SOURCES = \
32 $(SPIRV_GENERATED_FILES) \
33 $(NIR_GENERATED_FILES)
35 nir/nir_builder_opcodes.h: nir/nir_opcodes.py nir/nir_builder_opcodes_h.py nir/nir_intrinsics.py
37 $(PYTHON_GEN) $(srcdir)/nir/nir_builder_opcodes_h.py > $@ || ($(RM) $@; false)
39 nir/nir_constant_expressions.c: nir/nir_opcodes.py nir/nir_constant_expressions.py
41 $(PYTHON_GEN) $(srcdir)/nir/nir_constant_expressions.py > $@ || ($(RM) $@; false)
43 nir/nir_intrinsics.h: nir/nir_intrinsics.py nir/nir_intrinsics_h.py
45 $(PYTHON_GEN) $(srcdir)/nir/nir_intrinsics_h.py --outdir nir || ($(RM) $@; false)
47 nir/nir_intrinsics.c: nir/nir_intrinsics.py nir/nir_intrinsics_c.py
49 $(PYTHON_GEN) $(srcdir)/nir/nir_intrinsics_c.py --outdir nir || ($(RM) $@; false)
51 nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
53 $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_h.py > $@ || ($(RM) $@; false)
55 nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
57 $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_c.py > $@ || ($(RM) $@; false)
59 nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py
61 $(PYTHON_GEN) $(srcdir)/nir/nir_opt_algebraic.py > $@ || ($(RM) $@; false)
64 nir/tests/control_flow_tests \
67 NIR_TESTS_CPPFLAGS = \
69 -I$(top_builddir)/src/compiler/nir \
70 -I$(top_srcdir)/src/compiler/nir
74 $(top_builddir)/src/gtest/libgtest.la \
76 $(top_builddir)/src/util/libmesautil.la \
80 nir_tests_control_flow_tests_CPPFLAGS = $(NIR_TESTS_CPPFLAGS)
81 nir_tests_control_flow_tests_SOURCES = nir/tests/control_flow_tests.cpp
82 nir_tests_control_flow_tests_CFLAGS = $(NIR_TESTS_CFLAGS)
83 nir_tests_control_flow_tests_LDADD = $(NIR_TESTS_LDADD)
85 nir_tests_vars_tests_CPPFLAGS = $(NIR_TESTS_CPPFLAGS)
86 nir_tests_vars_tests_SOURCES = nir/tests/vars_tests.cpp
87 nir_tests_vars_tests_CFLAGS = $(NIR_TESTS_CFLAGS)
88 nir_tests_vars_tests_LDADD = $(NIR_TESTS_LDADD)
90 check_SCRIPTS = nir/tests/algebraic_parser_test.sh
93 nir/tests/control_flow_tests \
94 nir/tests/vars_tests \
95 nir/tests/algebraic_parser_test.sh
99 $(NIR_GENERATED_FILES)
102 $(NIR_GENERATED_FILES)
105 nir/nir_algebraic.py \
106 nir/nir_builder_opcodes_h.py \
107 nir/nir_constant_expressions.py \
108 nir/nir_intrinsics.py \
109 nir/nir_intrinsics_c.py \
110 nir/nir_intrinsics_h.py \
112 nir/nir_opcodes_c.py \
113 nir/nir_opcodes_h.py \
114 nir/nir_opt_algebraic.py \