summaryrefslogtreecommitdiff
path: root/src/lib/evas_goal/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas_goal/meson.build')
-rw-r--r--src/lib/evas_goal/meson.build179
1 files changed, 0 insertions, 179 deletions
diff --git a/src/lib/evas_goal/meson.build b/src/lib/evas_goal/meson.build
deleted file mode 100644
index 59473fe..0000000
--- a/src/lib/evas_goal/meson.build
+++ /dev/null
@@ -1,179 +0,0 @@
1#fixed dependencies by efl
2png = dependency('libpng')
3tiff = dependency('libtiff-4', required: get_option('evas-loaders-disabler').contains('tiff') == false)
4giflib = cc.find_library('gif')
5webp = dependency('libwebp', required: get_option('evas-loaders-disabler').contains('webp') == false)
6
7evas_loader_saver_mod_bmp = ['bmp', 'shared', []]
8evas_loader_saver_mod_eet = ['eet', 'static', [eet]]
9evas_loader_saver_mod_generic = ['generic', 'shared', [rt]]
10evas_loader_saver_mod_gif = ['gif', 'shared', [giflib]]
11evas_loader_saver_mod_ico = ['ico', 'shared', []]
12evas_loader_saver_mod_jpeg = ['jpeg', 'static', [jpeg]]
13evas_loader_saver_mod_pmaps = ['pmaps', 'shared', []]
14evas_loader_saver_mod_png = ['png', 'static', [png]]
15evas_loader_saver_mod_psd = ['psd', 'shared', []]
16evas_loader_saver_mod_tga = ['tga', 'shared', []]
17evas_loader_saver_mod_tgv = ['tgv', 'shared', [rg_etc, lz4]]
18evas_loader_saver_mod_tiff = ['tiff', 'shared', [tiff]]
19evas_loader_saver_mod_wbmp = ['wbmp', 'shared', []]
20evas_loader_saver_mod_webp = ['webp', 'shared', [webp]]
21evas_loader_saver_mod_xpm = ['xpm', 'shared', []]
22
23evas_image_loaders_file = [
24 evas_loader_saver_mod_bmp,
25 evas_loader_saver_mod_eet,
26 evas_loader_saver_mod_generic,
27 evas_loader_saver_mod_gif,
28 evas_loader_saver_mod_ico,
29 evas_loader_saver_mod_jpeg,
30 evas_loader_saver_mod_pmaps,
31 evas_loader_saver_mod_png,
32 evas_loader_saver_mod_psd,
33 evas_loader_saver_mod_tga,
34 evas_loader_saver_mod_tgv,
35 evas_loader_saver_mod_tiff,
36 evas_loader_saver_mod_wbmp,
37 evas_loader_saver_mod_webp,
38 evas_loader_saver_mod_xpm
39]
40
41evas_image_savers_file = [
42 evas_loader_saver_mod_eet,
43 evas_loader_saver_mod_jpeg,
44 evas_loader_saver_mod_png,
45 evas_loader_saver_mod_tgv,
46 evas_loader_saver_mod_tiff,
47 evas_loader_saver_mod_webp
48]
49
50foreach loader_inst : evas_image_loaders_file
51 loader = loader_inst[0]
52 loader_type = loader_inst[1]
53 loader_deps = loader_inst[2]
54 if get_option('evas-loaders-disabler').contains(loader) == false
55 if loader_type == 'static'
56 config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
57 file = join_paths(meson.source_root(), 'src', 'modules', 'evas', 'image_loaders', loader, 'evas_image_load_'+loader+'.c')
58 config_h.set('EVAS_STATIC_BUILD_'+loader.to_upper(), '1')
59 tmp = static_library('image_loader_'+loader, file,
60 include_directories : config_dir,
61 dependencies : [evas_pre] + loader_deps
62 )
63 evas_static_list += [declare_dependency(
64 sources: file,
65 dependencies: loader_deps,
66 )]
67 endif
68 else
69 message('Image loader '+loader+' disabled')
70 endif
71endforeach
72
73foreach loader_inst : evas_image_savers_file
74 loader = loader_inst[0]
75 loader_type = loader_inst[1]
76 loader_deps = loader_inst[2]
77 if get_option('evas-loaders-disabler').contains(loader) == false
78 if loader_type == 'static'
79 config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
80 file = join_paths(meson.source_root(), 'src', 'modules', 'evas', 'image_savers', loader, 'evas_image_save_'+loader+'.c')
81 config_h.set('EVAS_STATIC_BUILD_'+loader.to_upper(), '1')
82 tmp = static_library('image_saver_'+loader, file,
83 include_directories : config_dir,
84 dependencies : [evas_pre] + loader_deps
85 )
86 evas_static_list += [declare_dependency(
87 sources: file,
88 dependencies: loader_deps,
89 )]
90 endif
91 else
92 message('Image saver '+loader+' disabled')
93 endif
94endforeach
95
96evas_lib = library('evas',
97 'empty.c',
98 #all the source code is coming from evas_pre_lib_dep
99 dependencies: [evas_pre_lib_dep, evas_static_list],
100 install: true,
101 c_args : '-DPACKAGE_DATA_DIR="'+join_paths(dir_data, 'evas')+'"',
102 version : meson.project_version()
103)
104
105evas_pub_deps = [eina, ecore, ector, emile, evas_pre]
106
107evas = declare_dependency(
108 link_with : [evas_lib],
109 dependencies : evas_pub_deps,
110 include_directories : evas_include_directories
111)
112
113evas_bin = declare_dependency(
114 link_with : [evas_lib],
115 dependencies : [eina, ecore, ector, emile, lua],
116 include_directories : evas_include_directories
117)
118
119tmp_package_subdirs = []
120automatic_pkgfile = false
121
122foreach subdir : evas_header_subdirs
123 tmp_package_subdirs += join_paths('evas-'+version_major, subdir)
124endforeach
125
126pkgconfig.generate(evas_lib,
127 name : 'evas',
128 subdirs : ['evas-'+version_major] + tmp_package_subdirs,
129 version : version_major + '.' + version_minor + '.' + version_micro,
130 libraries : [eina, ecore, ector, emile, lua],
131)
132
133foreach loader_inst : evas_image_loaders_file
134 loader = loader_inst[0]
135 loader_type = loader_inst[1]
136 loader_deps = loader_inst[2]
137 if get_option('evas-loaders-disabler').contains(loader) == false
138 if loader_type == 'shared'
139 config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
140 file = join_paths(meson.source_root(), 'src', 'modules', 'evas', 'image_loaders', loader, 'evas_image_load_'+loader+'.c')
141 evas_package_modules = join_paths(dir_lib, 'evas', 'modules')
142 mod_install_dir = join_paths(evas_package_modules, 'image_loaders', loader, version_name)
143 shared_module('shared_loader_'+loader, file,
144 include_directories : config_dir,
145 dependencies : [eina, evas] + loader_deps,
146 install : true,
147 install_dir : mod_install_dir,
148 name_suffix : sys_mod_extension
149 )
150 module_files += join_paths(mod_install_dir, 'libshared_loader_'+loader + '.' + sys_mod_extension)
151 endif
152 else
153 message('Image loader '+loader+' disabled')
154 endif
155endforeach
156
157foreach loader_inst : evas_image_savers_file
158 loader = loader_inst[0]
159 loader_type = loader_inst[1]
160 loader_deps = loader_inst[2]
161 if get_option('evas-loaders-disabler').contains(loader) == false
162 if loader_type == 'shared'
163 config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
164 file = join_paths(meson.source_root(), 'src', 'modules', 'evas', 'image_savers', loader, 'evas_image_save_'+loader+'.c')
165 evas_package_modules = join_paths(dir_lib, 'evas', 'modules')
166 mod_install_dir = join_paths(evas_package_modules, 'image_savers', loader, version_name)
167 shared_module('shared_saver_'+loader, file,
168 include_directories : config_dir,
169 dependencies : [eina, evas] + loader_deps,
170 install : true,
171 install_dir : mod_install_dir,
172 name_suffix : sys_mod_extension
173 )
174 module_files += join_paths(mod_install_dir, 'libshared_saver_'+loader + '.' + sys_mod_extension)
175 endif
176 else
177 message('Image saver '+loader+' disabled')
178 endif
179endforeach