Import Upstream version 2.72.4
This commit is contained in:
commit
4ef3ff9793
2003 changed files with 1332420 additions and 0 deletions
48
gthread/gthread-impl.c
Normal file
48
gthread/gthread-impl.c
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/* GLIB - Library of useful routines for C programming
|
||||
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
||||
*
|
||||
* gthread.c: thread related functions
|
||||
* Copyright 1998 Sebastian Wilhelmi; University of Karlsruhe
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Modified by the GLib Team and others 1997-2000. See the AUTHORS
|
||||
* file for a list of people on the GLib Team. See the ChangeLog
|
||||
* files for a list of changes. These files are distributed with
|
||||
* GLib at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
/*
|
||||
* MT safe
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
void
|
||||
g_thread_init (gpointer init)
|
||||
{
|
||||
if (init != NULL)
|
||||
g_warning ("GThread system no longer supports custom thread implementations.");
|
||||
}
|
||||
|
||||
void
|
||||
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
|
||||
{
|
||||
g_assert (vtable == NULL);
|
||||
g_warning ("GThread system no longer supports errorcheck mutexes.");
|
||||
}
|
||||
3
gthread/gthread.def
Normal file
3
gthread/gthread.def
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
EXPORTS
|
||||
g_thread_init
|
||||
g_thread_init_with_errorcheck_mutexes
|
||||
30
gthread/gthread.rc.in
Normal file
30
gthread/gthread.rc.in
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "GThread"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgthread-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright 1995-2011 Peter Mattis, Spencer Kimball, Josh MacDonald, Sebastian Wilhelmi and others."
|
||||
VALUE "OriginalFilename", "libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
40
gthread/meson.build
Normal file
40
gthread/meson.build
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# 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,
|
||||
darwin_versions : darwin_versions,
|
||||
install : true,
|
||||
dependencies : [libglib_dep],
|
||||
c_args : ['-DG_LOG_DOMAIN="GThread"' ] + glib_hidden_visibility_args,
|
||||
link_args : glib_link_flags,
|
||||
)
|
||||
|
||||
pkg.generate(libgthread,
|
||||
libraries : [thread_dep],
|
||||
requires : ['glib-2.0'],
|
||||
version : glib_version,
|
||||
install_dir : glib_pkgconfigreldir,
|
||||
filebase : 'gthread-2.0',
|
||||
name : 'GThread',
|
||||
description : 'Thread support for GLib',
|
||||
)
|
||||
|
||||
libgthread_dep = declare_dependency(link_with : libgthread)
|
||||
|
||||
if meson.version().version_compare('>=0.54.0')
|
||||
meson.override_dependency('gthread-2.0', libgthread_dep)
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue