GNUmakefile.am 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. stamp-webkittestrunner-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(Programs_WebKitTestRunner_SOURCES) $(Libraries_libTestRunnerInjectedBundle_la_SOURCES)
  2. $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/WebKitTestRunner $(GENSOURCES_WEBKIT2)/include gtk \
  3. && echo timestamp > $(@F)
  4. BUILT_SOURCES += $(top_builddir)/stamp-webkittestrunner-forwarding-headers
  5. if ENABLE_WEBKIT2
  6. noinst_PROGRAMS += \
  7. Programs/WebKitTestRunner
  8. endif
  9. Programs_WebKitTestRunner_SOURCES = \
  10. Tools/WebKitTestRunner/EventSenderProxy.h \
  11. Tools/WebKitTestRunner/gtk/main.cpp \
  12. Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp \
  13. Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp \
  14. Tools/WebKitTestRunner/gtk/TestControllerGtk.cpp \
  15. Tools/WebKitTestRunner/cairo/TestInvocationCairo.cpp \
  16. Tools/WebKitTestRunner/CyclicRedundancyCheck.cpp \
  17. Tools/WebKitTestRunner/CyclicRedundancyCheck.h \
  18. Tools/WebKitTestRunner/GeolocationProviderMock.cpp \
  19. Tools/WebKitTestRunner/GeolocationProviderMock.h \
  20. Tools/WebKitTestRunner/PixelDumpSupport.cpp \
  21. Tools/WebKitTestRunner/PixelDumpSupport.h \
  22. Tools/WebKitTestRunner/PlatformWebView.h \
  23. Tools/WebKitTestRunner/StringFunctions.h \
  24. Tools/WebKitTestRunner/TestController.cpp \
  25. Tools/WebKitTestRunner/TestController.h \
  26. Tools/WebKitTestRunner/TestInvocation.cpp \
  27. Tools/WebKitTestRunner/TestInvocation.h \
  28. Tools/WebKitTestRunner/WebNotificationProvider.cpp \
  29. Tools/WebKitTestRunner/WebNotificationProvider.h \
  30. Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
  31. Tools/WebKitTestRunner/WorkQueueManager.cpp \
  32. Tools/WebKitTestRunner/WorkQueueManager.h
  33. Programs_WebKitTestRunner_CPPFLAGS = \
  34. -include Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
  35. -I$(srcdir)/Tools/WebKitTestRunner \
  36. -I$(srcdir)/Source/WebCore/platform/gtk \
  37. -I$(top_builddir)/DerivedSources/WebKit2/include \
  38. $(global_cppflags) \
  39. $(javascriptcore_cppflags) \
  40. $(webcore_cppflags) \
  41. $(GLOBALDEPS_CFLAGS) \
  42. $(CAIRO_CFLAGS) \
  43. $(GTK_CFLAGS) \
  44. $(LIBSOUP_CFLAGS)
  45. Programs_WebKitTestRunner_CXXFLAGS = $(global_cxxflags)
  46. Programs_WebKitTestRunner_CFLAGS = $(global_cflags)
  47. Programs_WebKitTestRunner_LDADD = \
  48. libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
  49. libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
  50. $(GLOBALDEPS_LIBS) \
  51. $(CAIRO_LIBS) \
  52. $(GTK_LIBS) \
  53. $(GLIB_LIBS) \
  54. $(LIBSOUP_LIBS) \
  55. $(FREETYPE_LIBS) \
  56. $(WINMM_LIBS) \
  57. $(XRENDER_LIBS) \
  58. $(XT_LIBS)
  59. Programs_WebKitTestRunner_LDFLAGS = \
  60. -no-fast-install \
  61. -no-install
  62. # The InjectedBundle library allows the render process to load harness code.
  63. if ENABLE_WEBKIT2
  64. noinst_LTLIBRARIES += Libraries/libTestRunnerInjectedBundle.la
  65. endif
  66. webkittestrunner_built_sources += \
  67. DerivedSources/InjectedBundle/JSAccessibilityController.cpp \
  68. DerivedSources/InjectedBundle/JSAccessibilityTextMarker.cpp \
  69. DerivedSources/InjectedBundle/JSAccessibilityTextMarkerRange.cpp \
  70. DerivedSources/InjectedBundle/JSAccessibilityUIElement.cpp \
  71. DerivedSources/InjectedBundle/JSEventSendingController.cpp \
  72. DerivedSources/InjectedBundle/JSGCController.cpp \
  73. DerivedSources/InjectedBundle/JSTestRunner.cpp \
  74. DerivedSources/InjectedBundle/JSTextInputController.cpp
  75. nodist_Libraries_libTestRunnerInjectedBundle_la_SOURCES = $(webkittestrunner_built_sources)
  76. BUILT_SOURCES += $(webkittestrunner_built_sources)
  77. Libraries_libTestRunnerInjectedBundle_la_SOURCES = \
  78. Tools/WebKitTestRunner/InjectedBundle/AccessibilityController.cpp \
  79. Tools/WebKitTestRunner/InjectedBundle/AccessibilityController.h \
  80. Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.cpp \
  81. Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.h \
  82. Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.cpp \
  83. Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h \
  84. Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp \
  85. Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h \
  86. Tools/WebKitTestRunner/InjectedBundle/ActivateFonts.h \
  87. Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp \
  88. Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp \
  89. Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrappable.h \
  90. Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp \
  91. Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h \
  92. Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp \
  93. Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h \
  94. Tools/WebKitTestRunner/InjectedBundle/GCController.cpp \
  95. Tools/WebKitTestRunner/InjectedBundle/GCController.h \
  96. Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp \
  97. Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp \
  98. Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.cpp \
  99. Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.h \
  100. Tools/WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp \
  101. Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp \
  102. Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h \
  103. Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp \
  104. Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp \
  105. Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h \
  106. Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp \
  107. Tools/WebKitTestRunner/InjectedBundle/TestRunner.h \
  108. Tools/WebKitTestRunner/InjectedBundle/TextInputController.cpp \
  109. Tools/WebKitTestRunner/InjectedBundle/TextInputController.h
  110. Libraries_libTestRunnerInjectedBundle_la_LIBADD = \
  111. libWebCoreInternals.la
  112. Libraries_libTestRunnerInjectedBundle_la_LDFLAGS = \
  113. -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
  114. $(no_undefined) \
  115. -avoid-version \
  116. -module
  117. Libraries_libTestRunnerInjectedBundle_la_CPPFLAGS = \
  118. -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\" \
  119. -DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
  120. -include Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
  121. -I$(srcdir)/Tools/WebKitTestRunner \
  122. -I$(srcdir)/Tools/WebKitTestRunner/InjectedBundle \
  123. -I$(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings \
  124. -I$(srcdir)/Source/WebCore/testing/js \
  125. -I$(top_builddir)/DerivedSources/InjectedBundle \
  126. -I$(top_builddir)/DerivedSources/WebKit2/include \
  127. $(global_cppflags) \
  128. $(javascriptcore_cppflags) \
  129. $(webcore_cppflags) \
  130. $(GLOBALDEPS_CFLAGS) \
  131. $(CAIRO_CFLAGS) \
  132. $(GLIB_CFLAGS) \
  133. $(GTK_CFLAGS) \
  134. $(LIBSOUP_CFLAGS)
  135. Libraries_libTestRunnerInjectedBundle_la_CXXFLAGS = $(global_cxxflags)
  136. Libraries_libTestRunnerInjectedBundle_la_CFLAGS = $(global_cflags)
  137. code_generation_dependencies = \
  138. Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm \
  139. Source/WebCore/bindings/scripts/CodeGenerator.pm \
  140. Source/WebCore/bindings/scripts/IDLParser.pm \
  141. Source/WebCore/bindings/scripts/InFilesParser.pm \
  142. Source/WebCore/bindings/scripts/generate-bindings.pl
  143. DerivedSources/InjectedBundle/JS%.cpp: Tools/WebKitTestRunner/InjectedBundle/Bindings/%.idl $(code_generation_dependencies)
  144. $(AM_V_GEN)$(PERL) \
  145. -I $(srcdir)/Source/WebCore/bindings/scripts \
  146. -I $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings \
  147. $(srcdir)/Source/WebCore/bindings/scripts/generate-bindings.pl \
  148. --defines \"\" --generator TestRunner \
  149. --include $(srcdir)/Tools/InjectedBundle/Bindings \
  150. --outputDir $(top_builddir)/DerivedSources/InjectedBundle \
  151. $<
  152. EXTRA_DIST += \
  153. $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm \
  154. $(srcdir)/Source/WebCore/bindings/scripts/CodeGenerator.pm \
  155. $(srcdir)/Source/WebCore/bindings/scripts/IDLParser.pm \
  156. $(srcdir)/Source/WebCore/bindings/scripts/InFilesParser.pm \
  157. $(srcdir)/Source/WebCore/bindings/scripts/generate-bindings.pl \
  158. $(shell ls $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings/*.idl)