Add --enable-gtkapp configury option
Change-Id: Ib805581663aeec62d713f87ca72ab3cfe95db79fprivate/kendy/mobile
parent
8ceb8950e8
commit
fd758496a5
13
configure.ac
13
configure.ac
|
@ -57,6 +57,12 @@ AC_ARG_ENABLE([iosapp],
|
|||
[Use in a tree where the only purpose is to build the HTML and CSS stuff
|
||||
to be copied to a Mac where the iOS app is being built.]))
|
||||
|
||||
AC_ARG_ENABLE([gtkapp],
|
||||
AS_HELP_STRING([--enable-gtkapp],
|
||||
[Use in a tree where the only purpose is to build the gtk+ "app" that is supposed
|
||||
to work similarly to the iOS app, from the JavaScript and the pseudo WebSocket
|
||||
message plumbing point of view.]))
|
||||
|
||||
AC_ARG_ENABLE([seccomp],
|
||||
AS_HELP_STRING([--disable-seccomp],
|
||||
[Disable use of linux/seccomp.h header when kernel on target system does not support it.
|
||||
|
@ -165,6 +171,13 @@ fi
|
|||
AC_SUBST(ENABLE_IOSAPP)
|
||||
AM_CONDITIONAL([ENABLE_IOSAPP], [test "$ENABLE_IOSAPP" = "true"])
|
||||
|
||||
ENABLE_GTKAPP=
|
||||
if test "$enable_gtkapp" = "yes"; then
|
||||
ENABLE_GTKAPP=true
|
||||
fi
|
||||
AC_SUBST(ENABLE_GTKAPP)
|
||||
AM_CONDITIONAL([ENABLE_GTKAPP], [test "$ENABLE_GTKAPP" = "true"])
|
||||
|
||||
MAX_CONNECTIONS=20
|
||||
AS_IF([test -n "$with_max_connections" && test "$with_max_connections" -gt "0"],
|
||||
[MAX_CONNECTIONS="$with_max_connections"])
|
||||
|
|
|
@ -13,8 +13,10 @@ L10N_PO = $(wildcard $(srcdir)/po/*.po)
|
|||
# HTTP to load the message catalog .json files.
|
||||
|
||||
if !ENABLE_IOSAPP
|
||||
if !ENABLE_GTKAPP
|
||||
L10N_JSON = $(patsubst $(srcdir)/po/%.po,$(builddir)/dist/l10n/%.json,$(L10N_PO))
|
||||
endif
|
||||
endif
|
||||
|
||||
JQUERY_UI_IMAGE_PATH = node_modules/jquery-ui/themes/ui-lightness/images
|
||||
JQUERY_UI_IMAGES = $(wildcard $(JQUERY_UI_IMAGE_PATH)/*.png)
|
||||
|
@ -93,9 +95,11 @@ NODE_MODULES_JS =\
|
|||
node_modules/vex-js/js/vex.dialog.js
|
||||
|
||||
if !ENABLE_IOSAPP
|
||||
if !ENABLE_GTKAPP
|
||||
NODE_MODULES_JS +=\
|
||||
node_modules/l10n-for-node/l10n.js
|
||||
endif
|
||||
endif
|
||||
|
||||
NODE_MODULES_JS_SRC = $(patsubst %.js,$(builddir)/%.js,$(NODE_MODULES_JS))
|
||||
NODE_MODULES_JS_DST = $(patsubst %.js,$(builddir)/dist/%.js,$(NODE_MODULES_JS))
|
||||
|
@ -202,6 +206,7 @@ $(builddir)/dist/loleaflet.html: $(srcdir)/html/loleaflet.html.m4 $(LOLEAFLET_HT
|
|||
@echo "Generating loleaflet.html..."
|
||||
@m4 -E -DDEBUG=$(ENABLE_DEBUG) \
|
||||
-DIOSAPP=$(ENABLE_IOSAPP) \
|
||||
-DGTKAPP=$(ENABLE_GTKAPP) \
|
||||
-DLOLEAFLET_CSS="$(subst $(SPACE),$(COMMA),$(LOLEAFLET_CSS_M4))" \
|
||||
-DLOLEAFLET_JS="$(subst $(SPACE),$(COMMA),$(GLOBAL_JS) $(NODE_MODULES_JS) \
|
||||
$(call LOLEAFLET_JS,$(srcdir)/build/build.js) \
|
||||
|
|
Loading…
Reference in New Issue