glsl: Cross validate variable's invariance by explicit invariance only
[mesa.git] / src / compiler / Makefile.spirv.am
1 #
2 # Copyright (C) 2017 Intel Corporation
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the "Software"),
6 # to deal in the Software without restriction, including without limitation
7 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 # and/or sell copies of the Software, and to permit persons to whom the
9 # Software is furnished to do so, subject to the following conditions:
10 #
11 # The above copyright notice and this permission notice (including the next
12 # paragraph) shall be included in all copies or substantial portions of the
13 # Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 # IN THE SOFTWARE.
22
23 spirv/spirv_info.c: spirv/spirv_info_c.py spirv/spirv.core.grammar.json
24 $(MKDIR_GEN)
25 $(PYTHON_GEN) $(srcdir)/spirv/spirv_info_c.py $(srcdir)/spirv/spirv.core.grammar.json $@ || ($(RM) $@; false)
26
27 spirv/vtn_gather_types.c: spirv/vtn_gather_types_c.py spirv/spirv.core.grammar.json
28 $(MKDIR_GEN)
29 $(PYTHON_GEN) $(srcdir)/spirv/vtn_gather_types_c.py $(srcdir)/spirv/spirv.core.grammar.json $@ || ($(RM) $@; false)
30
31 noinst_PROGRAMS += spirv2nir
32
33 spirv2nir_SOURCES = \
34 spirv/spirv2nir.c
35
36 spirv2nir_CPPFLAGS = \
37 $(AM_CPPFLAGS) \
38 -I$(top_builddir)/src/compiler/nir \
39 -I$(top_srcdir)/src/compiler/nir \
40 -I$(top_srcdir)/src/compiler/spirv
41
42 spirv2nir_LDADD = \
43 nir/libnir.la \
44 $(top_builddir)/src/util/libmesautil.la \
45 -lm \
46 $(PTHREAD_LIBS)
47
48 nodist_EXTRA_spirv2nir_SOURCES = dummy.cpp
49
50 BUILT_SOURCES += \
51 $(SPIRV_GENERATED_FILES)
52
53 CLEANFILES += \
54 $(SPIRV_GENERATED_FILES)
55
56 EXTRA_DIST += \
57 spirv/spirv_info_c.py \
58 spirv/spirv.core.grammar.json \
59 spirv/vtn_gather_types_c.py