From 06caa57f9a73bbe869586e17df1cdd08fe57077b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Jun 2021 17:26:36 -0400 Subject: [PATCH] Make a standalone hello world We want to test building against the installed GTK in ci, so lets add a standalone project. --- examples/{ => hello}/hello-world.c | 0 examples/hello/meson.build | 10 ++++++++++ examples/meson.build | 1 - 3 files changed, 10 insertions(+), 1 deletion(-) rename examples/{ => hello}/hello-world.c (100%) create mode 100644 examples/hello/meson.build diff --git a/examples/hello-world.c b/examples/hello/hello-world.c similarity index 100% rename from examples/hello-world.c rename to examples/hello/hello-world.c diff --git a/examples/hello/meson.build b/examples/hello/meson.build new file mode 100644 index 0000000000..bd4cdd51e7 --- /dev/null +++ b/examples/hello/meson.build @@ -0,0 +1,10 @@ +project('hello', 'c', + version: '4.3.0', + meson_version: '>= 0.50.0', +) + +executable('hello', + [ 'hello-world.c' ], + dependencies: [ dependency('gtk4') ], + install: false +) diff --git a/examples/meson.build b/examples/meson.build index 22e74f34d4..ae007bc404 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -2,7 +2,6 @@ examples = [ 'builder', 'drawing', 'grid-packing', - 'hello-world', 'plugman', 'search-bar', 'sunny',