mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Merge branch 'cygwin-macro' into 'master'
Set G_WITH_CYGWIN again See merge request GNOME/glib!736
This commit is contained in:
commit
d264001d79
10
meson.build
10
meson.build
@ -188,10 +188,18 @@ if host_system == 'windows' and get_option('default_library') == 'static'
|
||||
glibconfig_conf.set('GOBJECT_STATIC_COMPILATION', '1')
|
||||
endif
|
||||
|
||||
# FIXME: what about Cygwin (G_WITH_CYGWIN)
|
||||
# Cygwin glib port maintainers made it clear
|
||||
# (via the patches they apply) that they want no
|
||||
# part of glib W32 code, therefore we do not define
|
||||
# G_PLATFORM_WIN32 for host_system == 'cygwin'.
|
||||
# This makes G_PLATFORM_WIN32 a synonym for
|
||||
# G_OS_WIN32.
|
||||
if host_system == 'windows'
|
||||
glib_os = '''#define G_OS_WIN32
|
||||
#define G_PLATFORM_WIN32'''
|
||||
elif host_system == 'cygwin'
|
||||
glib_os = '''#define G_OS_WIN32
|
||||
#define G_WITH_CYGWIN'''
|
||||
else
|
||||
glib_os = '#define G_OS_UNIX'
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user