Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.nir.am 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #
  2. # Copyright © 2012 Jon TURNEY
  3. # Copyright (C) 2015 Intel Corporation
  4. #
  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:
  11. #
  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
  14. # Software.
  15. #
  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
  22. # IN THE SOFTWARE.
  23. noinst_LTLIBRARIES += nir/libnir.la
  24. nir_libnir_la_LIBADD = \
  25. libcompiler.la
  26. nir_libnir_la_SOURCES = \
  27. $(NIR_FILES) \
  28. $(SPIRV_FILES) \
  29. $(SPIRV_GENERATED_FILES) \
  30. $(NIR_GENERATED_FILES)
  31. nir/nir_builder_opcodes.h: nir/nir_opcodes.py nir/nir_builder_opcodes_h.py nir/nir_intrinsics.py
  32. $(MKDIR_GEN)
  33. $(PYTHON_GEN) $(srcdir)/nir/nir_builder_opcodes_h.py > $@ || ($(RM) $@; false)
  34. nir/nir_constant_expressions.c: nir/nir_opcodes.py nir/nir_constant_expressions.py
  35. $(MKDIR_GEN)
  36. $(PYTHON_GEN) $(srcdir)/nir/nir_constant_expressions.py > $@ || ($(RM) $@; false)
  37. nir/nir_intrinsics.h: nir/nir_intrinsics.py nir/nir_intrinsics_h.py
  38. $(MKDIR_GEN)
  39. $(PYTHON_GEN) $(srcdir)/nir/nir_intrinsics_h.py --outdir nir || ($(RM) $@; false)
  40. nir/nir_intrinsics.c: nir/nir_intrinsics.py nir/nir_intrinsics_c.py
  41. $(MKDIR_GEN)
  42. $(PYTHON_GEN) $(srcdir)/nir/nir_intrinsics_c.py --outdir nir || ($(RM) $@; false)
  43. nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
  44. $(MKDIR_GEN)
  45. $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_h.py > $@ || ($(RM) $@; false)
  46. nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
  47. $(MKDIR_GEN)
  48. $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_c.py > $@ || ($(RM) $@; false)
  49. nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py
  50. $(MKDIR_GEN)
  51. $(PYTHON_GEN) $(srcdir)/nir/nir_opt_algebraic.py > $@ || ($(RM) $@; false)
  52. check_PROGRAMS += nir/tests/control_flow_tests
  53. nir_tests_control_flow_tests_CPPFLAGS = \
  54. $(AM_CPPFLAGS) \
  55. -I$(top_builddir)/src/compiler/nir \
  56. -I$(top_srcdir)/src/compiler/nir
  57. nir_tests_control_flow_tests_SOURCES = \
  58. nir/tests/control_flow_tests.cpp
  59. nir_tests_control_flow_tests_CFLAGS = \
  60. $(PTHREAD_CFLAGS)
  61. nir_tests_control_flow_tests_LDADD = \
  62. $(top_builddir)/src/gtest/libgtest.la \
  63. nir/libnir.la \
  64. $(top_builddir)/src/util/libmesautil.la \
  65. $(PTHREAD_LIBS)
  66. TESTS += nir/tests/control_flow_tests
  67. BUILT_SOURCES += \
  68. $(NIR_GENERATED_FILES)
  69. CLEANFILES += \
  70. $(NIR_GENERATED_FILES)
  71. EXTRA_DIST += \
  72. nir/nir_algebraic.py \
  73. nir/nir_builder_opcodes_h.py \
  74. nir/nir_constant_expressions.py \
  75. nir/nir_intrinsics.py \
  76. nir/nir_intrinsics_c.py \
  77. nir/nir_intrinsics_h.py \
  78. nir/nir_opcodes.py \
  79. nir/nir_opcodes_c.py \
  80. nir/nir_opcodes_h.py \
  81. nir/nir_opt_algebraic.py \
  82. nir/tests \
  83. nir/README \
  84. SConscript.nir