Improve detection of system tray support

Closes #2045
This commit is contained in:
Patrick Griffis
2017-08-31 09:52:45 -04:00
parent 281038e725
commit d99cd18fb9
8 changed files with 50 additions and 21 deletions

View File

@@ -28,12 +28,17 @@ hexchat_gtk_sources = [
'xtext.c'
]
gtk_dep = dependency('gtk+-2.0', version: '>= 2.24.0')
hexchat_gtk_deps = [
hexchat_common_dep,
libgmodule_dep, # used by libsexy
dependency('gtk+-2.0', version: '>= 2.24.0')
gtk_dep
]
if gtk_dep.get_pkgconfig_variable('target') == 'x11'
hexchat_gtk_deps += dependency('x11')
endif
hexchat_gtk_cflags = [
'-fPIE'
]