mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
meson: Create gio-unix and gio-win32 internal deps
These are useful when using glib as a subproject and you want to use gio-unix-2.0 or gio-win32-2.0.
This commit is contained in:
parent
bd22bb9898
commit
7a9d92702e
@ -232,12 +232,12 @@ settings_sources = files(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
settings_sources += [ 'gregistrysettingsbackend.c' ]
|
settings_sources += files('gregistrysettingsbackend.c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# FIXME:
|
# FIXME:
|
||||||
#if OS_COCOA
|
#if OS_COCOA
|
||||||
#settings_sources += [ 'gnextstepsettingsbackend.c' ]
|
#settings_sources += files('gnextstepsettingsbackend.c')
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
application_headers = files(
|
application_headers = files(
|
||||||
@ -306,6 +306,13 @@ appinfo_sources = []
|
|||||||
contenttype_sources = []
|
contenttype_sources = []
|
||||||
portal_sources = []
|
portal_sources = []
|
||||||
unix_sources = []
|
unix_sources = []
|
||||||
|
win32_sources = []
|
||||||
|
|
||||||
|
# This is also used by tests/gdbus-daemon, so use files() to include the path
|
||||||
|
gdbus_daemon_sources = [
|
||||||
|
files('gdbusdaemon.c'),
|
||||||
|
gdbus_daemon_generated,
|
||||||
|
]
|
||||||
|
|
||||||
if host_system != 'windows'
|
if host_system != 'windows'
|
||||||
unix_sources = files(
|
unix_sources = files(
|
||||||
@ -369,16 +376,7 @@ if host_system != 'windows'
|
|||||||
'gnetworkmonitornm.c',
|
'gnetworkmonitornm.c',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
endif
|
else
|
||||||
|
|
||||||
# This is also used by tests/gdbus-daemon, so use files() to include the path
|
|
||||||
gdbus_daemon_sources = [
|
|
||||||
files('gdbusdaemon.c'),
|
|
||||||
gdbus_daemon_generated,
|
|
||||||
]
|
|
||||||
|
|
||||||
win32_sources = gdbus_daemon_sources
|
|
||||||
if host_system == 'windows'
|
|
||||||
appinfo_sources += files('gwin32appinfo.c')
|
appinfo_sources += files('gwin32appinfo.c')
|
||||||
contenttype_sources += files('gcontenttype-win32.c')
|
contenttype_sources += files('gcontenttype-win32.c')
|
||||||
platform_deps += [cc.find_library('shlwapi'),
|
platform_deps += [cc.find_library('shlwapi'),
|
||||||
@ -521,6 +519,7 @@ gio_sources = files(
|
|||||||
|
|
||||||
gio_sources += appinfo_sources
|
gio_sources += appinfo_sources
|
||||||
gio_sources += contenttype_sources
|
gio_sources += contenttype_sources
|
||||||
|
gio_sources += gdbus_daemon_sources
|
||||||
gio_sources += unix_sources
|
gio_sources += unix_sources
|
||||||
gio_sources += win32_sources
|
gio_sources += win32_sources
|
||||||
gio_sources += application_sources
|
gio_sources += application_sources
|
||||||
@ -749,6 +748,15 @@ libgio_dep = declare_dependency(link_with : libgio,
|
|||||||
# We sadly need to export configinc here because everyone includes <gio/*.h>
|
# We sadly need to export configinc here because everyone includes <gio/*.h>
|
||||||
include_directories : [configinc, gioinc])
|
include_directories : [configinc, gioinc])
|
||||||
|
|
||||||
|
if host_system == 'windows'
|
||||||
|
# Hack till https://github.com/mesonbuild/meson/issues/2324 is fixed
|
||||||
|
libgiounix_dep = dependency('', required : false)
|
||||||
|
libgiowin32_dep = libgio_dep
|
||||||
|
else
|
||||||
|
libgiowin32_dep = dependency('', required : false)
|
||||||
|
libgiounix_dep = libgio_dep
|
||||||
|
endif
|
||||||
|
|
||||||
# Dependencies used by executables below
|
# Dependencies used by executables below
|
||||||
libelf = dependency('libelf', version : '>= 0.8.12', required : false)
|
libelf = dependency('libelf', version : '>= 0.8.12', required : false)
|
||||||
if libelf.found()
|
if libelf.found()
|
||||||
|
Loading…
Reference in New Issue
Block a user