From 46d464e5bfc10398461a33a2256c1c58d509dd1a Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 12 Aug 2018 15:26:29 +0200 Subject: 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 Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011 --- data/elementary/config/default/meson.build | 7 +++++++ data/elementary/config/meson.build | 21 +++++++++++++++++++++ data/elementary/config/mobile/meson.build | 7 +++++++ data/elementary/config/standard/meson.build | 7 +++++++ 4 files changed, 42 insertions(+) create mode 100644 data/elementary/config/default/meson.build create mode 100644 data/elementary/config/meson.build create mode 100644 data/elementary/config/mobile/meson.build create mode 100644 data/elementary/config/standard/meson.build (limited to 'data/elementary/config') diff --git a/data/elementary/config/default/meson.build b/data/elementary/config/default/meson.build new file mode 100644 index 0000000000..983eb9d8d4 --- /dev/null +++ b/data/elementary/config/default/meson.build @@ -0,0 +1,7 @@ +custom_target('config_'+config, + input: config_file, + output: 'base.cfg', + command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'], + install: true, + install_dir: join_paths(dir_data, 'elementary', 'config', config), +) diff --git a/data/elementary/config/meson.build b/data/elementary/config/meson.build new file mode 100644 index 0000000000..12a81ef03f --- /dev/null +++ b/data/elementary/config/meson.build @@ -0,0 +1,21 @@ +configs = ['default', 'mobile', 'standard'] + +foreach config : configs + config_file = join_paths(meson.current_source_dir(), config, 'base.src.in') + config_icon = join_paths(meson.current_source_dir(), config, 'icon.png') + config_desktop = join_paths(meson.current_source_dir(), config, 'profile.desktop') + + install_data([config_icon, config_desktop], + install_dir : join_paths(dir_data, 'elementary', 'config', config) + ) + + subdir(config) +endforeach + +custom_target('config_profile', + input: 'profile.src', + output: 'profile.cfg', + command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'], + install: true, + install_dir: join_paths(dir_data, 'elementary', 'config'), +) diff --git a/data/elementary/config/mobile/meson.build b/data/elementary/config/mobile/meson.build new file mode 100644 index 0000000000..c3a8a44de9 --- /dev/null +++ b/data/elementary/config/mobile/meson.build @@ -0,0 +1,7 @@ + custom_target('config_'+config, + input: config_file, + output: 'base.cfg', + command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'], + install: true, + install_dir: join_paths(dir_data, 'elementary', 'config', config), + ) diff --git a/data/elementary/config/standard/meson.build b/data/elementary/config/standard/meson.build new file mode 100644 index 0000000000..c3a8a44de9 --- /dev/null +++ b/data/elementary/config/standard/meson.build @@ -0,0 +1,7 @@ + custom_target('config_'+config, + input: config_file, + output: 'base.cfg', + command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'], + install: true, + install_dir: join_paths(dir_data, 'elementary', 'config', config), + ) -- cgit v1.2.1