summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2015-08-07 15:59:54 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2015-08-07 17:42:25 -0700
commit8c837e660853abd03c97a98815f73146eb57c010 (patch)
treee84e1da4c347a7b32884eddb706b008ab9ba6278 /Makefile.am
parentf2ae518dd264861746558970199def6d34325a4c (diff)
Create a parallel version of WebHelper2 for WebKit2-3.0
We cannot switch eos-virtual-school to WebKit2-4.0 because of regressions, but we already committed to using WebHelper2 to localize it. This adds a version of WebHelper2 that is compatible with WebKit2-3.0. [endlessm/eos-sdk#3430]
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am38
1 files changed, 37 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1444725..34f506f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -88,6 +88,7 @@ DISTCLEANFILES += @EOS_SDK_API_NAME@.pc
webhelper_sources = \
webhelper/webhelper.js \
webhelper/webhelper2.js \
+ webhelper/webhelper2_old.js \
$(NULL)
gjsmodulesdir = $(datadir)/gjs-1.0
@@ -96,7 +97,10 @@ webhelper_privatedir = $(webhelperdir)/webhelper_private
dist_webhelper_DATA = \
$(webhelper_sources) \
$(NULL)
-dist_webhelper_private_DATA = webhelper/webhelper_private/config.js
+dist_webhelper_private_DATA = \
+ webhelper/webhelper_private/common.js \
+ webhelper/webhelper_private/config.js \
+ $(NULL)
EOS_JS_COVERAGE_FILES = $(webhelper_sources)
@@ -123,6 +127,28 @@ wh2extension_la_CPPFLAGS = @WEBHELPER2_EXTENSION_CFLAGS@
wh2extension_la_LIBADD = @WEBHELPER2_EXTENSION_LIBS@
wh2extension_la_LDFLAGS = -module -avoid-version -no-undefined
+# WebKit2-3.0 version
+
+lib_LTLIBRARIES += libwebhelper2oldprivate.la
+libwebhelper2oldprivate_la_SOURCES = \
+ webhelper/lib/wh2private.c \
+ webhelper/lib/wh2private.h \
+ $(NULL)
+libwebhelper2oldprivate_la_CPPFLAGS = @WEBHELPER2_OLD_PRIVATE_CFLAGS@
+libwebhelper2oldprivate_la_LIBADD = @WEBHELPER2_OLD_PRIVATE_LIBS@
+libwebhelper2oldprivate_la_LDFLAGS = -avoid-version
+
+webhelper2oldextensionsdir = $(libexecdir)/webhelper2old
+webhelper2oldextensions_LTLIBRARIES = wh2oldextension.la
+wh2oldextension_la_SOURCES = \
+ webhelper/webextensions/wh2extension.c \
+ webhelper/webextensions/wh2jscutil.c \
+ webhelper/webextensions/wh2jscutil.h \
+ $(NULL)
+wh2oldextension_la_CPPFLAGS = @WEBHELPER2_OLD_EXTENSION_CFLAGS@
+wh2oldextension_la_LIBADD = @WEBHELPER2_OLD_EXTENSION_LIBS@
+wh2oldextension_la_LDFLAGS = -module -avoid-version -no-undefined
+
# # # INTROSPECTION FILES # # #
-include $(INTROSPECTION_MAKEFILE)
@@ -158,6 +184,16 @@ WebHelper2Private_1_0_gir_LIBS = libwebhelper2private.la
WebHelper2Private_1_0_gir_FILES = $(libwebhelper2private_la_SOURCES)
INTROSPECTION_GIRS += WebHelper2Private-1.0.gir
+WebHelper2OldPrivate-1.0.gir: libwebhelper2oldprivate.la
+WebHelper2OldPrivate_1_0_gir_INCLUDES = GObject-2.0 GLib-2.0 WebKit2-3.0
+WebHelper2OldPrivate_1_0_gir_SCANNERFLAGS = \
+ --identifier-prefix=Wh2 \
+ --symbol-prefix=wh2 \
+ $(NULL)
+WebHelper2OldPrivate_1_0_gir_LIBS = libwebhelper2oldprivate.la
+WebHelper2OldPrivate_1_0_gir_FILES = $(libwebhelper2oldprivate_la_SOURCES)
+INTROSPECTION_GIRS += WebHelper2OldPrivate-1.0.gir
+
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)