aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/common/215 source set realistic example/dummy.cpp0
-rw-r--r--test cases/common/215 source set realistic example/meson.build1
-rw-r--r--test cases/common/44 pkgconfig-gen/dependencies/dummy.c3
-rw-r--r--test cases/common/44 pkgconfig-gen/dependencies/meson.build4
-rw-r--r--test cases/common/44 pkgconfig-gen/meson.build2
-rw-r--r--test cases/frameworks/28 gir link order 2/samelibname/dummy.c0
-rw-r--r--test cases/frameworks/28 gir link order 2/samelibname/meson.build2
-rw-r--r--test cases/unit/52 pkgconfig static link order/dummy.c0
-rw-r--r--test cases/unit/52 pkgconfig static link order/meson.build4
9 files changed, 10 insertions, 6 deletions
diff --git a/test cases/common/215 source set realistic example/dummy.cpp b/test cases/common/215 source set realistic example/dummy.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test cases/common/215 source set realistic example/dummy.cpp
diff --git a/test cases/common/215 source set realistic example/meson.build b/test cases/common/215 source set realistic example/meson.build
index d986b99..7707964 100644
--- a/test cases/common/215 source set realistic example/meson.build
+++ b/test cases/common/215 source set realistic example/meson.build
@@ -30,6 +30,7 @@ subdir('devices')
if meson.is_unity()
specific.add_all(common)
common = ss.source_set()
+ common.add(files('dummy.cpp'))
endif
common_lib = static_library('common', common.all_sources(),
diff --git a/test cases/common/44 pkgconfig-gen/dependencies/dummy.c b/test cases/common/44 pkgconfig-gen/dependencies/dummy.c
new file mode 100644
index 0000000..ef7be51
--- /dev/null
+++ b/test cases/common/44 pkgconfig-gen/dependencies/dummy.c
@@ -0,0 +1,3 @@
+int dummy(void) {
+ return 0;
+}
diff --git a/test cases/common/44 pkgconfig-gen/dependencies/meson.build b/test cases/common/44 pkgconfig-gen/dependencies/meson.build
index fb4e6b4..6e27ae8 100644
--- a/test cases/common/44 pkgconfig-gen/dependencies/meson.build
+++ b/test cases/common/44 pkgconfig-gen/dependencies/meson.build
@@ -5,7 +5,7 @@ pkgg = import('pkgconfig')
# libmain internally use libinternal and expose libexpose in its API
exposed_lib = shared_library('libexposed', 'exposed.c')
internal_lib = shared_library('libinternal', 'internal.c')
-main_lib = both_libraries('libmain', link_with : [exposed_lib, internal_lib])
+main_lib = both_libraries('libmain', 'dummy.c', link_with : [exposed_lib, internal_lib])
custom_lib = shared_library('custom', 'custom.c')
pkgg.generate(exposed_lib)
@@ -55,7 +55,7 @@ pkgg.generate(
# Verify that if we promote internal_lib as public dependency, it comes after
# the main library.
-main_lib2 = both_libraries('libmain2', link_with : internal_lib)
+main_lib2 = both_libraries('libmain2', 'dummy.c', link_with : internal_lib)
pkgg.generate(main_lib2,
libraries : internal_lib,
filebase : 'pub-lib-order',
diff --git a/test cases/common/44 pkgconfig-gen/meson.build b/test cases/common/44 pkgconfig-gen/meson.build
index 9f5991e..5c4dcfa 100644
--- a/test cases/common/44 pkgconfig-gen/meson.build
+++ b/test cases/common/44 pkgconfig-gen/meson.build
@@ -153,7 +153,7 @@ ct = custom_target('stat3',
output: fs.name(outfile),
command: [python, '-c', script],
)
-simple6 = library('simple6', link_with: ct)
+simple6 = library('simple6', 'dependencies/dummy.c', link_with: ct)
pkgg.generate(simple6)
# implicit variables
diff --git a/test cases/frameworks/28 gir link order 2/samelibname/dummy.c b/test cases/frameworks/28 gir link order 2/samelibname/dummy.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test cases/frameworks/28 gir link order 2/samelibname/dummy.c
diff --git a/test cases/frameworks/28 gir link order 2/samelibname/meson.build b/test cases/frameworks/28 gir link order 2/samelibname/meson.build
index 8850372..dd923d7 100644
--- a/test cases/frameworks/28 gir link order 2/samelibname/meson.build
+++ b/test cases/frameworks/28 gir link order 2/samelibname/meson.build
@@ -1,5 +1,5 @@
samelibname = shared_library(
'sample',
- sources : [],
+ sources : 'dummy.c',
install : false,
)
diff --git a/test cases/unit/52 pkgconfig static link order/dummy.c b/test cases/unit/52 pkgconfig static link order/dummy.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test cases/unit/52 pkgconfig static link order/dummy.c
diff --git a/test cases/unit/52 pkgconfig static link order/meson.build b/test cases/unit/52 pkgconfig static link order/meson.build
index b61de9a..31449e5 100644
--- a/test cases/unit/52 pkgconfig static link order/meson.build
+++ b/test cases/unit/52 pkgconfig static link order/meson.build
@@ -1,7 +1,7 @@
project('link order test', 'c')
-dep = library('dependency', [])
-lib = static_library('something', [], link_with: dep)
+dep = library('dependency', 'dummy.c')
+lib = static_library('something', 'dummy.c', link_with: dep)
import('pkgconfig').generate(
name: 'libsomething',