diff options
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, +) |