summaryrefslogtreecommitdiff
path: root/src/lib/evas/file
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-07-02 11:00:44 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-02 16:58:10 +0900
commitc39b714868be6e82daa48a04b9e223af471b86b0 (patch)
tree1fdacdd8a2449edc61c7cd1ac2b8dd56292fa565 /src/lib/evas/file
parent26e01c0ff6711114c4e3985d51e1208b77fa3fd8 (diff)
evas/modules: Add preprocessor ifs
We'll want to distinguish full builds for evas and partial builds for cserve2 slaves. Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
Diffstat (limited to 'src/lib/evas/file')
-rw-r--r--src/lib/evas/file/evas_module.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 7a4f8aee4b..0122482361 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -8,6 +8,19 @@
8#include "evas_private.h" 8#include "evas_private.h"
9 9
10 10
11#ifndef EVAS_MODULE_NO_ENGINES
12#define EVAS_MODULE_NO_ENGINES 0
13#endif
14
15#ifndef EVAS_MODULE_NO_IMAGE_LOADERS
16#define EVAS_MODULE_NO_IMAGE_LOADERS 0
17#endif
18
19#ifndef EVAS_MODULE_NO_IMAGE_SAVERS
20#define EVAS_MODULE_NO_IMAGE_SAVERS 0
21#endif
22
23
11static Eina_Hash *evas_modules[4] = { 24static Eina_Hash *evas_modules[4] = {
12 NULL, 25 NULL,
13 NULL, 26 NULL,
@@ -102,6 +115,7 @@ evas_module_paths_init(void)
102#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name) \ 115#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name) \
103 { evas_##Tn##_##Name##_init, evas_##Tn##_##Name##_shutdown } 116 { evas_##Tn##_##Name##_init, evas_##Tn##_##Name##_shutdown }
104 117
118#if !EVAS_MODULE_NO_ENGINES
105EVAS_EINA_STATIC_MODULE_DEFINE(engine, buffer); 119EVAS_EINA_STATIC_MODULE_DEFINE(engine, buffer);
106EVAS_EINA_STATIC_MODULE_DEFINE(engine, fb); 120EVAS_EINA_STATIC_MODULE_DEFINE(engine, fb);
107EVAS_EINA_STATIC_MODULE_DEFINE(engine, gl_x11); 121EVAS_EINA_STATIC_MODULE_DEFINE(engine, gl_x11);
@@ -113,6 +127,9 @@ EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_ddraw);
113EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_gdi); 127EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_gdi);
114EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_generic); 128EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_generic);
115EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_x11); 129EVAS_EINA_STATIC_MODULE_DEFINE(engine, software_x11);
130#endif
131
132#if !EVAS_MODULE_NO_IMAGE_LOADERS
116EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, bmp); 133EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, bmp);
117EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, eet); 134EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, eet);
118EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, generic); 135EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, generic);
@@ -128,16 +145,21 @@ EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, tiff);
128EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, wbmp); 145EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, wbmp);
129EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, webp); 146EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, webp);
130EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, xpm); 147EVAS_EINA_STATIC_MODULE_DEFINE(image_loader, xpm);
148#endif
149
150#if !EVAS_MODULE_NO_IMAGE_SAVERS
131EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, eet); 151EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, eet);
132EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, jpeg); 152EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, jpeg);
133EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, png); 153EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, png);
134EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, tiff); 154EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, tiff);
135EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, webp); 155EVAS_EINA_STATIC_MODULE_DEFINE(image_saver, webp);
156#endif
136 157
137static const struct { 158static const struct {
138 Eina_Bool (*init)(void); 159 Eina_Bool (*init)(void);
139 void (*shutdown)(void); 160 void (*shutdown)(void);
140} evas_static_module[] = { 161} evas_static_module[] = {
162#if !EVAS_MODULE_NO_ENGINES
141#ifdef EVAS_STATIC_BUILD_BUFFER 163#ifdef EVAS_STATIC_BUILD_BUFFER
142 EVAS_EINA_STATIC_MODULE_USE(engine, buffer), 164 EVAS_EINA_STATIC_MODULE_USE(engine, buffer),
143#endif 165#endif
@@ -165,6 +187,8 @@ static const struct {
165#ifdef EVAS_STATIC_BUILD_SOFTWARE_X11 187#ifdef EVAS_STATIC_BUILD_SOFTWARE_X11
166 EVAS_EINA_STATIC_MODULE_USE(engine, software_x11), 188 EVAS_EINA_STATIC_MODULE_USE(engine, software_x11),
167#endif 189#endif
190#endif
191#if !EVAS_MODULE_NO_IMAGE_LOADERS
168#ifdef EVAS_STATIC_BUILD_BMP 192#ifdef EVAS_STATIC_BUILD_BMP
169 EVAS_EINA_STATIC_MODULE_USE(image_loader, bmp), 193 EVAS_EINA_STATIC_MODULE_USE(image_loader, bmp),
170#endif 194#endif
@@ -210,6 +234,8 @@ static const struct {
210#ifdef EVAS_STATIC_BUILD_XPM 234#ifdef EVAS_STATIC_BUILD_XPM
211 EVAS_EINA_STATIC_MODULE_USE(image_loader, xpm), 235 EVAS_EINA_STATIC_MODULE_USE(image_loader, xpm),
212#endif 236#endif
237#endif
238#if !EVAS_MODULE_NO_IMAGE_SAVERS
213#ifdef EVAS_STATIC_BUILD_EET 239#ifdef EVAS_STATIC_BUILD_EET
214 EVAS_EINA_STATIC_MODULE_USE(image_saver, eet), 240 EVAS_EINA_STATIC_MODULE_USE(image_saver, eet),
215#endif 241#endif
@@ -225,6 +251,7 @@ static const struct {
225#ifdef EVAS_STATIC_BUILD_WEBP 251#ifdef EVAS_STATIC_BUILD_WEBP
226 EVAS_EINA_STATIC_MODULE_USE(image_saver, webp), 252 EVAS_EINA_STATIC_MODULE_USE(image_saver, webp),
227#endif 253#endif
254#endif
228 { NULL, NULL } 255 { NULL, NULL }
229}; 256};
230 257