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/vala/15 static vapi in source tree | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/vala/15 static vapi in source tree')
3 files changed, 23 insertions, 0 deletions
diff --git a/meson/test cases/vala/15 static vapi in source tree/meson.build b/meson/test cases/vala/15 static vapi in source tree/meson.build new file mode 100644 index 000000000..44bea484a --- /dev/null +++ b/meson/test cases/vala/15 static vapi in source tree/meson.build @@ -0,0 +1,13 @@ +project('static vapi', 'c', 'vala') + +glib = dependency('glib-2.0') + +conf = configuration_data() +conf.set_quoted('VERSION', '1.0.0') +config_h = configure_file(output : 'config.h', + configuration : conf) + +e = executable('static-vapi', 'vapi/config.vapi', 'test.vala', + dependencies : glib) + +test('test-config', e) diff --git a/meson/test cases/vala/15 static vapi in source tree/test.vala b/meson/test cases/vala/15 static vapi in source tree/test.vala new file mode 100644 index 000000000..06f2d593c --- /dev/null +++ b/meson/test cases/vala/15 static vapi in source tree/test.vala @@ -0,0 +1,6 @@ +using GLib; +using Config; + +public int main (string[] args) { + return GLib.strcmp(VERSION, "1.0.0"); +} diff --git a/meson/test cases/vala/15 static vapi in source tree/vapi/config.vapi b/meson/test cases/vala/15 static vapi in source tree/vapi/config.vapi new file mode 100644 index 000000000..71bcc6ea4 --- /dev/null +++ b/meson/test cases/vala/15 static vapi in source tree/vapi/config.vapi @@ -0,0 +1,4 @@ +[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] +namespace Config { + public const string VERSION; +} |