aboutsummaryrefslogblamecommitdiffstats
path: root/src/Makefile_Ecore_Con.am
blob: 154d25b59d3d04e268b094b81d634067b01544bc (plain) (tree)
1
2
3
4
5
6
7
8


           
                          
                                           
                                             
                                             
                                                


                                                   
                                        



                                                                 
 
                  


                                        

                                                               
                                                    



                                         

                                                
                                                                 

                                           

                                  


                                      
 
                                             
                                                                 
 






                                         

                                    

                                       

                                 

                                              









                                                                              

                                          

                       




                                                                       
                                                                                         
                                                                   
                                                                      
                                                             
 

                                                                                     



                                                                              

                            






                                               
 










                                                 
                                                

















                                                                          

     











                                                                  









                                                                           

### Library

ecore_con_eolian_files = \
	lib/ecore_con/efl_network_base.eo \
	lib/ecore_con/efl_network_client.eo \
	lib/ecore_con/efl_network_server.eo \
	lib/ecore_con/efl_network_connector.eo \
	lib/ecore_con/ecore_con_eet_base.eo \
	lib/ecore_con/ecore_con_eet_server_obj.eo \
	lib/ecore_con/ecore_con_eet_client_obj.eo \
	lib/ecore_con/efl_network_url.eo

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_files:%.eo=%.eo.legacy.h)

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

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

EXTRA_DIST += \
              ${ecoreconeolianfiles_DATA}

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/Ecore_Con_Legacy.h \
lib/ecore_con/Ecore_Con_Eo.h \
lib/ecore_con/Ecore_Con_Eet.h \
lib/ecore_con/Ecore_Con_Eet_Legacy.h \
lib/ecore_con/Ecore_Con_Eet_Eo.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_eet.c \
lib/ecore_con/ecore_con_socks.c \
lib/ecore_con/ecore_con_ssl.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

EXTRA_DIST += lib/ecore_con/ecore_con_legacy.c

if HAVE_WINDOWS
lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_local_win32.c
else
lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_local.c
endif

if HAVE_CARES
lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_ares.c
else
if HAVE_IPV6
lib_ecore_con_libecore_con_la_SOURCES += \
lib/ecore_con/ecore_con_dns.c \
static_libs/dns/dns.c \
static_libs/dns/dns.h
else
lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_info.c
endif
endif

lib_ecore_con_libecore_con_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @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

if HAVE_IPV6
lib_ecore_con_libecore_con_la_CPPFLAGS += -I$(top_srcdir)/src/static_libs/dns/
endif

EXTRA_DIST += \
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

### 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_suite.h

tests_ecore_con_ecore_con_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-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_ELUA

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

generated_ecore_con_lua_all = $(ecore_con_eolian_lua)

CLEANFILES += $(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)

CLEANFILES += $(generated_ecore_con_js_bindings)

GENERATED_JS_BINDINGS += $(generated_ecore_con_js_bindings)

endif