TEST=Linux desktop
Review URL: https://codereview.appspot.com/
5731060
"get_copyright",
"get_license",
"get_ICON_KEYBOARD",
+ "LIBIBUS_SONAME",
"ISOCODES_PREFIX",
"_"
)
return fallback_icon
return icon
+LIBIBUS_SONAME='libibus-@IBUS_API_VERSION@.so.@LT_CURRENT_MINUS_AGE@'
ISOCODES_PREFIX='@ISOCODES_PREFIX@'
import sys
from xdg import BaseDirectory
import ctypes
+import _config
# __display = os.environ["DISPLAY"]
# __hostname, __display_screen = __display.split(":", 1)
# return None
# return address
-libibus = ctypes.CDLL("libibus-1.0.so.0")
+libibus = ctypes.CDLL(_config.LIBIBUS_SONAME)
get_address = libibus.ibus_get_address
get_address.restype=ctypes.c_char_p
libexec_PROGRAMS = ibus-ui-gtk3
-ibus_ui_gtk3_valas = \
+ibus_ui_gtk3_SOURCES = \
application.vala \
candidatearea.vala \
candidatepanel.vala \
property.vala \
separator.vala \
switcher.vala \
- $(NULL)
-ibus_ui_gtk3_vala_cfiles = $(ibus_ui_gtk3_valas:.vala=.c)
-
-ibus_ui_gtk3_SOURCES = \
- $(ibus_ui_gtk3_valas) \
grabkeycode.c \
$(NULL)
CLEANFILES = \
gtkpanel.xml \
- $(ibus_ui_gtk3_vala_cfiles) \
$(NULL)
EXTRA_DIST = \