include(../common.pro)

TEMPLATE = lib
CONFIG += plugin

# to include util.h
INCLUDEPATH += @srcdir@/../candwin

LIBS += @X11_LIBS@ -luim-counted-init

# Input
HEADERS += @srcdir@/candidatewindowproxy.h \
           @srcdir@/caretstateindicator.h \
           @srcdir@/plugin.h \
           @srcdir@/qhelpermanager.h \
           @srcdir@/qtextutil.h \
           @srcdir@/quiminfomanager.h \
           @srcdir@/quiminputcontext.h \
           @srcdir@/../candwin/util.h

SOURCES += @srcdir@/candidatewindowproxy.cpp \
           @srcdir@/caretstateindicator.cpp \
           @srcdir@/plugin.cpp \
           @srcdir@/qhelpermanager.cpp \
           @srcdir@/qtextutil.cpp \
           @srcdir@/quiminfomanager.cpp \
           @srcdir@/quiminputcontext.cpp \
           @srcdir@/../candwin/util.cpp

!win32:!embedded:!mac {
    HEADERS += @srcdir@/quiminputcontext_compose.h
    SOURCES += @srcdir@/quiminputcontext_compose.cpp
}

TARGET = uiminputcontextplugin

target.path += @DESTDIR@$$[QT_INSTALL_PLUGINS]/inputmethods
