aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/22 gir link order/fake-gthread
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/frameworks/22 gir link order/fake-gthread
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/frameworks/22 gir link order/fake-gthread')
-rw-r--r--meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.c6
-rw-r--r--meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.h6
-rw-r--r--meson/test cases/frameworks/22 gir link order/fake-gthread/meson.build12
3 files changed, 24 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.c b/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.c
new file mode 100644
index 000000000..fae9c3832
--- /dev/null
+++ b/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.c
@@ -0,0 +1,6 @@
+#include "fake-gthread.h"
+
+int fake_gthread_fake_function (void)
+{
+ return 7;
+}
diff --git a/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.h b/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.h
new file mode 100644
index 000000000..52b54727d
--- /dev/null
+++ b/meson/test cases/frameworks/22 gir link order/fake-gthread/fake-gthread.h
@@ -0,0 +1,6 @@
+#ifndef FAKE_GTHREAD_H
+#define FAKE_GTHREAD_H
+
+int fake_gthread_fake_function (void);
+
+#endif /* FAKE_GTHREAD_H */
diff --git a/meson/test cases/frameworks/22 gir link order/fake-gthread/meson.build b/meson/test cases/frameworks/22 gir link order/fake-gthread/meson.build
new file mode 100644
index 000000000..693e8e0ec
--- /dev/null
+++ b/meson/test cases/frameworks/22 gir link order/fake-gthread/meson.build
@@ -0,0 +1,12 @@
+fake_gthread_sources = ['fake-gthread.c', 'fake-gthread.h']
+fake_gthread_lib = shared_library(
+ 'gthread-2.0',
+ sources : fake_gthread_sources,
+ install : false,
+)
+
+fake_gthread_includes = include_directories('.')
+fake_gthread = declare_dependency(
+ include_directories : fake_gthread_includes,
+ link_with : fake_gthread_lib,
+)