diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-06 08:45:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-06 09:41:51 +0200 |
commit | 2e21b218db0e979d56b7b6027854a86ad7ffc96b (patch) | |
tree | f0ebc7c223be1dd88f47cb3399e82659cda09ade /libbutl-pkg-config/libpkg-config | |
parent | a54213a4ff48ecfa8fa3b416d12b1282158746dc (diff) |
Add libbutl-pkg-config source subdirectory
This is an additional (to libbutl) utility library which contains the source
code of libpkg-config configured and tuned for our needs.
Diffstat (limited to 'libbutl-pkg-config/libpkg-config')
l--------- | libbutl-pkg-config/libpkg-config/argvsplit.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/bsdstubs.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/cache.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/client.c | 1 | ||||
-rw-r--r-- | libbutl-pkg-config/libpkg-config/config.h | 41 | ||||
l--------- | libbutl-pkg-config/libpkg-config/dependency.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/export.h | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/fileio.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/fragment.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/list.h | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/parser.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/path.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/pkg-config.h | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/pkg.c | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/stdinc.h | 1 | ||||
l--------- | libbutl-pkg-config/libpkg-config/tuple.c | 1 | ||||
-rw-r--r-- | libbutl-pkg-config/libpkg-config/version.h | 37 |
17 files changed, 93 insertions, 0 deletions
diff --git a/libbutl-pkg-config/libpkg-config/argvsplit.c b/libbutl-pkg-config/libpkg-config/argvsplit.c new file mode 120000 index 0000000..59f933e --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/argvsplit.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/argvsplit.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/bsdstubs.c b/libbutl-pkg-config/libpkg-config/bsdstubs.c new file mode 120000 index 0000000..53c3669 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/bsdstubs.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/bsdstubs.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/cache.c b/libbutl-pkg-config/libpkg-config/cache.c new file mode 120000 index 0000000..04f55e2 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/cache.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/cache.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/client.c b/libbutl-pkg-config/libpkg-config/client.c new file mode 120000 index 0000000..d705a55 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/client.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/client.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/config.h b/libbutl-pkg-config/libpkg-config/config.h new file mode 100644 index 0000000..c1c5e8d --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/config.h @@ -0,0 +1,41 @@ +/* file : libpkg-config/config.h.in -*- C -*- + * license : ISC; see accompanying COPYING file + */ +#ifndef LIBPKG_CONFIG_CONFIG_H +#define LIBPKG_CONFIG_CONFIG_H + +#if defined(__linux__) +# include <features.h> /* __GLIBC__, __GLIBC_MINOR__ */ +#endif + +/* + * strndup() is not present on Windows while strl*() are only present on + * *BSD and MacOS. + * + */ +#if !defined(_WIN32) +# define HAVE_STRNDUP 1 +#endif + +/* + * GNU libc added strlcpy() and strlcat() in version 2.38 (in anticipation + * of their addition to POSIX). + */ +#if defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(__APPLE__) || \ + (defined(__GLIBC__) && \ + defined(__GLIBC_MINOR__) && \ + (__GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 38)) +# define HAVE_STRLCPY 1 +# define HAVE_STRLCAT 1 +#endif + +#define LIBPKG_CONFIG_PROJECT_URL "https://github.com/build2/libpkg-config" + +#define PKG_CONFIG_DEFAULT_PATH "" +#define SYSTEM_INCLUDEDIR "" +#define SYSTEM_LIBDIR "" + +#endif /* LIBPKG_CONFIG_CONFIG_H */ diff --git a/libbutl-pkg-config/libpkg-config/dependency.c b/libbutl-pkg-config/libpkg-config/dependency.c new file mode 120000 index 0000000..2e12a02 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/dependency.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/dependency.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/export.h b/libbutl-pkg-config/libpkg-config/export.h new file mode 120000 index 0000000..d3bf554 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/export.h @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/export.h
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/fileio.c b/libbutl-pkg-config/libpkg-config/fileio.c new file mode 120000 index 0000000..65935f3 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/fileio.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/fileio.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/fragment.c b/libbutl-pkg-config/libpkg-config/fragment.c new file mode 120000 index 0000000..826d666 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/fragment.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/fragment.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/list.h b/libbutl-pkg-config/libpkg-config/list.h new file mode 120000 index 0000000..861f4d3 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/list.h @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/list.h
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/parser.c b/libbutl-pkg-config/libpkg-config/parser.c new file mode 120000 index 0000000..87c341e --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/parser.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/parser.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/path.c b/libbutl-pkg-config/libpkg-config/path.c new file mode 120000 index 0000000..b710dec --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/path.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/path.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/pkg-config.h b/libbutl-pkg-config/libpkg-config/pkg-config.h new file mode 120000 index 0000000..9a41ca6 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/pkg-config.h @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/pkg-config.h
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/pkg.c b/libbutl-pkg-config/libpkg-config/pkg.c new file mode 120000 index 0000000..74f6be5 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/pkg.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/pkg.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/stdinc.h b/libbutl-pkg-config/libpkg-config/stdinc.h new file mode 120000 index 0000000..f433ee0 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/stdinc.h @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/stdinc.h
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/tuple.c b/libbutl-pkg-config/libpkg-config/tuple.c new file mode 120000 index 0000000..7224e23 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/tuple.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/libpkg-config/tuple.c
\ No newline at end of file diff --git a/libbutl-pkg-config/libpkg-config/version.h b/libbutl-pkg-config/libpkg-config/version.h new file mode 100644 index 0000000..ef000f5 --- /dev/null +++ b/libbutl-pkg-config/libpkg-config/version.h @@ -0,0 +1,37 @@ +#ifndef LIBPKG_CONFIG_VERSION_H +#define LIBPKG_CONFIG_VERSION_H + +/* The numeric version format is AAAAABBBBBCCCCCDDDE where: + * + * AAAAA - major version number + * BBBBB - minor version number + * CCCCC - bugfix version number + * DDD - alpha / beta (DDD + 500) version number + * E - final (0) / snapshot (1) + * + * When DDDE is not 0, 1 is subtracted from AAAAABBBBBCCCCC. For example: + * + * Version AAAAABBBBBCCCCCDDDE + * + * 0.1.0 0000000001000000000 + * 0.1.2 0000000001000020000 + * 1.2.3 0000100002000030000 + * 2.2.0-a.1 0000200001999990010 + * 3.0.0-b.2 0000299999999995020 + * 2.2.0-a.1.z 0000200001999990011 + */ +#define LIBPKG_CONFIG_VERSION 1000010001ULL +#define LIBPKG_CONFIG_VERSION_STR "0.1.2-a.0.20230830042926.81bc60b38195" +#define LIBPKG_CONFIG_VERSION_ID "0.1.2-a.0.81bc60b38195" +#define LIBPKG_CONFIG_VERSION_FULL "0.1.2-a.0.20230830042926.81bc60b38195" + +#define LIBPKG_CONFIG_VERSION_MAJOR 0 +#define LIBPKG_CONFIG_VERSION_MINOR 1 +#define LIBPKG_CONFIG_VERSION_PATCH 2 + +#define LIBPKG_CONFIG_PRE_RELEASE true + +#define LIBPKG_CONFIG_SNAPSHOT_SN 20230830042926ULL +#define LIBPKG_CONFIG_SNAPSHOT_ID "81bc60b38195" + +#endif /* LIBPKG_CONFIG_VERSION_H */ |