summaryrefslogtreecommitdiff
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
parent70ecf1056bb4be5a68b63044f938ccc2fe0a58c0 (diff)
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 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 0000000..943eb8a
--- /dev/null
+++ b/data/edje/include/meson.build
@@ -0,0 +1,3 @@
1install_data('edje.inc',
2 install_dir : join_paths(dir_data, 'edje', 'include')
3) \ No newline at end of file
diff --git a/data/edje/meson.build b/data/edje/meson.build
new file mode 100644
index 0000000..05f4f39
--- /dev/null
+++ b/data/edje/meson.build
@@ -0,0 +1,5 @@
1subdir('include')
2
3install_data(files('edje.xml'),
4 install_dir : join_paths(dir_data, 'mime', 'packages')
5)
diff --git a/data/elementary/config/default/meson.build b/data/elementary/config/default/meson.build
new file mode 100644
index 0000000..983eb9d
--- /dev/null
+++ b/data/elementary/config/default/meson.build
@@ -0,0 +1,7 @@
1custom_target('config_'+config,
2 input: config_file,
3 output: 'base.cfg',
4 command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'],
5 install: true,
6 install_dir: join_paths(dir_data, 'elementary', 'config', config),
7)
diff --git a/data/elementary/config/meson.build b/data/elementary/config/meson.build
new file mode 100644
index 0000000..12a81ef
--- /dev/null
+++ b/data/elementary/config/meson.build
@@ -0,0 +1,21 @@
1configs = ['default', 'mobile', 'standard']
2
3foreach config : configs
4 config_file = join_paths(meson.current_source_dir(), config, 'base.src.in')
5 config_icon = join_paths(meson.current_source_dir(), config, 'icon.png')
6 config_desktop = join_paths(meson.current_source_dir(), config, 'profile.desktop')
7
8 install_data([config_icon, config_desktop],
9 install_dir : join_paths(dir_data, 'elementary', 'config', config)
10 )
11
12 subdir(config)
13endforeach
14
15custom_target('config_profile',
16 input: 'profile.src',
17 output: 'profile.cfg',
18 command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'],
19 install: true,
20 install_dir: join_paths(dir_data, 'elementary', 'config'),
21)
diff --git a/data/elementary/config/mobile/meson.build b/data/elementary/config/mobile/meson.build
new file mode 100644
index 0000000..c3a8a44
--- /dev/null
+++ b/data/elementary/config/mobile/meson.build
@@ -0,0 +1,7 @@
1 custom_target('config_'+config,
2 input: config_file,
3 output: 'base.cfg',
4 command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'],
5 install: true,
6 install_dir: join_paths(dir_data, 'elementary', 'config', config),
7 )
diff --git a/data/elementary/config/standard/meson.build b/data/elementary/config/standard/meson.build
new file mode 100644
index 0000000..c3a8a44
--- /dev/null
+++ b/data/elementary/config/standard/meson.build
@@ -0,0 +1,7 @@
1 custom_target('config_'+config,
2 input: config_file,
3 output: 'base.cfg',
4 command: [eet_bin, '-i', '@OUTPUT@', 'config', '@INPUT@', '0'],
5 install: true,
6 install_dir: join_paths(dir_data, 'elementary', 'config', config),
7 )
diff --git a/data/elementary/desktop/meson.build b/data/elementary/desktop/meson.build
new file mode 100644
index 0000000..9acaa8f
--- /dev/null
+++ b/data/elementary/desktop/meson.build
@@ -0,0 +1,10 @@
1desktop_files = files('elementary_config.desktop', 'elementary_test.desktop')
2elementary_icon = files('elementary.png')
3
4install_data(desktop_files,
5 install_dir : join_paths(dir_data, 'applications')
6)
7
8install_data(elementary_icon,
9 install_dir : join_paths(dir_data, 'icons', 'hicolor', '128x128', 'apps')
10)
diff --git a/data/elementary/edje_externals/meson.build b/data/elementary/edje_externals/meson.build
new file mode 100644
index 0000000..cc24430
--- /dev/null
+++ b/data/elementary/edje_externals/meson.build
@@ -0,0 +1,11 @@
1custom_target('edje_cc_edje_externals',
2 input : 'icons.edc',
3 output : '@BASENAME@.edj',
4 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
5 '-id', join_paths(meson.current_source_dir()),
6 '-id', elm_themes_image_include,
7 '@INPUT@', '@OUTPUT@'],
8 depends : edje_cc,
9 install : true,
10 install_dir : join_paths(dir_data, 'elementary', 'edje_externals'),
11)
diff --git a/data/elementary/meson.build b/data/elementary/meson.build
new file mode 100644
index 0000000..ed7d1e4
--- /dev/null
+++ b/data/elementary/meson.build
@@ -0,0 +1,10 @@
1subdir('config')
2subdir('desktop')
3subdir('themes')
4subdir('objects')
5subdir('edje_externals')
6
7install_subdir('images',
8 install_dir : join_paths(dir_data, 'elementary'),
9 exclude_files : ['Makefile.am']
10)
diff --git a/data/elementary/objects/meson.build b/data/elementary/objects/meson.build
new file mode 100644
index 0000000..a25a719
--- /dev/null
+++ b/data/elementary/objects/meson.build
@@ -0,0 +1,42 @@
1edc_files = [
2 'test.edc',
3 'test_external.edc',
4 'test_focus_style.edc',
5 'test_masking.edc',
6 'test_tab_pager.edc',
7 'test_tooltip.edc',
8 'test_prefs.edc',
9 'cursors.edc',
10 'font_preview.edc',
11 'multibuttonentry.edc',
12 'multip.edc',
13 'postit_ent.edc'
14]
15
16elm_themes = []
17
18foreach edc_file : edc_files
19 elm_themes += custom_target('edje_cc_elm_' + edc_file,
20 input : edc_file,
21 output : '@BASENAME@.edj',
22 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
23 '-sd', join_paths(meson.current_source_dir()),
24 '-id', elm_themes_image_include,
25 '-id', join_paths(meson.current_source_dir()),
26 '-fd', join_paths(meson.current_source_dir()),
27 '@INPUT@', '@OUTPUT@'],
28 depends : edje_cc,
29 install : true,
30 install_dir : join_paths(dir_data, 'elementary', 'objects'),
31 )
32endforeach
33
34custom_target('prefs_compile',
35 input: 'test_prefs.epc',
36 output: 'test_prefs.epb',
37 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path(),
38 '@INPUT@', '@OUTPUT@'],
39 depends : elm_prefs_cc,
40 install : true,
41 install_dir : join_paths(dir_data, 'elementary', 'objects'),
42)
diff --git a/data/elementary/themes/meson.build b/data/elementary/themes/meson.build
new file mode 100644
index 0000000..c8c8816
--- /dev/null
+++ b/data/elementary/themes/meson.build
@@ -0,0 +1,37 @@
1edc_files = [
2 'default.edc',
3]
4
5elm_themes = []
6
7elm_themes_image_include = join_paths(meson.current_source_dir(), 'img')
8
9foreach edc_file : edc_files
10 elm_themes += custom_target('edje_cc_' + edc_file,
11 input : edc_file,
12 output : '@BASENAME@.edj',
13 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
14 '-sd', join_paths(meson.current_source_dir(), 'snd'),
15 '-id', elm_themes_image_include,
16 '-id', join_paths(meson.current_source_dir(), 'fdo'),
17 '-fd', join_paths(meson.current_source_dir(), 'fnt'),
18 '@INPUT@', '@OUTPUT@'],
19 depends : edje_cc,
20 install : true,
21 install_dir : join_paths(dir_data, 'elementary', 'themes'),
22 )
23endforeach
24
25install_subdir('fdo',
26 install_dir : join_paths(dir_data, 'icons', 'Enlightenment-X'),
27 strip_directory : true,
28 exclude_directories : [
29 join_paths('status', '128-svg'),
30 join_paths('places', '16-svg'),
31 join_paths('places', '128-svg'),
32 join_paths('emblems', '96-svg'),
33 join_paths('devices', '128-svg'),
34 join_paths('categories', '128-svg'),
35 join_paths('actions', '128-svg'),
36 ]
37)
diff --git a/data/embryo/meson.build b/data/embryo/meson.build
new file mode 100644
index 0000000..d1f049e
--- /dev/null
+++ b/data/embryo/meson.build
@@ -0,0 +1,3 @@
1install_data('default.inc',
2 install_dir : join_paths(dir_data, 'embryo', 'include')
3)
diff --git a/data/eo/meson.build b/data/eo/meson.build
new file mode 100644
index 0000000..8ccb578
--- /dev/null
+++ b/data/eo/meson.build
@@ -0,0 +1,13 @@
1install_data('eo_gdb.py',
2 install_dir : join_paths(dir_data, 'eo', 'gdb')
3)
4
5configuration = configuration_data()
6configuration.set('datadir', dir_data)
7
8configure_file(
9 input: 'libeo-gdb.py.in',
10 output: 'libeo.so.'+meson.project_version()+'-gdb.py',
11 configuration: configuration,
12 install_dir: join_paths(dir_data, 'gdb', 'autoload', 'usr', 'lib')
13)
diff --git a/data/ethumb/frames/meson.build b/data/ethumb/frames/meson.build
new file mode 100644
index 0000000..a696af0
--- /dev/null
+++ b/data/ethumb/frames/meson.build
@@ -0,0 +1,14 @@
1ethumb_frame = files('default.edc')
2
3custom_target('edje_cc_ethumb_frame',
4 input : ethumb_frame,
5 output : '@BASENAME@.edj',
6 command : ['/usr/bin/env', 'EFL_RUN_IN_TREE=1', edje_cc.full_path(), '-beta',
7 '-sd', join_paths(meson.current_source_dir()),
8 '-id', join_paths(meson.current_source_dir()),
9 '-fd', join_paths(meson.current_source_dir()),
10 '@INPUT@', '@OUTPUT@'],
11 depends : edje_cc,
12 install : true,
13 install_dir : join_paths(dir_data, 'ethumb', 'frames'),
14)
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..4e1f68d
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,12 @@
1checkme_files = ['ecore', 'ecore_imf', 'ecore_x', 'eeze', 'efreet', 'elua', 'emotion', 'ethumb', 'ethumb_client', 'evas']
2foreach checkme : checkme_files
3 install_data(join_paths(checkme, 'checkme'),
4 install_dir : join_paths(dir_data, checkme)
5 )
6endforeach
7
8subdir('eo')
9subdir('edje')
10subdir('embryo')
11subdir(join_paths('ethumb', 'frames'))
12subdir('elementary')