diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-08-12 15:26:29 +0200 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-10-02 17:22:50 +0200 |
commit | 46d464e5bfc10398461a33a2256c1c58d509dd1a (patch) | |
tree | 8c1a9272c05f14033a4430bc122632461bd73608 /src/tests/efreet | |
parent | 70ecf1056bb4be5a68b63044f938ccc2fe0a58c0 (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 'src/tests/efreet')
-rw-r--r-- | src/tests/efreet/meson.build | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/tests/efreet/meson.build b/src/tests/efreet/meson.build new file mode 100644 index 0000000..27ce1a0 --- /dev/null +++ b/src/tests/efreet/meson.build | |||
@@ -0,0 +1,66 @@ | |||
1 | efreet_suite_src = [ | ||
2 | 'efreet_suite.c', | ||
3 | 'efreet_suite.h', | ||
4 | 'efreet_test_efreet.c', | ||
5 | 'efreet_test_efreet_cache.c' | ||
6 | ] | ||
7 | |||
8 | efreet_suite = executable('efreet_suite', | ||
9 | efreet_suite_src, | ||
10 | dependencies: [check, efreet], | ||
11 | include_directories : config_dir, | ||
12 | c_args : [ | ||
13 | '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"', | ||
14 | '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"'] | ||
15 | ) | ||
16 | |||
17 | test('efreet-suite', efreet_suite, | ||
18 | env : test_env | ||
19 | ) | ||
20 | |||
21 | efreet_test_src = [ | ||
22 | 'ef_data_dirs.c', | ||
23 | 'ef_desktop.c', | ||
24 | 'ef_icon_theme.c', | ||
25 | 'ef_ini.c', | ||
26 | 'ef_locale.c', | ||
27 | 'ef_menu.c', | ||
28 | 'ef_mime.c', | ||
29 | 'ef_test.h', | ||
30 | 'ef_utils.c', | ||
31 | 'main.c' | ||
32 | ] | ||
33 | |||
34 | efreet_test = executable('efreet_test', | ||
35 | efreet_test_src, | ||
36 | dependencies: [check, efreet, ecore, ecore_file, efreet_mime], | ||
37 | include_directories : config_dir, | ||
38 | c_args : [ | ||
39 | package_c_args, | ||
40 | '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"', | ||
41 | '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"', | ||
42 | '-DDATA_DIR="'+dir_data+'"'] | ||
43 | ) | ||
44 | |||
45 | additional_tests = [ | ||
46 | 'efreet_async_test', | ||
47 | 'efreet_spec_test', | ||
48 | 'efreet_icon_cache_dump', | ||
49 | 'efreet_user_dir', | ||
50 | join_paths('compare', 'efreet_alloc'), | ||
51 | join_paths('compare', 'efreet_menu_alloc') | ||
52 | ] | ||
53 | |||
54 | foreach additional_test : additional_tests | ||
55 | efreet_tmp = executable(additional_test.underscorify(), | ||
56 | additional_test+'.c', | ||
57 | dependencies: [check, efreet, ecore, eet, ecore_file, efreet_mime], | ||
58 | include_directories : config_dir, | ||
59 | c_args : [ | ||
60 | package_c_args, | ||
61 | '-DTESTS_BUILD_DIR="'+meson.current_build_dir()+'"', | ||
62 | '-DTESTS_SRC_DIR="'+meson.current_source_dir()+'"', | ||
63 | '-DDATA_DIR="'+dir_data+'"'] | ||
64 | ) | ||
65 | |||
66 | endforeach | ||