From 2e21b218db0e979d56b7b6027854a86ad7ffc96b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 6 May 2024 08:45:22 +0200 Subject: 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. --- tests/build/root.build | 5 +++-- tests/pkg-config/buildfile | 6 ++++++ tests/pkg-config/driver.c | 1 + tests/pkg-config/testscript | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tests/pkg-config/buildfile create mode 120000 tests/pkg-config/driver.c create mode 120000 tests/pkg-config/testscript (limited to 'tests') diff --git a/tests/build/root.build b/tests/build/root.build index 515e1c9..5ce7156 100644 --- a/tests/build/root.build +++ b/tests/build/root.build @@ -4,15 +4,16 @@ cxx.std = latest using cxx +using c hxx{*}: extension = hxx cxx{*}: extension = cxx if ($cxx.target.system == 'win32-msvc') - cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS + cc.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS if ($cxx.class == 'msvc') - cxx.coptions += /wd4251 /wd4275 /wd4800 + cc.coptions += /wd4251 /wd4275 /wd4800 elif ($cxx.id == 'gcc') { cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object \ diff --git a/tests/pkg-config/buildfile b/tests/pkg-config/buildfile new file mode 100644 index 0000000..896b916 --- /dev/null +++ b/tests/pkg-config/buildfile @@ -0,0 +1,6 @@ +# file : tests/pkg-config/buildfile +# license : MIT; see accompanying LICENSE file + +import libs = libbutl%lib{butl-pkg-config} + +exe{driver}: {h c}{*} $libs testscript diff --git a/tests/pkg-config/driver.c b/tests/pkg-config/driver.c new file mode 120000 index 0000000..2e6f14a --- /dev/null +++ b/tests/pkg-config/driver.c @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/tests/basic/driver.c \ No newline at end of file diff --git a/tests/pkg-config/testscript b/tests/pkg-config/testscript new file mode 120000 index 0000000..628bd41 --- /dev/null +++ b/tests/pkg-config/testscript @@ -0,0 +1 @@ +../../upstream/libpkg-config/libpkg-config/tests/basic/testscript \ No newline at end of file -- cgit v1.1