summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2012-04-17 10:25:58 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2012-04-17 10:25:58 +0900
commitf2e266da9e60bc5318ea98ad40c8f83a8bb06026 (patch)
treee440967c83cf2cefd785605c22194764ee703c2f
parent75df361698c7be58e33993784f2d6b9b0957fd44 (diff)
downloadibus-f2e266da9e60bc5318ea98ad40c8f83a8bb06026.tar.gz
Add options to disable to build UI and engines.
TEST=Linux desktop Review URL: https://codereview.appspot.com/6031059
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac26
2 files changed, 33 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2b5aae28..6d6e5517 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,13 @@
NULL =
+if ENABLE_UI
UI_DIR = ui
+endif
+
+if ENABLE_ENGINE
+ENGINE_DIR = engine
+endif
if ENABLE_SETUP
SETUP_DIR = setup
@@ -44,12 +50,12 @@ SUBDIRS = \
util \
conf \
client \
- engine \
tools \
data \
m4 \
po \
docs \
+ $(ENGINE_DIR) \
$(UI_DIR) \
$(DAEMON_DIR) \
$(PYTHON_LIB_DIRS) \
diff --git a/configure.ac b/configure.ac
index 4c8b7f90..8498efe2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -469,6 +469,30 @@ else
enable_surrounding_text="no (disabled, use --enable-surrounding-text to enable)"
fi
+# --disable-ui
+AC_ARG_ENABLE(ui,
+ AS_HELP_STRING([--disable-ui],
+ [Disable ibus default user interface]),
+ [enable_ui=$enableval],
+ [enable_ui=yes]
+)
+AM_CONDITIONAL([ENABLE_UI], [test x"$enable_ui" = x"yes"])
+if test x"$enable_ui" = x"yes"; then
+ enable_ui="yes (enabled, use --disable-ui to disable)"
+fi
+
+# --disable-engine
+AC_ARG_ENABLE(engine,
+ AS_HELP_STRING([--disable-engine],
+ [Disable ibus simple engine]),
+ [enable_engine=$enableval],
+ [enable_engine=yes]
+)
+AM_CONDITIONAL([ENABLE_ENGINE], [test x"$enable_engine" = x"yes"])
+if test x"$enable_engine" = x"yes"; then
+ enable_engine="yes (enabled, use --disable-engine to disable)"
+fi
+
# Check iso-codes.
PKG_CHECK_MODULES(ISOCODES, [
iso-codes
@@ -543,6 +567,8 @@ Build options:
IBus-1.0.gir scannerflags "$IBUS_GIR_SCANNERFLAGS"
Build vala binding $enable_vala
Build document $enable_gtk_doc
+ Build UI $enable_ui
+ Build engine $enable_engine
Enable key snooper $enable_key_snooper
No snooper regexes "$NO_SNOOPER_APPS"
Panel icon "$IBUS_ICON_KEYBOARD"