meson: conditionally compile ecore_pipe_simple_example for windows
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 26 Apr 2019 13:06:47 +0000 (09:06 -0400)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:32:33 +0000 (13:32 +0900)
windows does not have fork() so this cannot be built

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8726

src/examples/ecore/meson.build

index c0b4295..c4d11c7 100644 (file)
@@ -7,7 +7,6 @@ examples = [
   'ecore_file_download_example',
   'ecore_idler_example',
   'ecore_job_example',
-  'ecore_pipe_simple_example',
   'ecore_poller_example',
   'ecore_thread_example',
   'ecore_time_functions_example',
@@ -15,6 +14,10 @@ examples = [
   'ecore_getopt_example'
 ]
 
+if config_h.has('HAVE_FORK')
+  examples += 'ecore_pipe_simple_example'
+endif
+
 gnutls = dependency('gnutls', required : false)
 if gnutls.found()
 examples += ['ecore_fd_handler_gnutls_example']