Update YTK unistd.h checks

This commit is contained in:
Robin Gareus
2025-11-09 20:29:02 +01:00
parent 1ee5a68d76
commit e29523ab52
6 changed files with 3 additions and 9 deletions

View File

@@ -23,9 +23,6 @@
/* Define to 1 if sys/systeminfo.h is available */
/* #undef HAVE_SYS_SYSTEMINFO_H */
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.31.1"

View File

@@ -37,6 +37,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'gio-2.0', uselib_store='GIO', atleast_version='2.2', mandatory=True)
autowaf.check_pkg(conf, 'gobject-2.0', uselib_store='GOBJECT', mandatory=True)
autowaf.check_pkg(conf, 'libpng', uselib_store='LIBPNG', mandatory=True)
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
def build(bld):
obj = bld.shlib(features = 'c cshlib', source=libydkpixbuf_sources)

View File

@@ -76,9 +76,6 @@
/* Define to 1 if sys/systeminfo.h is available */
/* #undef HAVE_SYS_SYSTEMINFO_H */
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Have wchar.h include file */
#define HAVE_WCHAR_H 1

View File

@@ -164,6 +164,7 @@ def configure(conf):
lib='Xinerama', uselib_store="XINERAMA", define_name='HAVE_XFREE_XINERAMA',
execute = False, mandatory=False)
autowaf.check_pkg(conf, 'xi', uselib_store='XINPUT2', mandatory=False, atleast_version='1.7.10')
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
def build(bld):
obj = bld.shlib(features = 'c cshlib')

View File

@@ -77,9 +77,6 @@
/* Define to 1 if sys/systeminfo.h is available */
/* #undef HAVE_SYS_SYSTEMINFO_H */
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Have wchar.h include file */
#define HAVE_WCHAR_H 1

View File

@@ -266,6 +266,7 @@ def configure(conf):
if conf.env['build_target'] != 'mingw' and conf.env['build_target'] != 'msvc' and sys.platform != 'darwin': # Linux
autowaf.check_pkg(conf, 'x11', uselib_store='X11', system=True, mandatory=True)
autowaf.check_pkg(conf, 'xext', uselib_store='XEXT', system=True, mandatory=True)
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
def build(bld):
obj = bld.shlib(features = 'c cshlib')