diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/frameworks/22 gir link order/fake-gthread | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/frameworks/22 gir link order/fake-gthread')
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, +) |