summaryrefslogtreecommitdiff
path: root/src/lib/efreet
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/lib/efreet
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 'src/lib/efreet')
-rw-r--r--src/lib/efreet/meson.build96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/lib/efreet/meson.build b/src/lib/efreet/meson.build
new file mode 100644
index 0000000000..fc4a232c38
--- /dev/null
+++ b/src/lib/efreet/meson.build
@@ -0,0 +1,96 @@
1efreet_header_src = [
2 'Efreet.h',
3 'efreet_base.h',
4 'efreet_desktop.h',
5 'efreet_icon.h',
6 'efreet_ini.h',
7 'efreet_menu.h',
8 'efreet_utils.h',
9 'efreet_uri.h',
10 'Efreet_Mime.h',
11 'Efreet_Trash.h'
12]
13
14efreet_src = [
15 'efreet.c',
16 'efreet_base.c',
17 'efreet_icon.c',
18 'efreet_xml.c',
19 'efreet_ini.c',
20 'efreet_desktop.c',
21 'efreet_desktop_command.c',
22 'efreet_menu.c',
23 'efreet_utils.c',
24 'efreet_uri.c',
25 'efreet_cache.c',
26 'efreet_private.h',
27 'efreet_xml.h',
28 'efreet_cache_private.h'
29]
30
31efreet_deps = [eet, ecore, ecore_con, ecore_file, eo, efl, eina, emile, ecore_ipc, buildsystem,intl]
32efreet_pub_deps = [eina, eo, efl]
33
34efreet_lib = library('efreet',
35 efreet_src,
36 dependencies: efreet_pub_deps + [m] + efreet_deps,
37 include_directories : config_dir + [include_directories('.')],
38 install: true,
39 c_args : [package_c_args, '-DDATA_DIR="'+dir_data+'"'],
40 version : meson.project_version()
41)
42
43efreet = declare_dependency(
44 include_directories: [include_directories('.')],
45 link_with: efreet_lib,
46 dependencies: efreet_pub_deps,
47)
48
49efreet_mime_lib = library('efreet_mime',
50 'efreet_mime.c',
51 dependencies: efreet_pub_deps + [m, efreet, efreet_deps],
52 include_directories : config_dir + [include_directories('.')],
53 install: true,
54 c_args : package_c_args,
55 version : meson.project_version()
56)
57
58
59efreet_mime = declare_dependency(
60 include_directories: [include_directories('.')],
61 link_with: efreet_mime_lib,
62 dependencies: efreet_pub_deps
63)
64
65efreet_trash_lib = library('efreet_trash',
66 'efreet_trash.c',
67 dependencies: efreet_pub_deps + [efreet, efreet_deps],
68 include_directories : config_dir + [include_directories('.')],
69 install: true,
70 c_args : package_c_args,
71 version : meson.project_version()
72)
73
74efreet_trash = declare_dependency(
75 include_directories: [include_directories('.')],
76 link_with: efreet_trash_lib,
77 dependencies: efreet_pub_deps,
78)
79
80install_headers(efreet_header_src,
81 install_dir : dir_package_include,
82)
83
84pkgconfig.generate(efreet_mime_lib,
85 name : 'efreet-mime',
86 subdirs : package_version_name,
87 version : version_major + '.' + version_minor,
88 libraries : [tmp_deps] + tmp_pub_deps,
89)
90
91pkgconfig.generate(efreet_trash_lib,
92 name : 'efreet-trash',
93 subdirs : package_version_name,
94 version : version_major + '.' + version_minor,
95 libraries : [tmp_deps] + tmp_pub_deps,
96)