patch-libsecret_tests_Makefile_am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --- libsecret-0.16.orig/libsecret/tests/Makefile.am 2013-08-26 17:42:16.000000000 +0200
  2. +++ libsecret-0.16/libsecret/tests/Makefile.am 2013-11-21 15:35:42.000000000 +0100
  3. @@ -73,59 +73,6 @@ PY_TESTS = \
  4. PY_ENV = $(JS_ENV)
  5. -# ------------------------------------------------------------------
  6. -# VALA
  7. -
  8. -VALA_V = $(VALA_V_$(V))
  9. -VALA_V_ = $(VALA_V_$(AM_DEFAULT_VERBOSITY))
  10. -VALA_V_0 = @echo " VALAC " $^;
  11. -
  12. -VALA_TESTS = \
  13. - test-vala-lang \
  14. - test-vala-unstable \
  15. - $(NULL)
  16. -
  17. -VALA_FLAGS = \
  18. - --vapidir=$(builddir)/.. \
  19. - --pkg gio-2.0
  20. -
  21. -VALA_TESTS_VAPIS = \
  22. - $(builddir)/../libsecret-unstable.vapi \
  23. - $(builddir)/../libsecret-@SECRET_MAJOR@.vapi \
  24. - $(builddir)/mock-service-0.vapi
  25. -
  26. -VALA_SRCS = $(VALA_TESTS:=.vala)
  27. -VALA_C_SRCS = $(VALA_SRCS:.vala=.c)
  28. -
  29. -if HAVE_VALAC
  30. -$(VALA_C_SRCS): %.c: %.vala $(VALA_TESTS_VAPIS)
  31. - $(VALA_V)$(VALAC) $(VALA_FLAGS) $(VALA_TESTS_VAPIS) -C $<
  32. -endif
  33. -
  34. -test_vala_lang_CFLAGS = -w
  35. -test_vala_unstable_CFLAGS = -DSECRET_WITH_UNSTABLE -w
  36. -
  37. -nodist_test_vala_lang_SOURCES = test-vala-lang.c
  38. -nodist_test_vala_unstable_SOURCES = test-vala-unstable.c
  39. -
  40. -DISTCLEANFILES = $(VALA_C_SRCS)
  41. -
  42. -test-vala: $(VALA_TESTS)
  43. - @gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(VALA_TESTS)
  44. -
  45. -VALA_TEST_TARGET =
  46. -
  47. -if HAVE_INTROSPECTION
  48. -if ENABLE_VAPIGEN
  49. -if HAVE_VALAC
  50. -
  51. -VALA_TEST_TARGET += test-vala
  52. -
  53. -TEST_PROGS += $(VALA_TESTS)
  54. -
  55. -endif # HAVE_VALAC
  56. -endif # ENABLE_VAPIGEN
  57. -endif # HAVE_INTROSPECTION
  58. test-c: $(C_TESTS)
  59. @gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(C_TESTS)
  60. @@ -138,50 +85,6 @@ test-py:
  61. test: test-c test-py test-js $(VALA_TEST_TARGET)
  62. -# ------------------------------------------------------------------
  63. -# INTROSPECTION
  64. -
  65. -if HAVE_INTROSPECTION
  66. -
  67. -include $(INTROSPECTION_MAKEFILE)
  68. -
  69. -INTROSPECTION_GIRS = MockService-0.gir
  70. -INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all --add-include-path=$(srcdir) --add-include-path=.
  71. -INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
  72. -
  73. -MockService-0.gir: libmock_service.la
  74. -
  75. -MockService_0_gir_PACKAGES = gobject-2.0 gio-2.0
  76. -MockService_0_gir_EXPORT_PACKAGES = mock-service-0
  77. -MockService_0_gir_INCLUDES = GObject-2.0 Gio-2.0
  78. -MockService_0_gir_LIBS = libmock_service.la
  79. -MockService_0_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(srcdir)
  80. -MockService_0_gir_FILES = $(libmock_service_la_SOURCES)
  81. -MockService_0_gir_SCANNERFLAGS = --c-include "mock-service.h"
  82. -
  83. -noinst_DATA = \
  84. - $(INTROSPECTION_GIRS) \
  85. - $(INTROSPECTION_GIRS:.gir=.typelib)
  86. -
  87. -if ENABLE_VAPIGEN
  88. -include $(VAPIGEN_MAKEFILE)
  89. -
  90. -mock-service-0.vapi: MockService-0.gir $(builddir)/../libsecret-@SECRET_MAJOR@.vapi
  91. -
  92. -VAPIGEN_VAPIS = mock-service-0.vapi
  93. -
  94. -mock_service_0_vapi_DEPS = gio-2.0 libsecret-@SECRET_MAJOR@
  95. -mock_service_0_vapi_METADATADIRS = $(builddir)
  96. -mock_service_0_vapi_VAPIDIRS = $(builddir) $(builddir)/..
  97. -mock_service_0_vapi_FILES = MockService-0.gir
  98. -
  99. -vapidir = $(datadir)/vala/vapi
  100. -vapi_DATA = mock-service-0.vapi
  101. -
  102. -noinst_DATA += $(VAPIGEN_VAPIS)
  103. -
  104. -endif # ENABLE_VAPIGEN
  105. -endif # HAVE_INTROSPECTION
  106. #--------------------------------------------------------------------