[glibmm/kjellahl/meson-build-master] examples: Don't build child_watch and iochannel_stream on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/kjellahl/meson-build-master] examples: Don't build child_watch and iochannel_stream on Windows
- Date: Mon, 2 Mar 2020 09:38:09 +0000 (UTC)
commit 949d3b6827d3f079cf8f334105c3e630edf1862b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 2 16:40:21 2020 +0800
examples: Don't build child_watch and iochannel_stream on Windows
These use *nix items in the code, so they won't build nor run for
Windows unless they are ported.
examples/meson.build | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/examples/meson.build b/examples/meson.build
index 73f2400d..a6c6c613 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -4,12 +4,10 @@
examples = [
# [[dir-name], exe-name, [sources], giomm-example (not just glibmm-example)]
- [['child_watch'], 'child_watch', ['main.cc'], false],
[['compose'], 'example', ['main.cc'], false],
[['dbus'], 'session_bus_service', ['session_bus_service.cc'], true],
[['dbus'], 'server_without_bus', ['server_without_bus.cc'], true],
[['dbus'], 'client_bus_listnames', ['client_bus_listnames.cc'], true],
- [['iochannel_stream'], 'example', ['fdstream.cc', 'main.cc'], false],
[['keyfile'], 'example', ['main.cc'], false],
[['markup'], 'parser', ['parser.cc'], false],
[['network'], 'resolver', ['resolver.cc'], true],
@@ -23,6 +21,14 @@ examples = [
[['thread'], 'dispatcher2', ['dispatcher2.cc'], false],
]
+if not is_host_windows
+ examples += [
+ [['child_watch'], 'child_watch', ['main.cc'], false],
+ [['iochannel_stream'], 'example', ['fdstream.cc', 'main.cc'], false],
+ ]
+endif
+
+
# import('gnome').compile_schemas() can't be use here.
# It can only compile schemas in the current directory.
glib_compile_schemas = find_program('glib-compile-schemas', required: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]