From 8ae847e4fcb10ba9731dc33ab65f9c1544c7379e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 24 Sep 2016 09:38:10 +0200 Subject: [PATCH] Build examples --- examples/application1/meson.build | 11 ++++++ examples/application10/meson.build | 23 ++++++++++++ examples/application2/meson.build | 17 +++++++++ examples/application3/meson.build | 17 +++++++++ examples/application4/meson.build | 17 +++++++++ examples/application5/meson.build | 21 +++++++++++ examples/application6/meson.build | 23 ++++++++++++ examples/application7/meson.build | 23 ++++++++++++ examples/application8/meson.build | 23 ++++++++++++ examples/application9/meson.build | 23 ++++++++++++ examples/bp/meson.build | 13 +++++++ examples/meson.build | 60 ++++++++++++++++++++++++++++++ meson.build | 1 + 13 files changed, 272 insertions(+) create mode 100644 examples/application1/meson.build create mode 100644 examples/application10/meson.build create mode 100644 examples/application2/meson.build create mode 100644 examples/application3/meson.build create mode 100644 examples/application4/meson.build create mode 100644 examples/application5/meson.build create mode 100644 examples/application6/meson.build create mode 100644 examples/application7/meson.build create mode 100644 examples/application8/meson.build create mode 100644 examples/application9/meson.build create mode 100644 examples/bp/meson.build create mode 100644 examples/meson.build diff --git a/examples/application1/meson.build b/examples/application1/meson.build new file mode 100644 index 0000000000..ae5620f07e --- /dev/null +++ b/examples/application1/meson.build @@ -0,0 +1,11 @@ + + +app1 = executable( + 'exampleapp', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + dependencies: libgtk_dep +) diff --git a/examples/application10/meson.build b/examples/application10/meson.build new file mode 100644 index 0000000000..ce842ae794 --- /dev/null +++ b/examples/application10/meson.build @@ -0,0 +1,23 @@ + +app10_resources = gnome.compile_resources( + 'exampleapp10 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app10_schemas = gnome.compile_schemas() + + +app10 = executable( + 'exampleapp10', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + 'exampleappprefs.c', + 'exampleappprefs.h', + app10_resources, + app10_schemas, + dependencies: libgtk_dep +) diff --git a/examples/application2/meson.build b/examples/application2/meson.build new file mode 100644 index 0000000000..99deae6e12 --- /dev/null +++ b/examples/application2/meson.build @@ -0,0 +1,17 @@ + +app2_resources = gnome.compile_resources( + 'exampleapp2 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app2 = executable( + 'exampleapp2', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + app2_resources, + dependencies: libgtk_dep +) diff --git a/examples/application3/meson.build b/examples/application3/meson.build new file mode 100644 index 0000000000..f0cec4c198 --- /dev/null +++ b/examples/application3/meson.build @@ -0,0 +1,17 @@ + +app3_resources = gnome.compile_resources( + 'exampleapp3 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app3 = executable( + 'exampleapp3', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + app3_resources, + dependencies: libgtk_dep +) diff --git a/examples/application4/meson.build b/examples/application4/meson.build new file mode 100644 index 0000000000..2ae18200b2 --- /dev/null +++ b/examples/application4/meson.build @@ -0,0 +1,17 @@ + +app4_resources = gnome.compile_resources( + 'exampleapp4 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app4 = executable( + 'exampleapp4', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + app4_resources, + dependencies: libgtk_dep +) diff --git a/examples/application5/meson.build b/examples/application5/meson.build new file mode 100644 index 0000000000..f0fed1ca59 --- /dev/null +++ b/examples/application5/meson.build @@ -0,0 +1,21 @@ + +app5_resources = gnome.compile_resources( + 'exampleapp5 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app5_schemas = gnome.compile_schemas() + + +app5 = executable( + 'exampleapp5', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + app5_resources, + app5_schemas, + dependencies: libgtk_dep +) diff --git a/examples/application6/meson.build b/examples/application6/meson.build new file mode 100644 index 0000000000..2d923f35a3 --- /dev/null +++ b/examples/application6/meson.build @@ -0,0 +1,23 @@ + +app6_resources = gnome.compile_resources( + 'exampleapp6 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app6_schemas = gnome.compile_schemas() + + +app6 = executable( + 'exampleapp6', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + 'exampleappprefs.c', + 'exampleappprefs.h', + app6_resources, + app6_schemas, + dependencies: libgtk_dep +) diff --git a/examples/application7/meson.build b/examples/application7/meson.build new file mode 100644 index 0000000000..cc32f36ad0 --- /dev/null +++ b/examples/application7/meson.build @@ -0,0 +1,23 @@ + +app7_resources = gnome.compile_resources( + 'exampleapp7 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app7_schemas = gnome.compile_schemas() + + +app7 = executable( + 'exampleapp7', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + 'exampleappprefs.c', + 'exampleappprefs.h', + app7_resources, + app7_schemas, + dependencies: libgtk_dep +) diff --git a/examples/application8/meson.build b/examples/application8/meson.build new file mode 100644 index 0000000000..1192f4d688 --- /dev/null +++ b/examples/application8/meson.build @@ -0,0 +1,23 @@ + +app8_resources = gnome.compile_resources( + 'exampleapp8 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app8_schemas = gnome.compile_schemas() + + +app8 = executable( + 'exampleapp8', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + 'exampleappprefs.c', + 'exampleappprefs.h', + app8_resources, + app8_schemas, + dependencies: libgtk_dep +) diff --git a/examples/application9/meson.build b/examples/application9/meson.build new file mode 100644 index 0000000000..fccee738cb --- /dev/null +++ b/examples/application9/meson.build @@ -0,0 +1,23 @@ + +app9_resources = gnome.compile_resources( + 'exampleapp9 resources', + 'exampleapp.gresource.xml', + source_dir: '.' +) + +app9_schemas = gnome.compile_schemas() + + +app9 = executable( + 'exampleapp9', + 'main.c', + 'exampleapp.c', + 'exampleapp.h', + 'exampleappwin.c', + 'exampleappwin.h', + 'exampleappprefs.c', + 'exampleappprefs.h', + app9_resources, + app9_schemas, + dependencies: libgtk_dep +) diff --git a/examples/bp/meson.build b/examples/bp/meson.build new file mode 100644 index 0000000000..a3f82802f5 --- /dev/null +++ b/examples/bp/meson.build @@ -0,0 +1,13 @@ + +bp_resources = gnome.compile_resources( + 'bloatpad resources', + 'bloatpad.gresources.xml', + source_dir: '.' +) + +bloatpad = executable( + 'bloatpad', + 'bloatpad.c', + bp_resources, + dependencies: libgtk_dep +) diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 0000000000..79af2f8440 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,60 @@ +builder_example = executable( + 'builder_example', + 'builder.c', + dependencies: libgtk_dep +) + +drawing = executable( + 'drawing', + 'drawing.c', + dependencies: libgtk_dep +) + +grid_packing = executable( + 'grid-packing', + 'grid-packing.c', + dependencies: libgtk_dep +) + +hello_world = executable( + 'hello-world', + 'hello-world.c', + dependencies: libgtk_dep +) + +plugman = executable( + 'plugman', + 'plugman.c', + dependencies: libgtk_dep +) + +search_bar = executable( + 'search-bar', + 'search-bar.c', + dependencies: libgtk_dep +) + +sunny = executable( + 'sunny', + 'sunny.c', + dependencies: libgtk_dep +) + +window_default = executable( + 'window-default', + 'window-default.c', + dependencies: libgtk_dep +) + + +subdir('bp') +subdir('application1') +subdir('application2') +subdir('application3') +subdir('application4') +subdir('application5') +subdir('application6') +subdir('application7') +subdir('application8') +subdir('application9') +subdir('application10') diff --git a/meson.build b/meson.build index d2c90210f2..f0f8633cac 100644 --- a/meson.build +++ b/meson.build @@ -220,3 +220,4 @@ subdir('gtk') subdir('demos') subdir('tests') subdir('testsuite') +subdir('examples')