Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* cleanup automake

* add SCons build to gtk_standalone wrapper
  • Loading branch information...
commit a7a93cfa0d9bb1c2b350099d7e946d12ed878382 1 parent a22f7c9
@mikeandmore mikeandmore authored
View
2  AUTHORS
@@ -5,3 +5,5 @@ Kefu Chai <tchaikov@gmail.com>
Wei Xue <wei.xue@sun.com>
Leo Zheng <zym361@gmail.com>
chumsdock <vorbei@gmail.com>
+Mike Qin<mikeandmore@gmail.com>
+
View
56 wrapper/Makefile.am
@@ -1,56 +0,0 @@
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
-#
-# The contents of this file are subject to the terms of either the GNU Lesser
-# General Public License Version 2.1 only ("LGPL") or the Common Development and
-# Distribution License ("CDDL")(collectively, the "License"). You may not use this
-# file except in compliance with the License. You can obtain a copy of the CDDL at
-# http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at
-# http://www.opensource.org/licenses/lgpl-license.php. See the License for the
-# specific language governing permissions and limitations under the License. When
-# distributing the software, include this License Header Notice in each file and
-# include the full text of the License in the License file as well as the
-# following notice:
-#
-# NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
-# (CDDL)
-# For Covered Software in this distribution, this License shall be governed by the
-# laws of the State of California (excluding conflict-of-law provisions).
-# Any litigation relating to this License shall be subject to the jurisdiction of
-# the Federal Courts of the Northern District of California and the state courts
-# of the State of California, with venue lying in Santa Clara County, California.
-#
-# Contributor(s):
-#
-# If you wish your version of this file to be governed by only the CDDL or only
-# the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to
-# include this software in this distribution under the [CDDL or LGPL Version 2.1]
-# license." If you don't indicate a single choice of license, a recipient has the
-# option to distribute your version of this file under either the CDDL or the LGPL
-# Version 2.1, or to extend the choice of license to its licensees as provided
-# above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL
-# Version 2 license, then the option applies only if the new code is made subject
-# to such option by the copyright holder.
-#
-
-SUBDIRS =
-
-if WRAPPER_GTK_STANDALONE
-SUBDIRS += gtk_standalone
-endif
-
-if WRAPPER_SCIM
-SUBDIRS += scim
-endif
-
-if WRAPPER_IBUS
-SUBDIRS += ibus
-endif
-
-if WRAPPER_XIM
-SUBDIRS += xim
-endif
-
-DIST_SUBDIRS = gtk_standalone ibus xim
View
93 wrapper/gtk_standalone/Makefile.am
@@ -1,93 +0,0 @@
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
-#
-# The contents of this file are subject to the terms of either the GNU Lesser
-# General Public License Version 2.1 only ("LGPL") or the Common Development and
-# Distribution License ("CDDL")(collectively, the "License"). You may not use this
-# file except in compliance with the License. You can obtain a copy of the CDDL at
-# http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at
-# http://www.opensource.org/licenses/lgpl-license.php. See the License for the
-# specific language governing permissions and limitations under the License. When
-# distributing the software, include this License Header Notice in each file and
-# include the full text of the License in the License file as well as the
-# following notice:
-#
-# NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
-# (CDDL)
-# For Covered Software in this distribution, this License shall be governed by the
-# laws of the State of California (excluding conflict-of-law provisions).
-# Any litigation relating to this License shall be subject to the jurisdiction of
-# the Federal Courts of the Northern District of California and the state courts
-# of the State of California, with venue lying in Santa Clara County, California.
-#
-# Contributor(s):
-#
-# If you wish your version of this file to be governed by only the CDDL or only
-# the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to
-# include this software in this distribution under the [CDDL or LGPL Version 2.1]
-# license." If you don't indicate a single choice of license, a recipient has the
-# option to distribute your version of this file under either the CDDL or the LGPL
-# Version 2.1, or to extend the choice of license to its licensees as provided
-# above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL
-# Version 2 license, then the option applies only if the new code is made subject
-# to such option by the copyright holder.
-#
-SRC_DIR = $(top_srcdir)/src
-SUNPINYIN_SRC_DIR = $(top_srcdir)/src/ime-core
-SLM_SRC_DIR = $(top_srcdir)/src/slm
-LEXICON_SRC_DIR = $(top_srcdir)/src/lexicon
-PINYIN_SRC_DIR = $(top_srcdir)/src/pinyin
-
-GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`
-GTK_LIBS=`pkg-config --libs gtk+-2.0`
-
-noinst_PROGRAMS = sunpinyin
-
-sunpinyin_SOURCES = \
- $(SRC_DIR)/portability.cpp $(SRC_DIR)/portability.h \
- $(SLM_SRC_DIR)/slm.cpp $(SLM_SRC_DIR)/slm.h \
- $(LEXICON_SRC_DIR)/pytrie.cpp $(LEXICON_SRC_DIR)/pytrie.h \
- $(PINYIN_SRC_DIR)/pinyin_data.cpp $(PINYIN_SRC_DIR)/pinyin_data.h \
- $(PINYIN_SRC_DIR)/pinyin_seg.cpp $(PINYIN_SRC_DIR)/pinyin_seg.h \
- $(PINYIN_SRC_DIR)/shuangpin_data.cpp $(PINYIN_SRC_DIR)/shuangpin_data.h \
- $(PINYIN_SRC_DIR)/shuangpin_seg.cpp $(PINYIN_SRC_DIR)/shuangpin_seg.h \
- $(PINYIN_SRC_DIR)/datrie.h $(PINYIN_SRC_DIR)/datrie_impl.h \
- $(SUNPINYIN_SRC_DIR)/imi_context.cpp $(SUNPINYIN_SRC_DIR)/imi_context.h \
- $(SUNPINYIN_SRC_DIR)/imi_data.cpp $(SUNPINYIN_SRC_DIR)/imi_data.h \
- $(SUNPINYIN_SRC_DIR)/lattice_states.cpp $(SUNPINYIN_SRC_DIR)/lattice_states.h \
- $(SUNPINYIN_SRC_DIR)/imi_view.cpp $(SUNPINYIN_SRC_DIR)/imi_view.h \
- $(SUNPINYIN_SRC_DIR)/imi_uiobjects.cpp $(SUNPINYIN_SRC_DIR)/imi_uiobjects.h \
- $(SUNPINYIN_SRC_DIR)/imi_keys.h \
- $(SUNPINYIN_SRC_DIR)/imi_view_classic.cpp $(SUNPINYIN_SRC_DIR)/imi_view_classic.h \
- $(SUNPINYIN_SRC_DIR)/imi_winHandler.cpp $(SUNPINYIN_SRC_DIR)/imi_winHandler.h \
- $(SUNPINYIN_SRC_DIR)/ic_history.cpp $(SUNPINYIN_SRC_DIR)/ic_history.h \
- $(SUNPINYIN_SRC_DIR)/imi_funcobjs.cpp $(SUNPINYIN_SRC_DIR)/imi_funcobjs.h \
- $(SUNPINYIN_SRC_DIR)/imi_options.cpp $(SUNPINYIN_SRC_DIR)/imi_options.h \
- $(SUNPINYIN_SRC_DIR)/imi_option_event.cpp $(SUNPINYIN_SRC_DIR)/imi_option_event.h \
- $(SUNPINYIN_SRC_DIR)/imi_defines.h \
- $(SUNPINYIN_SRC_DIR)/userdict.cpp $(SUNPINYIN_SRC_DIR)/userdict.h \
- $(SUNPINYIN_SRC_DIR)/utils.h \
- imi_gtkwin.cpp imi_gtkwin.h sunpinyin.cpp
-
-sunpinyin_CXXFLAGS = -DGTK_STANDALONE -D_USE_RAW_PROBABILITY -DSUNPINYIN_DATA_DIR=\"../../data\"\
- -I$(top_srcdir) -I$(SUNPINYIN_SRC_DIR) -I$(LEXICON_SRC_DIR) -I$(SLM_SRC_DIR) -I$(PINYIN_SRC_DIR)\
- -I$(top_builddir) -I$(top_builddir)/src \
- $(GTK_CFLAGS) $(sqlite3_CFLAGS)
-
-sunpinyin_LDFLAGS = ${GTK_LIBS} $(sqlite3_LIBS)
-
-sunpinyin_LDADD = -lm
-
-all-local :
- if [ -L data ] ; then unlink data; fi
- if [ -L images ]; then unlink images; fi
- ln -s ${srcdir}/../../data data
- ln -s ${srcdir}/../../data images
-
-clean-local :
- if [ -L data ] ; then unlink data; fi
- if [ -L images ]; then unlink images; fi
- rm -f *.rpo
-
View
4 wrapper/gtk_standalone/SConstruct
@@ -0,0 +1,4 @@
+env=Environment(CFLAGS='-g', CXXFLAGS='-g')
+env.ParseConfig('pkg-config gtk+-2.0 sunpinyin-2.0 sqlite3 --cflags --libs')
+
+env.Program('sunpinyin', source=['imi_gtkwin.cpp', 'sunpinyin.cpp'])
View
1  wrapper/gtk_standalone/imi_gtkwin.h
@@ -44,6 +44,7 @@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
+#include <iconv.h>
#include "imi_winHandler.h"
View
36 wrapper/ibus/Makefile.am
@@ -1,36 +0,0 @@
-#
-# Copyright (c) 2009 Kov Chai <tchaikov@gmail.com>
-#
-# The contents of this file are subject to the terms of either the GNU Lesser
-# General Public License Version 2.1 only ("LGPL") or the Common Development and
-# Distribution License ("CDDL")(collectively, the "License"). You may not use this
-# file except in compliance with the License. You can obtain a copy of the CDDL at
-# http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at
-# http://www.opensource.org/licenses/lgpl-license.php. See the License for the
-# specific language governing permissions and limitations under the License. When
-# distributing the software, include this License Header Notice in each file and
-# include the full text of the License in the License file as well as the
-# following notice:
-#
-# NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
-# (CDDL)
-# For Covered Software in this distribution, this License shall be governed by the
-# laws of the State of California (excluding conflict-of-law provisions).
-# Any litigation relating to this License shall be subject to the jurisdiction of
-# the Federal Courts of the Northern District of California and the state courts
-# of the State of California, with venue lying in Santa Clara County, California.
-#
-# Contributor(s):
-#
-# If you wish your version of this file to be governed by only the CDDL or only
-# the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to
-# include this software in this distribution under the [CDDL or LGPL Version 2.1]
-# license." If you don't indicate a single choice of license, a recipient has the
-# option to distribute your version of this file under either the CDDL or the LGPL
-# Version 2.1, or to extend the choice of license to its licensees as provided
-# above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL
-# Version 2 license, then the option applies only if the new code is made subject
-# to such option by the copyright holder.
-#
-
-SUBDIRS = src setup data
View
18 wrapper/ibus/data/Makefile.am
@@ -1,18 +0,0 @@
-IBUS_SUNPINYIN_DATADIR = $(pkglibdir)/data
-IBUS_SUNPINYIN_ICONDIR = $(pkgdatadir)/icons
-
-ibus_sunpinyin_datadir = $(IBUS_SUNPINYIN_DATADIR)
-ibus_sunpinyin_data_DATA = $(top_builddir)/data/lm_sc.t3g \
- $(top_builddir)/data/pydict_sc.bin
-
-icondir = $(IBUS_SUNPINYIN_ICONDIR)
-icon_DATA = sunpinyin-logo.png \
- $(top_builddir)/data/eng.svg \
- $(top_builddir)/data/han.svg \
- $(top_builddir)/data/cnpunc.svg \
- $(top_builddir)/data/enpunc.svg \
- $(top_builddir)/data/fullwidth.svg \
- $(top_builddir)/data/halfwidth.svg \
- $(top_builddir)/data/setup.svg
-
-EXTRA_DIST = sunpinyin-logo.png
View
25 wrapper/ibus/setup/Makefile.am
@@ -1,25 +0,0 @@
-setup_sunpinyin_PYTHON = \
- main.py \
- setup.glade \
- $(NULL)
-
-nodist_setup_sunpinyin_PYTHON = config.py
-
-setup_sunpinyindir = $(datadir)/ibus-sunpinyin/setup
-
-libexec_SCRIPTS = ibus-setup-sunpinyin
-
-CLEANFILES = \
- *.pyc \
- $(NULL)
-
-EXTRA_DIST = \
- ibus-setup-sunpinyin.in \
- $(NULL)
-
-test:
- $(ENV) DBUS_DEBUG=true \
- LANG=en_US \
- PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
- $(PYTHON) $(srcdir)/main.py
-
View
176 wrapper/ibus/src/Makefile.am
@@ -1,176 +0,0 @@
-#
-# Copyright (c) 2009 Kov Chai <tchaikov@gmail.com>
-#
-# The contents of this file are subject to the terms of either the GNU Lesser
-# General Public License Version 2.1 only ("LGPL") or the Common Development and
-# Distribution License ("CDDL")(collectively, the "License"). You may not use this
-# file except in compliance with the License. You can obtain a copy of the CDDL at
-# http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at
-# http://www.opensource.org/licenses/lgpl-license.php. See the License for the
-# specific language governing permissions and limitations under the License. When
-# distributing the software, include this License Header Notice in each file and
-# include the full text of the License in the License file as well as the
-# following notice:
-#
-# NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
-# (CDDL)
-# For Covered Software in this distribution, this License shall be governed by the
-# laws of the State of California (excluding conflict-of-law provisions).
-# Any litigation relating to this License shall be subject to the jurisdiction of
-# the Federal Courts of the Northern District of California and the state courts
-# of the State of California, with venue lying in Santa Clara County, California.
-#
-# Contributor(s):
-#
-# If you wish your version of this file to be governed by only the CDDL or only
-# the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to
-# include this software in this distribution under the [CDDL or LGPL Version 2.1]
-# license." If you don't indicate a single choice of license, a recipient has the
-# option to distribute your version of this file under either the CDDL or the LGPL
-# Version 2.1, or to extend the choice of license to its licensees as provided
-# above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL
-# Version 2 license, then the option applies only if the new code is made subject
-# to such option by the copyright holder.
-#
-
-#
-# SunPinyin
-#
-SRC_DIR = $(top_srcdir)/src
-SUNPINYIN_SRC_DIR = $(top_srcdir)/src/ime-core
-SLM_SRC_DIR = $(top_srcdir)/src/slm
-LEXICON_SRC_DIR = $(top_srcdir)/src/lexicon
-PINYIN_SRC_DIR = $(top_srcdir)/src/pinyin
-IBUS_SUNPINYIN_DATADIR = $(pkglibdir)/data
-IBUS_SUNPINYIN_ICONDIR = $(pkgdatadir)/icons
-SUNPINYIN_USERDATA_DIR_PREFIX = .sunpinyin
-
-noinst_LTLIBRARIES = libsunpinyin.la
-
-libsunpinyin_la_SOURCES = \
- $(SRC_DIR)/portability.cpp $(SRC_DIR)/portability.h \
- $(SLM_SRC_DIR)/slm.cpp $(SLM_SRC_DIR)/slm.h \
- $(LEXICON_SRC_DIR)/pytrie.cpp $(LEXICON_SRC_DIR)/pytrie.h \
- $(PINYIN_SRC_DIR)/quanpin_trie.h \
- $(PINYIN_SRC_DIR)/pinyin_data.cpp $(PINYIN_SRC_DIR)/pinyin_data.h \
- $(PINYIN_SRC_DIR)/pinyin_seg.cpp $(PINYIN_SRC_DIR)/pinyin_seg.h \
- $(PINYIN_SRC_DIR)/shuangpin_data.cpp $(PINYIN_SRC_DIR)/shuangpin_data.h \
- $(PINYIN_SRC_DIR)/shuangpin_seg.cpp $(PINYIN_SRC_DIR)/shuangpin_seg.h \
- $(PINYIN_SRC_DIR)/datrie.h $(PINYIN_SRC_DIR)/datrie_impl.h \
- $(SUNPINYIN_SRC_DIR)/imi_context.cpp $(SUNPINYIN_SRC_DIR)/imi_context.h \
- $(SUNPINYIN_SRC_DIR)/imi_data.cpp $(SUNPINYIN_SRC_DIR)/imi_data.h \
- $(SUNPINYIN_SRC_DIR)/lattice_states.cpp $(SUNPINYIN_SRC_DIR)/lattice_states.h \
- $(SUNPINYIN_SRC_DIR)/imi_view.cpp $(SUNPINYIN_SRC_DIR)/imi_view.h \
- $(SUNPINYIN_SRC_DIR)/imi_uiobjects.cpp $(SUNPINYIN_SRC_DIR)/imi_uiobjects.h \
- $(SUNPINYIN_SRC_DIR)/imi_keys.h \
- $(SUNPINYIN_SRC_DIR)/imi_view_classic.cpp $(SUNPINYIN_SRC_DIR)/imi_view_classic.h \
- $(SUNPINYIN_SRC_DIR)/imi_winHandler.cpp $(SUNPINYIN_SRC_DIR)/imi_winHandler.h \
- $(SUNPINYIN_SRC_DIR)/ic_history.cpp $(SUNPINYIN_SRC_DIR)/ic_history.h \
- $(SUNPINYIN_SRC_DIR)/imi_funcobjs.cpp $(SUNPINYIN_SRC_DIR)/imi_funcobjs.h \
- $(SUNPINYIN_SRC_DIR)/imi_options.cpp $(SUNPINYIN_SRC_DIR)/imi_options.h \
- $(SUNPINYIN_SRC_DIR)/imi_option_event.cpp $(SUNPINYIN_SRC_DIR)/imi_option_event.h \
- $(SUNPINYIN_SRC_DIR)/imi_option_keys.h \
- $(SUNPINYIN_SRC_DIR)/imi_defines.h \
- $(SUNPINYIN_SRC_DIR)/userdict.cpp $(SUNPINYIN_SRC_DIR)/userdict.h \
- $(SUNPINYIN_SRC_DIR)/utils.h
-
-libsunpinyin_la_CXXFLAGS = \
- -D_USE_RAW_PROBABILITY \
- -DSUNPINYIN_DATA_DIR=\"$(IBUS_SUNPINYIN_DATADIR)\" \
- -DSUNPINYIN_USERDATA_DIR_PREFIX=\"$(SUNPINYIN_USERDATA_DIR_PREFIX)\" \
- -I$(top_srcdir) \
- -I$(SUNPINYIN_SRC_DIR) \
- -I$(LEXICON_SRC_DIR) \
- -I$(SLM_SRC_DIR) \
- -I$(PINYIN_SRC_DIR)\
- -I$(top_builddir) \
- -I$(top_builddir)/src \
- $(sqlite3_CFLAGS)
-
-libsunpinyin_la_LDFLAGS = \
- -no-undefined -avoid-version \
- $(LIBTOOL_EXPORT_OPTIONS) \
- @LTLIBINTL@ \
- $(sqlite3_LIBS)
-
-libsunpinyin_la_LIBADD = -lm
-
-#
-# ibus-sunpinyin
-#
-libexec_PROGRAMS = ibus-engine-sunpinyin
-
-ibus_engine_sunpinyin_SOURCES = \
- main.cpp \
- engine.cpp \
- engine.h \
- sunpinyin_engine.cpp \
- sunpinyin_engine.h \
- sunpinyin_engine_proxy.cpp \
- sunpinyin_engine_proxy.h \
- sunpinyin_lookup_table.cpp \
- sunpinyin_lookup_table.h \
- sunpinyin_property.cpp \
- sunpinyin_property.h \
- sunpinyin_config.cpp \
- sunpinyin_config.h \
- sunpinyin_config_keys.h \
- imi_ibus_win.cpp \
- imi_ibus_win.h \
- ibus_common.h pointer.h \
- ibus_portable.cpp \
- ibus_portable.h \
- $(NULL)
-
-ibus_engine_sunpinyin_CXXFLAGS = \
- @IBUS_CFLAGS@ \
- -DPKGDATADIR=\"$(pkgdatadir)\" \
- -I$(top_builddir)/src \
- -I$(SUNPINYIN_SRC_DIR) \
- -I$(PINYIN_SRC_DIR) \
- -I$(LEXICON_SRC_DIR) \
- -I$(SLM_SRC_DIR) \
- -DSUNPINYIN_USERDATA_DIR_PREFIX=\"$(SUNPINYIN_USERDATA_DIR_PREFIX)\" \
- -DSUNPINYIN_DATA_DIR=\"$(IBUS_SUNPINYIN_DATADIR)\" \
- -DSUNPINYIN_ICON_DIR=\"$(IBUS_SUNPINYIN_ICONDIR)\" \
- -DSUNPINYIN_LOCALEDIR=\"$(datadir)/locale\" \
- -DLIBEXECDIR=\"$(libexecdir)\" \
- -Wall \
- $(NULL)
-
-ibus_engine_sunpinyin_CFLAGS = \
- @IBUS_CFLAGS@ \
- -DPKGDATADIR=\"$(pkgdatadir)\" \
- $(NULL)
-
-ibus_engine_sunpinyin_LDFLAGS = \
- @IBUS_LIBS@ \
- $(NULL)
-
-ibus_engine_sunpinyin_LDADD = \
- libsunpinyin.la
-
-component_DATA = \
- sunpinyin.xml \
- $(NULL)
-
-componentdir = @datadir@/ibus/component
-
-EXTRA_DIST = \
- sunpinyin.xml.in \
- $(NULL)
-
-CLEANFILES = \
- sunpinyin.xml \
- $(NULL)
-
-sunpinyin.xml: sunpinyin.xml.in
- ( \
- libexecdir=${libexecdir}; \
- pkgdatadir=${pkgdatadir}; \
- s=`cat $<`; \
- eval "echo \"$${s}\""; \
- ) > $@
-
-test: ibus-engine-sunpinyin
- $(builddir)/ibus-engine-sunpinyin --ibus
Please sign in to comment.
Something went wrong with that request. Please try again.