#define __PY_EXT_EDITOR__
#include <glib.h>
+extern "C" {
+#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
+#include "lua-plugin.h"
+}
+#include <string>
#include "Editor.h"
namespace PY {
virtual void reset (void);
virtual void candidateClicked (guint index, guint button, guint state);
+ int load_lua_script(std::string filename);
+ void reset_lua_state();
+
private:
+ Pointer<IBusEnginePlugin> m_lua_plugin;
+ lua_command_t * m_current_command;
+ std::string m_input;
+
+ LookupTable m_lookup_table;
};
};
-DGETTEXT_PACKAGE=\"@GETTEXT_PACKAGE@\" \
-DPKGDATADIR=\"$(pkgdatadir)\" \
-DLIBEXECDIR=\"$(libexecdir)\" \
+ -I../lua/ \
$(NULL)
+
ibus_engine_pinyin_LDADD = \
@IBUS_LIBS@ \
@SQLITE_LIBS@ \
+ -L../lua/ \
+ -lpylua \
$(NULL)
if HAVE_LIBUUID