aboutsummaryrefslogtreecommitdiffstats
path: root/data
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 /data
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 'data')
-rw-r--r--data/edje/include/meson.build3
-rw-r--r--data/edje/meson.build5
-rw-r--r--data/elementary/config/default/meson.build7
-rw-r--r--data/elementary/config/meson.build21
-rw-r--r--data/elementary/config/mobile/meson.build7
-rw-r--r--data/elementary/config/standard/meson.build7
-rw-r--r--data/elementary/desktop/meson.build10
-rw-r--r--data/elementary/edje_externals/meson.build11
-rw-r--r--data/elementary/meson.build10
-rw-r--r--data/elementary/objects/meson.build42
-rw-r--r--data/elementary/themes/meson.build37
-rw-r--r--data/embryo/meson.build3
-rw-r--r--data/eo/meson.build13
-rw-r--r--data/ethumb/frames/meson.build14
-rw-r--r--data/meson.build12
15 files changed, 202 insertions, 0 deletions
diff --git a/data/edje/include/meson.build b/data/edje/include/meson.build
new file mode 100644
index 0000000000..943eb8a6c9
--- /dev/null
+++ b/data/edje/include/meson.build
@@ -0,0 +1,3 @@
+install_data('edje.inc',
+ install_dir : join_paths(dir_data, 'edje', 'include')
+) \ No newline at end of file
diff --git a/data/edje/meson.build b/data/edje/meson.build
new file mode 100644
index 0000000000..05f4f39a03
--- /dev/null
+++ b/data/edje/meson.build
@@ -0,0 +1,5 @@
+subdir('include')
+
+install_data(files('edje.xml'),
+ install_dir : join_paths(dir_data, 'mime', 'packages')
+)
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),
+ )
diff --git a/data/elementary/desktop/meson.build b/data/elementary/desktop/meson.build
new file mode 100644
index 0000000000..9acaa8f1fb
--- /dev/null
+++ b/data/elementary/desktop/meson.build
@@ -0,0 +1,10 @@
+desktop_files = files('elementary_config.desktop', 'elementary_test.desktop')
+elementary_icon = files('elementary.png')
+
+install_data(desktop_files,
+ install_dir : join_paths(dir_data, 'applications')
+)
+
+install_data(elementary_icon,
+ install_dir : join_paths(dir_data, 'icons', 'hicolor', '128x128', 'apps')
+)
diff --git a/data/elementary/edje_externals/meson.build b/data/elementary/edje_externals/meson.build
new file mode 100644
index 0000000000..cc24430052
--- /dev/null
+++ b/data/elementary/edje_externals/meson.build
@@ -0,0 +1,11 @@
+custom_target('edje_cc_edje_externals',
+ input : 'icons.edc',
+ output : '@BASENAME@.edj',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
+ '-id', join_paths(meson.current_source_dir()),
+ '-id', elm_themes_image_include,
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc,
+ install : true,
+ install_dir : join_paths(dir_data, 'elementary', 'edje_externals'),
+)
diff --git a/data/elementary/meson.build b/data/elementary/meson.build
new file mode 100644
index 0000000000..ed7d1e4204
--- /dev/null
+++ b/data/elementary/meson.build
@@ -0,0 +1,10 @@
+subdir('config')
+subdir('desktop')
+subdir('themes')
+subdir('objects')
+subdir('edje_externals')
+
+install_subdir('images',
+ install_dir : join_paths(dir_data, 'elementary'),
+ exclude_files : ['Makefile.am']
+)
diff --git a/data/elementary/objects/meson.build b/data/elementary/objects/meson.build
new file mode 100644
index 0000000000..a25a719852
--- /dev/null
+++ b/data/elementary/objects/meson.build
@@ -0,0 +1,42 @@
+edc_files = [
+ 'test.edc',
+ 'test_external.edc',
+ 'test_focus_style.edc',
+ 'test_masking.edc',
+ 'test_tab_pager.edc',
+ 'test_tooltip.edc',
+ 'test_prefs.edc',
+ 'cursors.edc',
+ 'font_preview.edc',
+ 'multibuttonentry.edc',
+ 'multip.edc',
+ 'postit_ent.edc'
+]
+
+elm_themes = []
+
+foreach edc_file : edc_files
+ elm_themes += custom_target('edje_cc_elm_' + edc_file,
+ input : edc_file,
+ output : '@BASENAME@.edj',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
+ '-sd', join_paths(meson.current_source_dir()),
+ '-id', elm_themes_image_include,
+ '-id', join_paths(meson.current_source_dir()),
+ '-fd', join_paths(meson.current_source_dir()),
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc,
+ install : true,
+ install_dir : join_paths(dir_data, 'elementary', 'objects'),
+ )
+endforeach
+
+custom_target('prefs_compile',
+ input: 'test_prefs.epc',
+ output: 'test_prefs.epb',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path(),
+ '@INPUT@', '@OUTPUT@'],
+ depends : elm_prefs_cc,
+ install : true,
+ install_dir : join_paths(dir_data, 'elementary', 'objects'),
+)
diff --git a/data/elementary/themes/meson.build b/data/elementary/themes/meson.build
new file mode 100644
index 0000000000..c8c8816470
--- /dev/null
+++ b/data/elementary/themes/meson.build
@@ -0,0 +1,37 @@
+edc_files = [
+ 'default.edc',
+]
+
+elm_themes = []
+
+elm_themes_image_include = join_paths(meson.current_source_dir(), 'img')
+
+foreach edc_file : edc_files
+ elm_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',
+ '-sd', join_paths(meson.current_source_dir(), 'snd'),
+ '-id', elm_themes_image_include,
+ '-id', join_paths(meson.current_source_dir(), 'fdo'),
+ '-fd', join_paths(meson.current_source_dir(), 'fnt'),
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc,
+ install : true,
+ install_dir : join_paths(dir_data, 'elementary', 'themes'),
+ )
+endforeach
+
+install_subdir('fdo',
+ install_dir : join_paths(dir_data, 'icons', 'Enlightenment-X'),
+ strip_directory : true,
+ exclude_directories : [
+ join_paths('status', '128-svg'),
+ join_paths('places', '16-svg'),
+ join_paths('places', '128-svg'),
+ join_paths('emblems', '96-svg'),
+ join_paths('devices', '128-svg'),
+ join_paths('categories', '128-svg'),
+ join_paths('actions', '128-svg'),
+ ]
+)
diff --git a/data/embryo/meson.build b/data/embryo/meson.build
new file mode 100644
index 0000000000..d1f049e467
--- /dev/null
+++ b/data/embryo/meson.build
@@ -0,0 +1,3 @@
+install_data('default.inc',
+ install_dir : join_paths(dir_data, 'embryo', 'include')
+)
diff --git a/data/eo/meson.build b/data/eo/meson.build
new file mode 100644
index 0000000000..8ccb578f7d
--- /dev/null
+++ b/data/eo/meson.build
@@ -0,0 +1,13 @@
+install_data('eo_gdb.py',
+ install_dir : join_paths(dir_data, 'eo', 'gdb')
+)
+
+configuration = configuration_data()
+configuration.set('datadir', dir_data)
+
+configure_file(
+ input: 'libeo-gdb.py.in',
+ output: 'libeo.so.'+meson.project_version()+'-gdb.py',
+ configuration: configuration,
+ install_dir: join_paths(dir_data, 'gdb', 'autoload', 'usr', 'lib')
+)
diff --git a/data/ethumb/frames/meson.build b/data/ethumb/frames/meson.build
new file mode 100644
index 0000000000..a696af0c41
--- /dev/null
+++ b/data/ethumb/frames/meson.build
@@ -0,0 +1,14 @@
+ethumb_frame = files('default.edc')
+
+custom_target('edje_cc_ethumb_frame',
+ input : ethumb_frame,
+ output : '@BASENAME@.edj',
+ command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
+ '-sd', join_paths(meson.current_source_dir()),
+ '-id', join_paths(meson.current_source_dir()),
+ '-fd', join_paths(meson.current_source_dir()),
+ '@INPUT@', '@OUTPUT@'],
+ depends : edje_cc,
+ install : true,
+ install_dir : join_paths(dir_data, 'ethumb', 'frames'),
+)
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000000..4e1f68d406
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,12 @@
+checkme_files = ['ecore', 'ecore_imf', 'ecore_x', 'eeze', 'efreet', 'elua', 'emotion', 'ethumb', 'ethumb_client', 'evas']
+foreach checkme : checkme_files
+ install_data(join_paths(checkme, 'checkme'),
+ install_dir : join_paths(dir_data, checkme)
+ )
+endforeach
+
+subdir('eo')
+subdir('edje')
+subdir('embryo')
+subdir(join_paths('ethumb', 'frames'))
+subdir('elementary')