[gtk/ci-install-build: 1/2] Make a standalone hello world




commit 06caa57f9a73bbe869586e17df1cdd08fe57077b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 8 17:26:36 2021 -0400

    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(-)
---
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',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]