summaryrefslogtreecommitdiff
path: root/src/generic
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/generic
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/generic')
-rw-r--r--src/generic/emotion/meson.build8
-rw-r--r--src/generic/emotion/vlc/meson.build8
-rw-r--r--src/generic/evas/common/meson.build6
-rw-r--r--src/generic/evas/gst/meson.build14
-rw-r--r--src/generic/evas/meson.build42
-rw-r--r--src/generic/evas/pdf/meson.build14
-rw-r--r--src/generic/evas/ps/meson.build5
-rw-r--r--src/generic/evas/raw/meson.build6
-rw-r--r--src/generic/evas/svg/meson.build12
-rw-r--r--src/generic/evas/xcf/meson.build8
10 files changed, 123 insertions, 0 deletions
diff --git a/src/generic/emotion/meson.build b/src/generic/emotion/meson.build
new file mode 100644
index 0000000000..58cd5294aa
--- /dev/null
+++ b/src/generic/emotion/meson.build
@@ -0,0 +1,8 @@
1generic_loaders = ['vlc']
2
3foreach loader : generic_loaders
4 if get_option('emotion-generic-loaders-disabler').contains(loader) == false
5 subdir(loader)
6 endif
7endforeach
8
diff --git a/src/generic/emotion/vlc/meson.build b/src/generic/emotion/vlc/meson.build
new file mode 100644
index 0000000000..b21f4a16df
--- /dev/null
+++ b/src/generic/emotion/vlc/meson.build
@@ -0,0 +1,8 @@
1vlc = dependency('libvlc')
2
3executable('vlc',
4 'emotion_generic_vlc.c',
5 dependencies: [emotion_generic, eina, ecore, rt, vlc],
6 install: true,
7 install_dir: join_paths(dir_lib, 'emotion', 'generic_players', version_name)
8)
diff --git a/src/generic/evas/common/meson.build b/src/generic/evas/common/meson.build
new file mode 100644
index 0000000000..b90705e4c3
--- /dev/null
+++ b/src/generic/evas/common/meson.build
@@ -0,0 +1,6 @@
1generic_src = files([
2 'shmfile.c',
3 'shmfile.h',
4 'timeout.c',
5 'timeout.h',
6])
diff --git a/src/generic/evas/gst/meson.build b/src/generic/evas/gst/meson.build
new file mode 100644
index 0000000000..9689aee80a
--- /dev/null
+++ b/src/generic/evas/gst/meson.build
@@ -0,0 +1,14 @@
1
2# gstreamer 0.1 support
3#generic_deps = [dependency('gstreamer')]
4#generic_src = files([
5# 'main_0_10.c'
6#])
7
8
9generic_src = files([
10 'main.c'
11])
12
13generic_deps = [dependency('gstreamer-1.0')]
14generic_support = ['264','3g2','3gp','3gp2','3gpp','3gpp2','3p2','asf','avi','bdm','bdmv','clpi','cpi','dv','fla','flv','m1v','m2t','m2v','m4v','mkv','mov','mp2','mp2ts','mp4','mpe','mpeg','mpg','mpl','mpls','mts','mxf','nut','nuv','ogg','ogm','ogv','qt','rm','rmj','rmm','rms','rmx','rmvb','rv','swf','ts','webm','weba','wmv'] \ No newline at end of file
diff --git a/src/generic/evas/meson.build b/src/generic/evas/meson.build
new file mode 100644
index 0000000000..80a679b230
--- /dev/null
+++ b/src/generic/evas/meson.build
@@ -0,0 +1,42 @@
1generic_loaders = ['gst', 'pdf',
2'ps',
3'raw',
4'svg',
5'xcf']
6
7generic_src = []
8generic_deps = []
9
10subdir('common')
11
12common = static_library('evas_loader_common',
13 generic_src,
14 include_directories : config_dir,
15 dependencies: [generic_deps, rt],
16)
17
18foreach loader : generic_loaders
19 generic_src = []
20 generic_deps = []
21 generic_support = []
22
23 if get_option('evas-loaders-disabler').contains(loader) == false
24 subdir(loader)
25
26 tmp = shared_module('image_loader.'+loader,
27 generic_src,
28 include_directories : config_dir + [include_directories('common')],
29 link_with : common,
30 dependencies: [eina, generic_deps],
31 name_prefix : 'evas_',
32 install_dir : join_paths(dir_lib, 'evas', 'utils'),
33 install : true,
34 )
35
36 set_variable(loader, tmp)
37 mod = join_paths(dir_lib, 'evas', 'utils', 'evas_image_loader.'+loader+'.'+sys_mod_extension)
38 evas_loader_map += [[mod, generic_support]]
39 else
40 message('Image loader '+loader+' disabled')
41 endif
42endforeach
diff --git a/src/generic/evas/pdf/meson.build b/src/generic/evas/pdf/meson.build
new file mode 100644
index 0000000000..941918104b
--- /dev/null
+++ b/src/generic/evas/pdf/meson.build
@@ -0,0 +1,14 @@
1generic_src = files([
2 'main.cpp'
3])
4
5generic_deps = [dependency('poppler-cpp')]
6generic_support = ['ppt','pptx','odp','xls','xlsx','ods','doc','docx','odt','rtf']
7
8install_data('evas_generic_pdf_loader.libreoffice',
9 install_dir : join_paths(dir_lib, 'evas', 'utils')
10)
11
12generic_pdf_loader_types = ['ppt','pptx','odp','xls','xlsx','ods','doc','docx','odt','rtf']
13
14meson.add_install_script( join_paths('..','..','..','..','meson','evas_loader_conf.sh'), join_paths(dir_lib, 'evas', 'utils', 'evas_generic_pdf_loader.libreoffice'), generic_pdf_loader_types) \ No newline at end of file
diff --git a/src/generic/evas/ps/meson.build b/src/generic/evas/ps/meson.build
new file mode 100644
index 0000000000..ca52781307
--- /dev/null
+++ b/src/generic/evas/ps/meson.build
@@ -0,0 +1,5 @@
1generic_src = files([
2 'main.c'
3])
4
5generic_deps = [dependency('libspectre')]
diff --git a/src/generic/evas/raw/meson.build b/src/generic/evas/raw/meson.build
new file mode 100644
index 0000000000..6843d01e90
--- /dev/null
+++ b/src/generic/evas/raw/meson.build
@@ -0,0 +1,6 @@
1generic_src = files([
2 'main.c'
3])
4
5generic_deps = [dependency('libraw')]
6generic_support = ['arw','cr2','crw','dcr','dng','k25','kdc','erf','mrw','nef','nrf','nrw','orf','rw2','pef','raf','sr2','srf','x3f'] \ No newline at end of file
diff --git a/src/generic/evas/svg/meson.build b/src/generic/evas/svg/meson.build
new file mode 100644
index 0000000000..4e39e74ee5
--- /dev/null
+++ b/src/generic/evas/svg/meson.build
@@ -0,0 +1,12 @@
1generic_src = files([
2 'main.c'
3])
4
5rsvg = dependency('librsvg-2.0')
6
7if rsvg.version() >= '2.36.0'
8 config_h.set('HAVE_SVG_2_36', '1')
9endif
10
11generic_deps = [rsvg]
12generic_support = ['svgz', 'svg.gz']
diff --git a/src/generic/evas/xcf/meson.build b/src/generic/evas/xcf/meson.build
new file mode 100644
index 0000000000..0f5fb208c5
--- /dev/null
+++ b/src/generic/evas/xcf/meson.build
@@ -0,0 +1,8 @@
1generic_src = files([
2 'common.h',
3 'main.c',
4 'pixelfuncs.c'
5])
6
7generic_deps = [dependency('zlib')]
8generic_support = ['xcf.gz'] \ No newline at end of file