summaryrefslogtreecommitdiff
path: root/src/modules/ecore_buffer
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/modules/ecore_buffer
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/modules/ecore_buffer')
-rw-r--r--src/modules/ecore_buffer/meson.build25
-rw-r--r--src/modules/ecore_buffer/shm/meson.build5
-rw-r--r--src/modules/ecore_buffer/x11_dri2/meson.build5
-rw-r--r--src/modules/ecore_buffer/x11_dri3/meson.build7
4 files changed, 42 insertions, 0 deletions
diff --git a/src/modules/ecore_buffer/meson.build b/src/modules/ecore_buffer/meson.build
new file mode 100644
index 0000000000..00f393fdb4
--- /dev/null
+++ b/src/modules/ecore_buffer/meson.build
@@ -0,0 +1,25 @@
1
2
3subdir('shm')
4
5#common dri packages
6libtbm = dependency('libtbm', required: false)
7libdrm = dependency('libdrm', required: false)
8
9if libtbm.found() == true and libdrm.found() == true
10 libdri2 = dependency('libdri2', required: false)
11 if libdri2.found()
12 subdir('x11_dri2')
13 endif
14endif
15
16if libtbm.found() == true and libdrm.found() == true
17 xshmfence = dependency('xshmfence', required: false)
18 xcb = dependency('xcb', required: false)
19 x11_xcb = dependency('x11_xcb', required: false)
20 xcb_sync = dependency('xcb_sync', required: false)
21 xcb_dri3 = dependency('xkb_dri3', required: false)
22 if xshmfence.found() == true and xcb.found() == true and x11_xcb.found() and xcb_sync.found() and xkb_dri3.found()
23 subdir('x11_dri3')
24 endif
25endif
diff --git a/src/modules/ecore_buffer/shm/meson.build b/src/modules/ecore_buffer/shm/meson.build
new file mode 100644
index 0000000000..30da825227
--- /dev/null
+++ b/src/modules/ecore_buffer/shm/meson.build
@@ -0,0 +1,5 @@
1ecore_buffer_shm_mod = shared_module('ecore_buffer_shm_mod',
2 'ecore_buffer_shm.c',
3 dependencies: [ecore, ecore_buffer],
4 install: true
5) \ No newline at end of file
diff --git a/src/modules/ecore_buffer/x11_dri2/meson.build b/src/modules/ecore_buffer/x11_dri2/meson.build
new file mode 100644
index 0000000000..37ed534bd3
--- /dev/null
+++ b/src/modules/ecore_buffer/x11_dri2/meson.build
@@ -0,0 +1,5 @@
1ecore_buffer_x11_dri2_mod = shared_module('ecore_buffer_x11_dri2_mod',
2 'ecore_buffer_x11_dri2.c',
3 dependencies: [ecore, ecore_buffer, ecore_x],
4 install: true
5) \ No newline at end of file
diff --git a/src/modules/ecore_buffer/x11_dri3/meson.build b/src/modules/ecore_buffer/x11_dri3/meson.build
new file mode 100644
index 0000000000..5126fff6ca
--- /dev/null
+++ b/src/modules/ecore_buffer/x11_dri3/meson.build
@@ -0,0 +1,7 @@
1if dependency('libtbm', required: false).found() == true and dependency('libdrm', required: false).found()
2 ecore_buffer_x11_dri3_mod = shared_module('ecore_buffer_x11_dri3_mod',
3 'ecore_buffer_x11_dri3.c',
4 dependencies: [ecore, ecore_buffer, ecore_x],
5 install: true
6 )
7endif \ No newline at end of file