Updated SConstruct to reflect KDE and libnotify notification...
...backends unification.
This commit is contained in:
parent
b1de048be2
commit
fe0f94e913
1 changed files with 3 additions and 11 deletions
14
SConstruct
14
SConstruct
|
@ -60,8 +60,7 @@ opts.AddVariables(
|
|||
BoolVariable('editor', 'Enable editor', True),
|
||||
BoolVariable('lowmem', 'Set to reduce memory usage by removing extra functionality', False),
|
||||
BoolVariable('lua', 'Enable Lua support', True),
|
||||
BoolVariable('notifications', 'Enable support for desktop notifications', False),
|
||||
EnumVariable('notifications_backend', "Desktop notifications backend: Galago project's libnotify or KDE's org.kde.VisualNotifications DBus service", 'libnotify', ["libnotify", "kde"]),
|
||||
BoolVariable('notifications', 'Enable support for desktop notifications', True),
|
||||
BoolVariable('nls','enable compile/install of gettext message catalogs',True),
|
||||
BoolVariable('dummy_locales','enable support for dummy locales',False),
|
||||
PathVariable('prefix', 'autotools-style installation prefix', "/usr/local", PathVariable.PathAccept),
|
||||
|
@ -257,16 +256,9 @@ if env["prereqs"]:
|
|||
if env["PLATFORM"] != "win32":
|
||||
have_X = conf.CheckLib('X11')
|
||||
|
||||
env["notifications"] = env["notifications"] and conf.CheckPKG("dbus-1")
|
||||
if env["notifications"]:
|
||||
if env["notifications_backend"] == "libnotify":
|
||||
have_client_prereqs = have_client_prereqs and conf.CheckPKG("gtkmm-2.4 >= 2.8.0") and conf.CheckPKG("libnotifymm-1.0") or \
|
||||
Warning("gtkmm and libnotifymm are required for desktop notifications support")
|
||||
client_env.Append(CPPDEFINES = ["HAVE_LIBNOTIFY"])
|
||||
|
||||
if env["notifications_backend"] == "kde":
|
||||
have_client_prereqs = have_client_prereqs and conf.CheckPKG("QtDBus") or \
|
||||
Warning("QtDBus is required for KDE desktop notifications support")
|
||||
client_env.Append(CPPDEFINES = ["HAVE_QTDBUS"])
|
||||
client_env.Append(CPPDEFINES = ["HAVE_LIBDBUS"])
|
||||
|
||||
if client_env['fribidi']:
|
||||
client_env['fribidi'] = conf.CheckPKG('fribidi >= 0.10.9') or Warning("Can't find libfribidi, disabling freebidi support.")
|
||||
|
|
Loading…
Add table
Reference in a new issue