aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-08-12 15:26:29 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-02 17:22:50 +0200
commit46d464e5bfc10398461a33a2256c1c58d509dd1a (patch)
tree8c1a9272c05f14033a4430bc122632461bd73608 /src/examples
parentecore_cocoa: stop leaking init counts (diff)
downloadefl-46d464e5bfc10398461a33a2256c1c58d509dd1a.tar.gz
here comes meson
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on https://phab.enlightenment.org/D7011
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/meson.build76
-rw-r--r--src/examples/ecore_avahi/meson.build8
-rw-r--r--src/examples/edje/meson.build135
-rw-r--r--src/examples/eet/meson.build13
-rw-r--r--src/examples/eina/meson.build47
-rw-r--r--src/examples/eio/meson.build15
-rw-r--r--src/examples/eldbus/meson.build17
-rw-r--r--src/examples/emile/meson.build7
-rw-r--r--src/examples/emotion/meson.build14
-rw-r--r--src/examples/ethumb_client/meson.build10
-rw-r--r--src/examples/evas/meson.build57
11 files changed, 399 insertions, 0 deletions
diff --git a/src/examples/ecore/meson.build b/src/examples/ecore/meson.build
new file mode 100644
index 0000000000..7233a83b82
--- /dev/null
+++ b/src/examples/ecore/meson.build
@@ -0,0 +1,76 @@
+examples = [
+ 'ecore_event_example_01',
+ 'ecore_event_example_02',
+ 'ecore_exe_example',
+ 'ecore_exe_example_child',
+ 'ecore_fd_handler_example',
+ 'ecore_file_download_example',
+ 'ecore_idler_example',
+ 'ecore_job_example',
+ 'ecore_pipe_gstreamer_example',
+ 'ecore_pipe_simple_example',
+ 'ecore_poller_example',
+ 'ecore_thread_example',
+ 'ecore_time_functions_example',
+ 'ecore_timer_example',
+ 'ecore_getopt_example'
+]
+
+gnutls = dependency('gnutls', required : false)
+if gnutls.found()
+examples += ['ecore_fd_handler_gnutls_example']
+endif
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: [eina, ecore, gstreamer, ecore_file, gnutls])
+endforeach
+
+examples = [
+# 'ecore_audio_custom',
+# 'ecore_audio_playback',
+# 'ecore_audio_to_ogg',
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: [eina, ecore, ecore_audio])
+endforeach
+
+
+examples = [
+ 'ecore_con_client_example',
+ 'ecore_con_client_simple_example',
+ 'ecore_con_lookup_example',
+ 'ecore_con_server_example',
+ 'ecore_con_server_http_example',
+ 'ecore_con_server_simple_example',
+ 'ecore_con_url_cookies_example',
+ 'ecore_con_url_download_example',
+ 'ecore_con_url_headers_example',
+ 'ecore_client_bench',
+ 'ecore_server_bench',
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: [eina, ecore, ecore_con])
+endforeach
+
+examples = [
+ 'ecore_animator_example',
+ 'ecore_evas_basics_example',
+ 'ecore_evas_buffer_example_01',
+ 'ecore_evas_buffer_example_02',
+ 'ecore_evas_callbacks',
+ 'ecore_evas_ews_example',
+ 'ecore_evas_object_example',
+ 'ecore_evas_window_sizes_example',
+]
+
+foreach example : examples
+ executable(example, example + '.c',
+ dependencies: [eina, ecore_evas],
+ c_args : [
+ '-DPACKAGE_EXAMPLES_DIR="'+meson.current_source_dir()+'"']
+ )
+endforeach
+
+# 'ecore_imf_example',
diff --git a/src/examples/ecore_avahi/meson.build b/src/examples/ecore_avahi/meson.build
new file mode 100644
index 0000000000..3ab470da1c
--- /dev/null
+++ b/src/examples/ecore_avahi/meson.build
@@ -0,0 +1,8 @@
+examples = [
+ 'ecore_avahi_browse_example',
+ 'ecore_avahi_example',
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: [ecore_avahi_deps, ecore_avahi])
+endforeach
diff --git a/src/examples/edje/meson.build b/src/examples/edje/meson.build
new file mode 100644
index 0000000000..49e7e53c73
--- /dev/null
+++ b/src/examples/edje/meson.build
@@ -0,0 +1,135 @@
+edc_files = [
+ 'animations.edc',
+ 'animations2.edc',
+ 'basic.edc',
+ 'basic2.edc',
+ 'bezier-transition-example.edc',
+ 'box.edc',
+ 'box_example.edc',
+ 'color-class.edc',
+ 'drag.edc',
+ 'dynamic_multiseat.edc',
+ 'edje-group.edc',
+ 'edje-nested.edc',
+ 'edje-threshold.edc',
+ 'edje_example.edc',
+ 'embryo_custom_state.edc',
+ 'embryo_pong.edc',
+ 'embryo_run_program.edc',
+ 'embryo_set_state.edc',
+ 'embryo_set_state_anim.edc',
+ 'embryo_set_text.edc',
+ 'embryo_timer.edc',
+ 'embryo_tween_anim.edc',
+ 'entry.edc',
+ 'external_elm_anchorblock.edc',
+ 'external_elm_button.edc',
+ 'external_elm_check.edc',
+ 'external_elm_panes.edc',
+ 'external_emotion_elm.edc',
+ 'focus.edc',
+ 'lua_script.edc',
+ 'messages_echo.edc',
+ 'multiseat.edc',
+ 'multiseat_custom_names.edc',
+ 'multiseat_filter.edc',
+ 'perspective.edc',
+ 'signals-messages.edc',
+ 'signalsBubble.edc',
+ 'sigtest.edc',
+ 'svg.edc',
+ 'swallow.edc',
+ 'table.edc',
+ 'text.edc',
+ 'textblock-hyphen.edc',
+ 'toggle_using_filter.edc'
+]
+
+if (get_option('physics'))
+ edc_files += [
+ 'physics_3d.edc',
+ 'physics_actions.edc',
+ 'physics_backcull.edc',
+ 'physics_basic.edc',
+ 'physics_complex.edc',
+ 'physics_soft_bodies.edc'
+ ]
+endif
+
+themes = []
+
+foreach edc_file : edc_files
+ themes += custom_target('edje_cc_' + edc_file,
+ input : edc_file,
+ output : '@BASENAME@.edj',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
+ '-id', meson.current_source_dir(),
+ '-fd', meson.current_source_dir(),
+ '-sd', meson.current_source_dir(),
+ '-vd', meson.current_source_dir(),
+ '-dd', meson.current_source_dir(),
+ '-md', meson.current_source_dir(),
+ '-td', meson.current_source_dir(),
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc, )
+endforeach
+
+codegen = custom_target('edje_cc_codegen_edc',
+ input : 'codegen.edc',
+ output : '@BASENAME@.edj',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
+ '-id', meson.current_source_dir(),
+ '-fd', meson.current_source_dir(),
+ '-sd', meson.current_source_dir(),
+ '-vd', meson.current_source_dir(),
+ '-dd', meson.current_source_dir(),
+ '-md', meson.current_source_dir(),
+ '-td', meson.current_source_dir(),
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc, )
+
+themes += custom_target('edje_codegen_codegen.edj',
+ input : codegen,
+ output : ['@BASENAME@_example_generated.c', '@BASENAME@_example_generated.h'],
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_codegen.full_path(),
+ '--prefix=codegen_example', '@INPUT@',
+ 'example_group', '@OUTPUT0@', '@OUTPUT1@'],
+ depends : [edje_codegen, themes])
+
+edje_examples = [
+ 'animations2',
+ 'edje-animations',
+ 'edje-basic',
+ 'edje-basic2',
+ 'edje-box',
+ 'edje-box2',
+ 'edje-codegen-example',
+ 'edje-color-class',
+ 'edje-drag',
+ 'edje-dynamic-multiseat',
+ 'edje-edit-part-box',
+ 'edje-entry',
+ 'edje-focus',
+ 'edje-multiseat',
+ 'edje-multiseat-custom-names',
+ 'edje-multiseat-filter',
+ 'edje-multisense',
+ 'edje-perspective',
+ 'edje-signals-messages',
+ 'edje-swallow',
+ 'edje-swallow2',
+ 'edje-table',
+ 'edje-text',
+ 'edje-textblock-hyphenation',
+ 'edje_example',
+ 'signals2',
+ 'sigtest',
+ 'svg-test'
+]
+
+foreach edje_example : edje_examples
+ executable(edje_example,
+ [edje_example + '.c'] + themes,
+ dependencies: [edje, ecore_evas],
+ )
+endforeach
diff --git a/src/examples/eet/meson.build b/src/examples/eet/meson.build
new file mode 100644
index 0000000000..98a1120a44
--- /dev/null
+++ b/src/examples/eet/meson.build
@@ -0,0 +1,13 @@
+examples = [
+ 'eet-basic',
+ 'eet-file',
+ 'eet-data-simple',
+ 'eet-data-nested',
+ 'eet-data-file_descriptor_01',
+ 'eet-data-file_descriptor_02',
+ 'eet-data-cipher_decipher'
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: eet)
+endforeach
diff --git a/src/examples/eina/meson.build b/src/examples/eina/meson.build
new file mode 100644
index 0000000000..78aa46a290
--- /dev/null
+++ b/src/examples/eina/meson.build
@@ -0,0 +1,47 @@
+examples = [
+'eina_accessor_01',
+'eina_array_01',
+'eina_array_02',
+'eina_error_01',
+'eina_file_01',
+'eina_file_02',
+'eina_hash_01',
+'eina_hash_02',
+'eina_hash_03',
+'eina_hash_04',
+'eina_hash_05',
+'eina_hash_06',
+'eina_hash_07',
+'eina_hash_08',
+'eina_iterator_01',
+'eina_list_01',
+'eina_list_02',
+'eina_list_03',
+'eina_list_04',
+'eina_log_01',
+'eina_log_02',
+'eina_log_03',
+'eina_inlist_01',
+'eina_inlist_02',
+'eina_inlist_03',
+'eina_str_01',
+'eina_strbuf_01',
+'eina_stringshare_01',
+'eina_tmpstr_01',
+#that examples is using ecore evas ... WTF
+#'eina_tiler_01',
+'eina_simple_xml_parser_01',
+'eina_value_01',
+'eina_value_02',
+'eina_value_03',
+'eina_inarray_01',
+'eina_inarray_02',
+'eina_inarray_03',
+'eina_magic_01',
+'eina_xattr_01',
+'eina_xattr_02'
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: eina)
+endforeach
diff --git a/src/examples/eio/meson.build b/src/examples/eio/meson.build
new file mode 100644
index 0000000000..6524a75840
--- /dev/null
+++ b/src/examples/eio/meson.build
@@ -0,0 +1,15 @@
+files = [
+ 'efl_io_manager_ls',
+ 'efl_io_manager_open',
+ 'efl_io_manager_open_multi',
+ 'eio_file_copy',
+ 'eio_file_ls',
+ 'eio_sentry'
+]
+
+foreach file : files
+ executable(file,
+ file + '.c',
+ dependencies: [ecore, eio],
+ )
+endforeach \ No newline at end of file
diff --git a/src/examples/eldbus/meson.build b/src/examples/eldbus/meson.build
new file mode 100644
index 0000000000..db4dadafcb
--- /dev/null
+++ b/src/examples/eldbus/meson.build
@@ -0,0 +1,17 @@
+examples = [
+ 'connman-list-services',
+ 'ofono-dial',
+ 'banshee',
+ 'complex-types',
+ 'complex-types-server',
+ 'server',
+ 'client',
+ 'simple-signal-emit',
+ 'complex-types-client-eina-value',
+ 'connect-address',
+ 'dbusmodel',
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: [eldbus, ecore])
+endforeach
diff --git a/src/examples/emile/meson.build b/src/examples/emile/meson.build
new file mode 100644
index 0000000000..c628f08ccc
--- /dev/null
+++ b/src/examples/emile/meson.build
@@ -0,0 +1,7 @@
+examples = [
+ 'emile_base64'
+]
+
+foreach example : examples
+ executable(example, example + '.c', dependencies: emile)
+endforeach
diff --git a/src/examples/emotion/meson.build b/src/examples/emotion/meson.build
new file mode 100644
index 0000000000..3a7b46b055
--- /dev/null
+++ b/src/examples/emotion/meson.build
@@ -0,0 +1,14 @@
+files = [
+ 'emotion_basic_example',
+ 'emotion_border_example',
+ 'emotion_generic_example',
+ 'emotion_generic_subtitle_example',
+ 'emotion_signals_example',
+]
+
+foreach file : files
+ executable(file,
+ file + '.c',
+ dependencies: [emotion, evas, ecore_evas, ecore],
+ )
+endforeach \ No newline at end of file
diff --git a/src/examples/ethumb_client/meson.build b/src/examples/ethumb_client/meson.build
new file mode 100644
index 0000000000..d6456027a2
--- /dev/null
+++ b/src/examples/ethumb_client/meson.build
@@ -0,0 +1,10 @@
+files = [
+ 'ethumb_dbus'
+]
+
+foreach file : files
+ executable(file,
+ file + '.c',
+ dependencies: [ethumb, ethumb_client, ecore, eina],
+ )
+endforeach \ No newline at end of file
diff --git a/src/examples/evas/meson.build b/src/examples/evas/meson.build
new file mode 100644
index 0000000000..c07587dec6
--- /dev/null
+++ b/src/examples/evas/meson.build
@@ -0,0 +1,57 @@
+examples = [
+ 'evas-3d-aabb',
+ 'evas-3d-blending',
+ 'evas-3d-colorpick',
+ 'evas-3d-cube2',
+ 'evas-3d-cube',
+ 'evas-3d-cube-rotate',
+ 'evas-3d-eet',
+ 'evas-3d-fog',
+ 'evas-3d-frustum',
+ 'evas-3d-hull',
+ 'evas-3d-md2',
+ 'evas-3d-mmap-set',
+ 'evas-3d-obj',
+ 'evas-3d-parallax-occlusion',
+ 'evas-3d-pick',
+ 'evas-3d-ply',
+ 'evas-3d-proxy',
+ 'evas-3d-shadows',
+ 'evas-3d-static-lod',
+ #'evas-aspect-hints',
+ 'evas-box',
+ 'evas-buffer-simple',
+ 'evas-event-filter',
+ 'evas-events',
+ 'evas-gl',
+ 'evas-hints',
+ 'evas-images2',
+ 'evas-images3',
+ 'evas-images4',
+ 'evas-images5',
+ 'evas-images',
+ 'evas-init-shutdown',
+ 'evas-map-aa',
+ 'evas-map-aa-eo',
+ 'evas-map-utils',
+ 'evas-map-utils-eo',
+ 'evas-multiseat-events',
+ 'evas-multi-touch',
+ 'evas-object-manipulation',
+ 'evas-object-manipulation-eo',
+ 'evas-smart-interface',
+ 'evas-smart-object',
+ 'evas-stacking',
+ 'evas-table',
+ 'evas-textblock-obstacles',
+ 'evas-text',
+ 'evas-transparent',
+ 'evas-vg-batman',
+ 'evas-vg-simple',
+]
+
+foreach example : examples
+ executable(example, example + '.c',
+ dependencies: [eina, ecore_evas, ecore_file, m],
+ c_args : ['-DPACKAGE_EXAMPLES_DIR="'+meson.current_source_dir()+'"'])
+endforeach