summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-07-23 13:18:55 +0800
committerPeng Wu <alexepico@gmail.com>2012-07-23 13:18:55 +0800
commit513c1bef69ad0813f31bf9b8cf0287bb266035ef (patch)
tree63f01dc377d38dbee1157f00f09040e569751039
parente4ddf0f70d56628e7a1cbfba521a0120c6447c4c (diff)
downloadibus-libpinyin-513c1bef69ad0813f31bf9b8cf0287bb266035ef.tar.gz
update autoconf for stroke editor
-rw-r--r--configure.ac11
-rw-r--r--src/Makefile.am5
-rw-r--r--src/PYStrokeEditor.cc1
3 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 65a5687..81e7396 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,6 +193,16 @@ AC_ARG_ENABLE(english-input-mode,
AM_CONDITIONAL(IBUS_BUILD_ENGLISH_INPUT_MODE, [test x"$enable_english_input_mode" = x"yes"])
+# --disable-stroke-input-mode
+AC_ARG_ENABLE(stroke-input-mode,
+ AS_HELP_STRING([--disable-stroke-input-mode],
+ [do not build stroke input mode]),
+ [enable_stroke_input_mode=$enableval],
+ [enable_stroke_input_mode=yes]
+)
+
+AM_CONDITIONAL(IBUS_BUILD_STROKE_INPUT_MODE, [test x"$enable_stroke_input_mode" = x"yes"])
+
# OUTPUT files
AC_CONFIG_FILES([ po/Makefile.in
Makefile
@@ -218,6 +228,7 @@ Build options:
Use opencc $enable_opencc
Use libpinyin $enable_libpinyin
Build lua extension $enable_lua_extension
+ Build stroke input mode $enable_stroke_input_mode
Build english input mode $enable_english_input_mode
])
diff --git a/src/Makefile.am b/src/Makefile.am
index 9aa39f9..8144a75 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -78,6 +78,7 @@ ibus_engine_libpinyin_h_sources = \
PYText.h \
PYTypes.h \
PYUtil.h \
+ PYStrokeEditor.h \
PYEnglishEditor.h \
PYLibPinyin.h \
PYPPhoneticEditor.h \
@@ -109,6 +110,10 @@ if IBUS_BUILD_LUA_EXTENSION
ibus_engine_libpinyin_c_sources += PYExtEditor.cc
endif
+if IBUS_BUILD_STROKE_INPUT_MODE
+ibus_engine_libpinyin_c_sources += PYStrokeEditor.cc
+endif
+
if IBUS_BUILD_ENGLISH_INPUT_MODE
ibus_engine_libpinyin_c_sources += PYEnglishEditor.cc
endif
diff --git a/src/PYStrokeEditor.cc b/src/PYStrokeEditor.cc
index c7208d0..694fd64 100644
--- a/src/PYStrokeEditor.cc
+++ b/src/PYStrokeEditor.cc
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include "PYStrokeEditor.h"
#include <string.h>
#include <string>
#include <vector>