summaryrefslogtreecommitdiff
path: root/src/Makefile_Eina.am
blob: 71d0330b68fa73d3b37f076b9c551f8209172404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362

### Library

lib_LTLIBRARIES += lib/eina/libeina.la

installed_einamainheadersdir = $(includedir)/eina-@VMAJ@
dist_installed_einamainheaders_DATA = \
lib/eina/Eina.h \
lib/eina/eina_config.h

installed_einaheadersdir = $(includedir)/eina-@VMAJ@/eina
dist_installed_einaheaders_DATA = \
lib/eina/eina_safety_checks.h \
lib/eina/eina_error.h \
lib/eina/eina_log.h \
lib/eina/eina_inline_log.x \
lib/eina/eina_fp.h \
lib/eina/eina_inline_f32p32.x \
lib/eina/eina_inline_f16p16.x \
lib/eina/eina_inline_f8p24.x \
lib/eina/eina_inline_fp.x \
lib/eina/eina_hash.h \
lib/eina/eina_inline_hash.x \
lib/eina/eina_lalloc.h \
lib/eina/eina_clist.h \
lib/eina/eina_inline_clist.x \
lib/eina/eina_inarray.h \
lib/eina/eina_inlist.h \
lib/eina/eina_inline_inlist.x \
lib/eina/eina_list.h \
lib/eina/eina_file.h \
lib/eina/eina_inline_file.x \
lib/eina/eina_mempool.h \
lib/eina/eina_module.h \
lib/eina/eina_rectangle.h \
lib/eina/eina_types.h \
lib/eina/eina_array.h \
lib/eina/eina_counter.h \
lib/eina/eina_inline_array.x \
lib/eina/eina_magic.h \
lib/eina/eina_stringshare.h \
lib/eina/eina_binshare.h \
lib/eina/eina_binbuf.h \
lib/eina/eina_ustringshare.h \
lib/eina/eina_inline_stringshare.x \
lib/eina/eina_inline_ustringshare.x \
lib/eina/eina_inline_list.x \
lib/eina/eina_accessor.h \
lib/eina/eina_convert.h \
lib/eina/eina_rbtree.h \
lib/eina/eina_benchmark.h \
lib/eina/eina_inline_rbtree.x \
lib/eina/eina_inline_mempool.x \
lib/eina/eina_inline_rectangle.x \
lib/eina/eina_inline_trash.x \
lib/eina/eina_thread.h \
lib/eina/eina_trash.h \
lib/eina/eina_iterator.h \
lib/eina/eina_main.h \
lib/eina/eina_cpu.h \
lib/eina/eina_inline_cpu.x \
lib/eina/eina_sched.h \
lib/eina/eina_tiler.h \
lib/eina/eina_hamster.h \
lib/eina/eina_matrixsparse.h \
lib/eina/eina_inline_tiler.x \
lib/eina/eina_str.h \
lib/eina/eina_inline_str.x \
lib/eina/eina_strbuf.h \
lib/eina/eina_ustrbuf.h \
lib/eina/eina_unicode.h \
lib/eina/eina_quadtree.h \
lib/eina/eina_simple_xml_parser.h \
lib/eina/eina_lock.h \
lib/eina/eina_prefix.h \
lib/eina/eina_refcount.h \
lib/eina/eina_mmap.h \
lib/eina/eina_xattr.h \
lib/eina/eina_value.h \
lib/eina/eina_inline_value.x \
lib/eina/eina_value_util.h \
lib/eina/eina_inline_value_util.x \
lib/eina/eina_inline_lock_barrier.x \
lib/eina/eina_inline_lock_posix.x \
lib/eina/eina_tmpstr.h \
lib/eina/eina_alloca.h \
lib/eina/eina_cow.h \
lib/eina/eina_inline_unicode.x \
lib/eina/eina_thread_queue.h \
lib/eina/eina_matrix.h \
lib/eina/eina_quad.h \
lib/eina/eina_crc.h \
lib/eina/eina_inline_crc.x \
lib/eina/eina_evlog.h \
lib/eina/eina_util.h \
lib/eina/eina_quaternion.h \
lib/eina/eina_vector.h \
lib/eina/eina_inline_vector.x \
lib/eina/eina_bezier.h

lib_eina_libeina_la_SOURCES = \
lib/eina/eina_abi.c \
lib/eina/eina_accessor.c \
lib/eina/eina_array.c \
lib/eina/eina_benchmark.c \
lib/eina/eina_binbuf.c \
lib/eina/eina_binshare.c \
lib/eina/eina_convert.c \
lib/eina/eina_counter.c \
lib/eina/eina_cow.c \
lib/eina/eina_cpu.c \
lib/eina/eina_crc.c \
lib/eina/eina_debug.c \
lib/eina/eina_debug_bt.c \
lib/eina/eina_debug_bt_file.c \
lib/eina/eina_debug_chunk.c \
lib/eina/eina_debug_monitor.c \
lib/eina/eina_debug_proto.c \
lib/eina/eina_debug_thread.c \
lib/eina/eina_error.c \
lib/eina/eina_evlog.c \
lib/eina/eina_file_common.h \
lib/eina/eina_file_common.c \
lib/eina/eina_fp.c \
lib/eina/eina_hamster.c \
lib/eina/eina_hash.c \
lib/eina/eina_inarray.c \
lib/eina/eina_inlist.c \
lib/eina/eina_iterator.c \
lib/eina/eina_lalloc.c \
lib/eina/eina_list.c \
lib/eina/eina_log.c \
lib/eina/eina_magic.c \
lib/eina/eina_main.c \
lib/eina/eina_matrix.c \
lib/eina/eina_matrixsparse.c \
lib/eina/eina_mempool.c \
lib/eina/eina_mmap.c \
lib/eina/eina_module.c \
lib/eina/eina_prefix.c \
lib/eina/eina_quad.c \
lib/eina/eina_quadtree.c \
lib/eina/eina_rbtree.c \
lib/eina/eina_rectangle.c \
lib/eina/eina_safety_checks.c \
lib/eina/eina_sched.c \
lib/eina/eina_share_common.c \
lib/eina/eina_simple_xml_parser.c \
lib/eina/eina_str.c \
lib/eina/eina_strbuf.c \
lib/eina/eina_strbuf_common.c \
lib/eina/eina_stringshare.c \
lib/eina/eina_thread.c \
lib/eina/eina_thread_queue.c \
lib/eina/eina_tiler.c \
lib/eina/eina_tmpstr.c \
lib/eina/eina_unicode.c \
lib/eina/eina_ustrbuf.c \
lib/eina/eina_ustringshare.c \
lib/eina/eina_util.c \
lib/eina/eina_value.c \
lib/eina/eina_value_util.c \
lib/eina/eina_xattr.c \
lib/eina/eina_debug.h \
lib/eina/eina_private.h \
lib/eina/eina_share_common.h \
lib/eina/eina_strbuf_common.h \
lib/eina/eina_quaternion.c \
lib/eina/eina_bezier.c

if HAVE_WIN32
lib_eina_libeina_la_SOURCES += lib/eina/eina_file_win32.c
else
lib_eina_libeina_la_SOURCES += lib/eina/eina_file.c
endif

EINA_MODULE_COMMON_CFLAGS = \
@EINA_CFLAGS@ \
@VALGRIND_CFLAGS@

if EINA_STATIC_BUILD_CHAINED_POOL
lib_eina_libeina_la_SOURCES += modules/eina/mp/chained_pool/eina_chained_mempool.c
else
einampchainedpooldir = $(libdir)/eina/modules/mp/chained_pool/$(MODULE_ARCH)
einampchainedpool_LTLIBRARIES = modules/eina/mp/chained_pool/chained_pool_module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_einampchainedpoolLTLIBRARIES = install-einampchainedpoolLTLIBRARIES
$(install_einampchainedpoolLTLIBRARIES): install-libLTLIBRARIES

modules_eina_mp_chained_pool_chained_pool_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
modules_eina_mp_chained_pool_chained_pool_module_la_LIBADD = @USE_EINA_LIBS@
modules_eina_mp_chained_pool_chained_pool_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
modules_eina_mp_chained_pool_chained_pool_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_eina_mp_chained_pool_chained_pool_module_la_LIBTOOLFLAGS = --tag=disable-static
modules_eina_mp_chained_pool_chained_pool_module_la_SOURCES = modules/eina/mp/chained_pool/eina_chained_mempool.c
endif

if EINA_STATIC_BUILD_ONE_BIG
lib_eina_libeina_la_SOURCES += modules/eina/mp/one_big/eina_one_big.c
else
einamponebigdir = $(libdir)/eina/modules/mp/one_big/$(MODULE_ARCH)
einamponebig_LTLIBRARIES = modules/eina/mp/one_big/one_big_module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_einamponebigLTLIBRARIES = install-einamponebigLTLIBRARIES
$(install_einamponebigLTLIBRARIES): install-libLTLIBRARIES

modules_eina_mp_one_big_one_big_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
modules_eina_mp_one_big_one_big_module_la_LIBADD = @USE_EINA_LIBS@
modules_eina_mp_one_big_one_big_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
modules_eina_mp_one_big_one_big_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_eina_mp_one_big_one_big_module_la_LIBTOOLFLAGS = --tag=disable-static
modules_eina_mp_one_big_one_big_module_la_SOURCES = modules/eina/mp/one_big/eina_one_big.c
endif

if EINA_STATIC_BUILD_PASS_THROUGH
lib_eina_libeina_la_SOURCES += modules/eina/mp/pass_through/eina_pass_through.c
else
einamppassthroughdir = $(libdir)/eina/modules/mp/pass_through/$(MODULE_ARCH)
einamppassthrough_LTLIBRARIES = modules/eina/mp/pass_through/pass_through_module.la

# Workaround for broken parallel install support in automake (relink issue)
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install_einamppassthroughLTLIBRARIES = install-einamppassthroughLTLIBRARIES
$(install_einamppassthroughLTLIBRARIES): install-libLTLIBRARIES

modules_eina_mp_pass_through_pass_through_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
modules_eina_mp_pass_through_pass_through_module_la_LIBADD = @USE_EINA_LIBS@
modules_eina_mp_pass_through_pass_through_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
modules_eina_mp_pass_through_pass_through_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
modules_eina_mp_pass_through_pass_through_module_la_LIBTOOLFLAGS = --tag=disable-static
modules_eina_mp_pass_through_pass_through_module_la_SOURCES = modules/eina/mp/pass_through/eina_pass_through.c
endif

lib_eina_libeina_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EINA_CFLAGS@ \
@UNWIND_CFLAGS@ \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/eina\" \
@VALGRIND_CFLAGS@

lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @UNWIND_LIBS@
lib_eina_libeina_la_DEPENDENCIES = @EINA_INTERNAL_LIBS@
lib_eina_libeina_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

### Binaries

bin_PROGRAMS += bin/eina/eina_btlog

bin_eina_eina_btlog_SOURCES = bin/eina/eina_btlog.c
bin_eina_eina_btlog_CPPFLAGS =  -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/eina\" \
@EINA_CFLAGS@

bin_eina_eina_btlog_LDADD = @USE_EINA_LIBS@
bin_eina_eina_btlog_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@

### Script

bin_SCRIPTS += scripts/eina/eina-bench-cmp

### Unit tests

if EFL_ENABLE_TESTS

check_PROGRAMS += tests/eina/eina_suite tests/eina/cxx_compile_test
TESTS += tests/eina/eina_suite

tests_eina_eina_suite_SOURCES = \
tests/efl_check.h \
tests/eina/eina_suite.c \
tests/eina/eina_suite.h \
tests/eina/eina_test_abi.c \
tests/eina/eina_test_fp.c \
tests/eina/eina_test_stringshare.c \
tests/eina/eina_test_ustringshare.c \
tests/eina/eina_test_ustr.c \
tests/eina/eina_test_binshare.c \
tests/eina/eina_test_binbuf.c \
tests/eina/eina_test_inarray.c \
tests/eina/eina_test_array.c \
tests/eina/eina_test_clist.c \
tests/eina/eina_test_error.c \
tests/eina/eina_test_sched.c \
tests/eina/eina_test_log.c \
tests/eina/eina_test_magic.c \
tests/eina/eina_test_inlist.c \
tests/eina/eina_test_main.c \
tests/eina/eina_test_counter.c \
tests/eina/eina_test_lalloc.c \
tests/eina/eina_test_hash.c \
tests/eina/eina_test_iterator.c \
tests/eina/eina_test_accessor.c \
tests/eina/eina_test_module.c \
tests/eina/eina_test_convert.c \
tests/eina/eina_test_rbtree.c \
tests/eina/eina_test_file.c \
tests/eina/eina_test_benchmark.c \
tests/eina/eina_test_mempool.c \
tests/eina/eina_test_rectangle.c \
tests/eina/eina_test_list.c \
tests/eina/eina_test_matrixsparse.c \
tests/eina/eina_test_tiler.c \
tests/eina/eina_test_strbuf.c \
tests/eina/eina_test_str.c \
tests/eina/eina_test_quadtree.c \
tests/eina/eina_test_simple_xml_parser.c \
tests/eina/eina_test_value.c \
tests/eina/eina_test_cow.c \
tests/eina/eina_test_barrier.c \
tests/eina/eina_test_tmpstr.c \
tests/eina/eina_test_trash.c \
tests/eina/eina_test_lock.c \
tests/eina/eina_test_xattr.c \
tests/eina/eina_test_crc.c \
tests/eina/eina_test_quad.c \
tests/eina/eina_test_matrix.c \
tests/eina/eina_test_quaternion.c \
tests/eina/eina_test_vector.c \
tests/eina/eina_test_bezier.c

tests_eina_eina_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DTESTS_WD=\"`pwd`\" \
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eina\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)/src/tests/eina\" \
-DTESTS_BUILD_DIR=PACKAGE_BUILD_DIR \
@CHECK_CFLAGS@ \
@EINA_CFLAGS@
tests_eina_eina_suite_LDADD = @CHECK_LIBS@ @USE_EINA_LIBS@
tests_eina_eina_suite_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@

tests_eina_cxx_compile_test_SOURCES = tests/eina/cxx_compile_test.cxx
tests_eina_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EINA_CFLAGS@
tests_eina_cxx_compile_test_LDADD = @USE_EINA_LIBS@
tests_eina_cxx_compile_test_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@

check_LTLIBRARIES = tests/eina/module_dummy.la

tests_eina_module_dummy_la_SOURCES = tests/eina/eina_test_module_dummy.c
tests_eina_module_dummy_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)/src/tests/eina\" \
@CHECK_CFLAGS@ \
@EINA_CFLAGS@
tests_eina_module_dummy_la_LIBADD = @USE_EINA_LIBS@
tests_eina_module_dummy_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
tests_eina_module_dummy_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
tests_eina_module_dummy_la_LIBTOOLFLAGS = --tag=disable-static

endif

EXTRA_DIST += \
lib/eina/eina_strbuf_template_c.x \
lib/eina/eina_binbuf_template_c.x \
lib/eina/eina_inline_private.h \
tests/eina/sample.gpx \
$(bin_SCRIPTS)