2016-03-07 12:13:24 +01:00
|
|
|
# Just a skeleton lib for backwards compatibility since all the functionaliy
|
|
|
|
# has been moved into glib now
|
2017-12-14 13:32:56 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-07-16 16:41:02 +02:00
|
|
|
libgthread = library('gthread-2.0',
|
2017-12-14 13:32:56 +01:00
|
|
|
sources : gthread_sources,
|
2016-12-20 23:37:24 +01:00
|
|
|
version : library_version,
|
|
|
|
soversion : soversion,
|
2016-03-07 12:13:24 +01:00
|
|
|
install : true,
|
2016-12-20 23:37:24 +01:00
|
|
|
dependencies : [libglib_dep],
|
2018-05-01 15:44:19 +02:00
|
|
|
c_args : ['-DG_LOG_DOMAIN="GThread"' ] + glib_hidden_visibility_args,
|
|
|
|
link_args : glib_link_flags,
|
|
|
|
)
|
2017-12-11 20:47:04 +01:00
|
|
|
|
|
|
|
pkg.generate(libraries : [libgthread, thread_dep],
|
|
|
|
requires : ['glib-2.0'],
|
|
|
|
version : glib_version,
|
|
|
|
install_dir : glib_pkgconfigreldir,
|
|
|
|
filebase : 'gthread-2.0',
|
|
|
|
name : 'GThread',
|
|
|
|
description : 'Thread support for GLib',
|
|
|
|
)
|
2018-09-19 22:09:55 +02:00
|
|
|
|
|
|
|
libgthread_dep = declare_dependency(link_with : libgthread)
|