aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Con.am
blob: 594046b3c53f56431d8f699ad4ae6cf4ca999652 (plain) (blame)
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

### Library

ecore_con_eolian_files_common = \
        lib/ecore_con/efl_net_socket.eo \
        lib/ecore_con/efl_net_socket_simple.eo \
        lib/ecore_con/efl_net_socket_fd.eo \
        lib/ecore_con/efl_net_socket_tcp.eo \
        lib/ecore_con/efl_net_socket_udp.eo \
        lib/ecore_con/efl_net_dialer.eo \
        lib/ecore_con/efl_net_dialer_simple.eo \
        lib/ecore_con/efl_net_dialer_tcp.eo \
        lib/ecore_con/efl_net_dialer_udp.eo \
        lib/ecore_con/efl_net_dialer_http.eo \
        lib/ecore_con/efl_net_dialer_websocket.eo \
        lib/ecore_con/efl_net_server.eo \
        lib/ecore_con/efl_net_server_simple.eo \
        lib/ecore_con/efl_net_server_fd.eo \
        lib/ecore_con/efl_net_server_ip.eo \
        lib/ecore_con/efl_net_server_tcp.eo \
        lib/ecore_con/efl_net_server_udp.eo \
        lib/ecore_con/efl_net_server_udp_client.eo \
        lib/ecore_con/efl_net_socket_ssl.eo \
        lib/ecore_con/efl_net_ssl_context.eo \
        lib/ecore_con/efl_net_dialer_ssl.eo \
        lib/ecore_con/efl_net_server_ssl.eo \
        lib/ecore_con/efl_net_control_access_point.eo \
        lib/ecore_con/efl_net_control_technology.eo \
        lib/ecore_con/efl_net_control_manager.eo \
        lib/ecore_con/efl_net_session.eo \
        lib/ecore_con/efl_net_ip_address.eo

ecore_con_eolian_files_windows = \
        lib/ecore_con/efl_net_socket_windows.eo \
        lib/ecore_con/efl_net_dialer_windows.eo \
        lib/ecore_con/efl_net_server_windows.eo

ecore_con_eolian_files_unix = \
        lib/ecore_con/efl_net_socket_unix.eo \
        lib/ecore_con/efl_net_dialer_unix.eo \
        lib/ecore_con/efl_net_server_unix.eo

ecore_con_eolian_files = $(ecore_con_eolian_files_common)

if HAVE_WINDOWS
ecore_con_eolian_files += $(ecore_con_eolian_files_windows)
else
ecore_con_eolian_files += $(ecore_con_eolian_files_unix)
endif

ecore_con_eolian_type_files = \
	lib/ecore_con/efl_net_types.eot \
        lib/ecore_con/efl_net_http_types.eot \
	lib/ecore_con/efl_net_ssl_types.eot


ecore_con_eolian_c = $(ecore_con_eolian_files:%.eo=%.eo.c)
ecore_con_eolian_h = $(ecore_con_eolian_files:%.eo=%.eo.h) \
                     $(ecore_con_eolian_type_files:%.eot=%.eot.h)

BUILT_SOURCES += \
                 $(ecore_con_eolian_c) \
                 $(ecore_con_eolian_h)

if INSTALL_EO_FILES
ecoreconeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@
ecoreconeolianfiles_DATA = \
                           $(ecore_con_eolian_files) \
			   $(ecore_con_eolian_type_files)
endif

EXTRA_DIST2 += \
$(ecore_con_eolian_files_common) \
$(ecore_con_eolian_files_unix) \
$(ecore_con_eolian_files_windows) \
$(ecore_con_eolian_type_files)


lib_LTLIBRARIES += lib/ecore_con/libecore_con.la

installed_ecoreconmainheadersdir = $(includedir)/ecore-con-@VMAJ@
dist_installed_ecoreconmainheaders_DATA = \
lib/ecore_con/Ecore_Con.h \
lib/ecore_con/Efl_Net.h \
lib/ecore_con/Ecore_Con_Eet.h \
lib/ecore_con/Ecore_Con_Eet_Legacy.h \
lib/ecore_con/Ecore_Con_Eet_Eo.h \
lib/ecore_con/ecore_con_eet_base_eo.h \
lib/ecore_con/ecore_con_eet_base_eo.legacy.h \
lib/ecore_con/ecore_con_eet_client_obj_eo.h \
lib/ecore_con/ecore_con_eet_client_obj_eo.legacy.h \
lib/ecore_con/ecore_con_eet_server_obj_eo.h \
lib/ecore_con/ecore_con_eet_server_obj_eo.legacy.h


nodist_installed_ecoreconmainheaders_DATA = \
                                            $(ecore_con_eolian_h)

lib_ecore_con_libecore_con_la_SOURCES = \
lib/ecore_con/ecore_con_alloc.c \
lib/ecore_con/ecore_con.c \
lib/ecore_con/ecore_con_proxy_helper.c \
lib/ecore_con/ecore_con_legacy.c \
lib/ecore_con/ecore_con_eet.c \
lib/ecore_con/ecore_con_socks.c \
lib/ecore_con/ecore_con_url.c \
lib/ecore_con/ecore_con_url_curl.c \
lib/ecore_con/ecore_con_url_curl.h \
static_libs/http-parser/http_parser.c \
static_libs/http-parser/http_parser.h \
lib/ecore_con/ecore_con_private.h \
lib/ecore_con/efl_net_socket.c \
lib/ecore_con/efl_net_socket_simple.c \
lib/ecore_con/efl_net_socket_fd.c \
lib/ecore_con/efl_net_socket_tcp.c \
lib/ecore_con/efl_net_socket_udp.c \
lib/ecore_con/efl_net_dialer.c \
lib/ecore_con/efl_net_dialer_simple.c \
lib/ecore_con/efl_net_dialer_tcp.c \
lib/ecore_con/efl_net_dialer_udp.c \
lib/ecore_con/efl_net_dialer_http.c \
lib/ecore_con/efl_net_dialer_websocket.c \
lib/ecore_con/efl_net_server.c \
lib/ecore_con/efl_net_server_simple.c \
lib/ecore_con/efl_net_server_fd.c \
lib/ecore_con/efl_net_server_ip.c \
lib/ecore_con/efl_net_server_tcp.c \
lib/ecore_con/efl_net_server_udp.c \
lib/ecore_con/efl_net_server_udp_client.c \
lib/ecore_con/efl_net_socket_ssl.c \
lib/ecore_con/efl_net_ssl_context.c \
lib/ecore_con/efl_net_dialer_ssl.c \
lib/ecore_con/efl_net_server_ssl.c \
lib/ecore_con/ecore_con_local.c \
lib/ecore_con/efl_net_ip_address.c \
static_libs/buildsystem/buildsystem.h \
static_libs/buildsystem/buildsystem_autotools.c

if EFL_NET_CONTROL_BACKEND_CONNMAN
lib_ecore_con_libecore_con_la_SOURCES += \
lib/ecore_con/efl_net-connman.h \
lib/ecore_con/efl_net-connman.c \
lib/ecore_con/efl_net_control_access_point-connman.c \
lib/ecore_con/efl_net_control_technology-connman.c \
lib/ecore_con/efl_net_control-connman.c \
lib/ecore_con/efl_net_session-connman.c
endif

if EFL_NET_CONTROL_BACKEND_NONE
lib_ecore_con_libecore_con_la_SOURCES += \
lib/ecore_con/efl_net_control_access_point-none.c \
lib/ecore_con/efl_net_control_technology-none.c \
lib/ecore_con/efl_net_control-none.c \
lib/ecore_con/efl_net_session-none.c
endif

# these are included rather than compiled out
# so the structures can be embedded into the
# object Private Data and allows functions to
# be all static
EXTRA_DIST2 += \
lib/ecore_con/ecore_con_eet_base_eo.c \
lib/ecore_con/ecore_con_eet_base_eo.legacy.c \
lib/ecore_con/ecore_con_eet_client_obj_eo.c \
lib/ecore_con/ecore_con_eet_server_obj_eo.c \
lib/ecore_con/efl_net_ssl_conn-openssl.c \
lib/ecore_con/efl_net_ssl_conn-gnutls.c \
lib/ecore_con/efl_net_ssl_conn-none.c \
lib/ecore_con/efl_net_ssl_ctx-openssl.c \
lib/ecore_con/efl_net_ssl_ctx-gnutls.c \
lib/ecore_con/efl_net_ssl_ctx-none.c

if HAVE_WINDOWS
lib_ecore_con_libecore_con_la_SOURCES += \
lib/ecore_con/efl_net_socket_windows.c \
lib/ecore_con/efl_net_dialer_windows.c \
lib/ecore_con/efl_net_server_windows.c
else
lib_ecore_con_libecore_con_la_SOURCES += \
lib/ecore_con/efl_net_socket_unix.c \
lib/ecore_con/efl_net_dialer_unix.c \
lib/ecore_con/efl_net_server_unix.c
endif

lib_ecore_con_libecore_con_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/ecore\" \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
-DPACKAGE_SRC_DIR=\"$(abs_top_srcdir)\" \
-DEFL_BUILD \
@ECORE_CON_CFLAGS@
lib_ecore_con_libecore_con_la_LIBADD = @ECORE_CON_LIBS@ @EVIL_LIBS@
lib_ecore_con_libecore_con_la_DEPENDENCIES = @ECORE_CON_INTERNAL_LIBS@
lib_ecore_con_libecore_con_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

lib_ecore_con_libecore_con_la_CPPFLAGS += -I$(top_srcdir)/src/static_libs/http-parser

EXTRA_DIST2 += \
tests/ecore_con/server.key \
tests/ecore_con/server.pem \
static_libs/http-parser/AUTHORS \
static_libs/http-parser/CONTRIBUTIONS \
static_libs/http-parser/README.md \
static_libs/http-parser/test.c \
static_libs/http-parser/contrib/parsertrace.c \
static_libs/http-parser/contrib/url_parser.c

### Binary
proxyhelperdir = \
$(libdir)/ecore_con/utils/$(MODULE_ARCH)
proxyhelper_PROGRAMS = bin/ecore_con/efl_net_proxy_helper

bin_ecore_con_efl_net_proxy_helper_SOURCES = \
bin/ecore_con/efl_net_proxy_helper.c

bin_ecore_con_efl_net_proxy_helper_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/ecore\" \
@EINA_CFLAGS@
bin_ecore_con_efl_net_proxy_helper_LDADD = @USE_EINA_LIBS@
bin_ecore_con_efl_net_proxy_helper_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@

### Unit tests

if EFL_ENABLE_TESTS

check_PROGRAMS += tests/ecore_con/ecore_con_suite
TESTS += tests/ecore_con/ecore_con_suite

tests_ecore_con_ecore_con_suite_SOURCES = \
tests/ecore_con/ecore_con_suite.c \
tests/ecore_con/ecore_con_test_ecore_con.c \
tests/ecore_con/ecore_con_test_ecore_con_url.c \
tests/ecore_con/ecore_con_test_ecore_con_eet.c \
tests/ecore_con/ecore_con_test_efl_net_ip_address.c \
tests/ecore_con/ecore_con_suite.h

tests_ecore_con_ecore_con_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/ecore_con\" \
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/ecore_con\" \
@CHECK_CFLAGS@ \
@ECORE_CFLAGS@ \
@ECORE_CON_CFLAGS@

tests_ecore_con_ecore_con_suite_LDADD = \
@CHECK_LIBS@ \
@USE_ECORE_LIBS@ \
@USE_ECORE_CON_LIBS@

tests_ecore_con_ecore_con_suite_DEPENDENCIES = \
@USE_ECORE_INTERNAL_LIBS@ \
@USE_ECORE_CON_INTERNAL_LIBS@

endif

if HAVE_LUA_BINDINGS

ecore_con_eolian_lua = $(ecore_con_eolian_files:%.eo=%.eo.lua)

generated_ecore_con_lua_all = $(ecore_con_eolian_lua)

GENERATED_LUA_BINDINGS += $(generated_ecore_con_lua_all)

installed_ecoreconluadir = $(datadir)/elua/modules/ecore_con
nodist_installed_ecoreconlua_DATA = $(generated_ecore_con_lua_all)

endif

if HAVE_JS

generated_ecore_con_js_bindings = $(ecore_con_eolian_files:%.eo=%.eo.js.cc)

GENERATED_JS_BINDINGS += $(generated_ecore_con_js_bindings)

endif