mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 13:26:16 +01:00
cf93b27ceb
Properly define GLIB/GOBJECT_STATIC_COMPILATION when static build is enabled. Use library() instead of shared_library() to allow selecting static builds. https://bugzilla.gnome.org/show_bug.cgi?id=784995
22 lines
652 B
Meson
22 lines
652 B
Meson
# Just a skeleton lib for backwards compatibility since all the functionaliy
|
|
# has been moved into glib now
|
|
|
|
gthread_sources = ['gthread-impl.c']
|
|
if host_system == 'windows'
|
|
gthread_win_rc = configure_file(
|
|
input: 'gthread.rc.in',
|
|
output: 'gthread.rc',
|
|
configuration: glibconfig_conf,
|
|
)
|
|
gthread_win_res = windows.compile_resources(gthread_win_rc)
|
|
gthread_sources += [gthread_win_res]
|
|
endif
|
|
|
|
libgthread = library('gthread-2.0',
|
|
sources : gthread_sources,
|
|
version : library_version,
|
|
soversion : soversion,
|
|
install : true,
|
|
dependencies : [libglib_dep],
|
|
c_args : ['-DG_LOG_DOMAIN="GThread"' ] + glib_hidden_visibility_args)
|