Web Inspector: migrate text editor to mutation observers
[WebKit-https.git] / GNUmakefile.am
index 27d1b81..6fe667e 100644 (file)
@@ -27,7 +27,8 @@ VPATH = @srcdir@
 
 DISTCHECK_CONFIGURE_FLAGS = \
        --enable-introspection  \
-       --enable-gtk-doc
+       --enable-gtk-doc \
+       --enable-webkit2
 
 # Directory for autogenerated sources
 GENSOURCES := $(top_builddir)/DerivedSources
@@ -37,26 +38,43 @@ GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit
 GENSOURCES_WEBKIT2 := $(top_builddir)/DerivedSources/WebKit2
 GENPROGRAMS := $(top_builddir)/Programs
 GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector
-WebCore := $(srcdir)/WebCore
-WebKit := $(srcdir)/WebKit/gtk
-WebKit2 := $(srcdir)/WebKit2
+WebCore := $(srcdir)/Source/WebCore
+WebKit := $(srcdir)/Source/WebKit/gtk
+WebKit2 := $(srcdir)/Source/WebKit2
+pkgconfigdir := $(libdir)/pkgconfig
+libwebkitgtkincludedir := $(prefix)/include/webkitgtk-@WEBKITGTK_API_VERSION@
 
 # Libraries and support components
 bin_PROGRAMS :=
 noinst_PROGRAMS :=
+libexec_PROGRAMS :=
 noinst_HEADERS :=
 noinst_LTLIBRARIES :=
 lib_LTLIBRARIES :=
 IDL_BINDINGS :=
 TEST_PROGS :=
 POFILES :=
+PO_LINGUAS :=
+USER_LINGUAS :=
+USE_LINGUAS :=
 MOFILES :=
+ALL_MOFILES :=
+feature_defines_defaults :=
+feature_defines_overrides :=
+feature_defines_unstable :=
+feature_defines :=
+dom_binding_idls :=
+wtf_sources :=
 javascriptcore_h_api :=
 javascriptcore_cppflags:=
+javascriptcore_cflags :=
 javascriptcore_sources :=
 javascriptcore_built_sources :=
 javascriptcore_built_nosources :=
+llint_nosources :=
+offlineasm_nosources :=
 webcore_cppflags :=
+webcore_modules_sources :=
 webcore_sources :=
 webcore_libadd :=
 webcore_built_sources :=
@@ -71,20 +89,45 @@ webkitgtk_cppflags :=
 webkitgtk_gdom_built_sources :=
 webkitgtk_built_sources :=
 webkitgtk_built_nosources :=
+webkit2_h_api :=
+webkit2_sources :=
 webkit2_built_sources :=
+webkit2gtk_h_api :=
+webkit2gtk_built_sources :=
+webkit2_plugin_process_sources :=
+webkit2_plugin_process_built_sources :=
+webkittestrunner_built_sources :=
+libwebcoreinternals_built_sources :=
+minibrowser_built_sources :=
 global_cppflags :=
 global_cflags :=
 global_cxxflags :=
 JSCORE_GIRSOURCES :=
 WEBKIT_GIRSOURCES :=
-FEATURE_DEFINES :=
 typelibsdir :=
 typelibs_DATA :=
 EXTRA_DIST :=
 BUILT_SOURCES :=
 CLEANFILES :=
+DOMAIN :=
 DISTCLEANFILES :=
 MAINTAINERCLEANFILES :=
+pkgconfig_DATA :=
+
+# We do not care at all about this implicit built-in make rules,
+# disable them to save some build time
+%: %.c
+%: %.cpp
+%: %.o
+(%): %
+%.out: %
+%.c: %.w %.ch
+%.tex: %.w %.ch
+%:: %,v
+%:: RCS/%,v
+%:: RCS/%
+%:: s.%
+%:: SCCS/s.%
 
 global_cppflags += \
        -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
@@ -108,48 +151,39 @@ if OS_GNU
 version_script = -Wl,--version-script,$(srcdir)/Source/autotools/symbols.filter
 endif
 
-# Convenience libraries
-noinst_LTLIBRARIES += \
-       libJavaScriptCore.la
-
-nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
-       $(javascriptcore_built_nosources)
-
-nodist_libJavaScriptCore_la_SOURCES = \
-       $(javascriptcore_built_sources)
-
-libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
-libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
-
-libJavaScriptCore_la_SOURCES = \
-       $(javascriptcore_sources)
-
-libJavaScriptCore_la_LIBADD = \
-       $(UNICODE_LIBS) \
-       $(GLIB_LIBS) \
-       -lpthread
-
-libJavaScriptCore_la_CXXFLAGS = \
-       $(global_cxxflags) \
-       $(libJavaScriptCore_la_CFLAGS)
-
-libJavaScriptCore_la_CFLAGS = \
-       -fstrict-aliasing \
-       -O3 \
-       $(global_cflags) \
-       $(GLIB_CFLAGS) \
-       $(UNICODE_CFLAGS)
-
-libJavaScriptCore_la_CPPFLAGS = \
-       $(global_cppflags) \
-       $(javascriptcore_cppflags)
-
 # Extra checks and flags
 global_cppflags += \
        -DBUILDING_CAIRO__=1 \
        -DBUILDING_GTK__=1 \
        -DWTF_CHANGES
 
+if ENABLE_WEBKIT2
+global_cppflags += \
+       -DBUILDING_WEBKIT2__=1
+endif
+
+# For the Gtk port we want to use XP_UNIX both in X11 and Mac
+if TARGET_WIN32
+global_cppflags += \
+       -DXP_WIN
+else
+global_cppflags += \
+       -DXP_UNIX
+endif
+
+# Add MOZ_X11 for X11 targets only
+if TARGET_X11
+global_cppflags += \
+       -DMOZ_X11
+endif
+
+# Use the wide character version of win32 API by default
+if TARGET_WIN32
+global_cppflags += \
+       -DUNICODE \
+       -D_UNICODE
+endif
+
 if USE_ICU_UNICODE
 global_cppflags += \
        -DWTF_USE_ICU_UNICODE=1
@@ -170,6 +204,54 @@ global_cppflags += \
        -DWTF_USE_GSTREAMER=1
 endif
 
+if USE_FARSTREAM
+global_cppflags += \
+       -DWTF_USE_FARSTREAM=1
+endif
+
+if USE_ACCELERATED_COMPOSITING
+global_cppflags += \
+       -DWTF_USE_ACCELERATED_COMPOSITING=1 \
+       -DENABLE_3D_RENDERING=1
+endif
+
+if USE_TEXTURE_MAPPER_CAIRO
+global_cppflags += \
+       -DWTF_USE_TEXTURE_MAPPER=1 \
+       -DWTF_USE_TEXTURE_MAPPER_CAIRO=1
+endif
+
+if USE_TEXTURE_MAPPER_GL
+global_cppflags += \
+       -DWTF_USE_TEXTURE_MAPPER=1 \
+       -DWTF_USE_TEXTURE_MAPPER_GL=1
+endif
+
+if USE_CLUTTER
+global_cppflags += \
+       -DWTF_USE_CLUTTER=1
+endif
+
+if USE_GLX
+global_cppflags += \
+       -DWTF_USE_GLX=1
+endif
+
+if USE_EGL
+global_cppflags += \
+       -DWTF_USE_EGL=1
+endif
+
+if USE_GLES2
+global_cppflags += \
+       -DWTF_USE_OPENGL_ES_2=1
+endif
+
+if USE_OPENGL
+global_cppflags += \
+       -DWTF_USE_OPENGL=1
+endif
+
 # ----
 # GTK+ 2.x/3.x support
 # ----
@@ -182,7 +264,6 @@ if !ENABLE_DEBUG
 global_cppflags += -DNDEBUG
 else
 global_cppflags += \
-       -DG_DISABLE_DEPRECATED \
        -DGDK_PIXBUF_DISABLE_DEPRECATED \
        -DGDK_DISABLE_DEPRECATED \
        -DGTK_DISABLE_DEPRECATED \
@@ -200,20 +281,26 @@ endif
 
 EXTRA_DIST += \
        $(srcdir)/Source/autotools/symbols.filter \
-       $(srcdir)/gtk-doc.make \
-       $(srcdir)/WebKit/LICENSE
+       $(srcdir)/Source/WebKit/LICENSE
 
 # Include module makefiles
-include JavaScriptCore/GNUmakefile.am
-include WebCore/GNUmakefile.am
-if ENABLE_WEBKIT2
-include WebKit2/GNUmakefile.am
-else
-include WebKit/gtk/GNUmakefile.am
-include WebCore/bindings/gobject/GNUmakefile.am
+include Source/WTF/GNUmakefile.am
+include Source/JavaScriptCore/GNUmakefile.am
+include Source/WebCore/GNUmakefile.am
+include Source/WebKit/gtk/GNUmakefile.am
+include Source/WebCore/bindings/gobject/GNUmakefile.am
 include Tools/GNUmakefile.am
-include WebKit/gtk/po/GNUmakefile.am
-endif
+include Source/WebKit/gtk/po/GNUmakefile.am
+include Tools/DumpRenderTree/gtk/GNUmakefile.ImageDiff.am
+
+include Source/WebKit2/GNUmakefile.am
+include Source/WebKit2/UIProcess/API/gtk/tests/GNUmakefile.am
+include Tools/MiniBrowser/gtk/GNUmakefile.am
+include Tools/WebKitTestRunner/GNUmakefile.am
+include Source/ThirdParty/gtest/GNUmakefile.am
+include Tools/TestWebKitAPI/GNUmakefile.am
+# [GTK] Refactor the translations now that we have webkit2
+# https://bugs.webkit.org/show_bug.cgi?id=55153
 
 # Autogenerated sources
 BUILT_SOURCES += \
@@ -222,7 +309,10 @@ BUILT_SOURCES += \
        $(webcore_built_sources) \
        $(webcore_built_nosources) \
        $(webkitgtk_built_sources) \
-       $(webkitgtk_built_nosources)
+       $(webkitgtk_built_nosources) \
+       $(webkit2_built_sources) \
+       $(webkit2gtk_built_sources) \
+       $(webkit2_plugin_process_built_sources)
 
 DISTCLEANFILES += \
        $(CLEANFILES) \
@@ -247,8 +337,8 @@ MAINTAINERCLEANFILES += \
 
 # Older automake versions (1.7) place Plo files in a different place so we need
 # to create the output directory manually.
-all-local:
-       $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
+all-local: stamp-po
+       $(MKDIR_P) $(top_builddir)/$(DEPDIR)/DerivedSources
 
 # remove built sources and program directories
 clean-local:
@@ -257,3 +347,17 @@ clean-local:
 maintainer-clean-local: distclean-local
 distclean-local:
        -rm -rf $(GENSOURCES) $(GENPROGRAMS)
+
+dist-hook: doc-dist-hook
+doc-dist-hook: docs-build.stamp
+       cp $(WebKit)/NEWS $(distdir)
+       @mkdir -p $(distdir)/Documentation/webkitgtk/html
+       @mkdir -p $(distdir)/Documentation/webkitgtk/tmpl
+       @-cp ./Documentation/webkitgtk/tmpl/*.sgml $(distdir)/Documentation/webkitgtk/tmpl
+       @cp ./Documentation/webkitgtk/html/* $(distdir)/Documentation/webkitgtk/html
+if ENABLE_WEBKIT2
+       @mkdir -p $(distdir)/Documentation/webkit2gtk/html
+       @mkdir -p $(distdir)/Documentation/webkit2gtk/tmpl
+       @-cp ./Documentation/webkit2gtk/tmpl/*.sgml $(distdir)/Documentation/webkit2gtk/tmpl
+       @cp ./Documentation/webkit2gtk/html/* $(distdir)/Documentation/webkit2gtk/html
+endif