aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Con.am
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-22 17:03:26 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-24 09:20:49 +0900
commit1eba9d9de026d9ec28aa5b42457b144e437dbfe3 (patch)
treea081fc4b41fc3c79258425953fa4a5792924bc61 /src/Makefile_Ecore_Con.am
parenteolian-cxx: Fix generation of complex types in C++ binding (diff)
downloadefl-1eba9d9de026d9ec28aa5b42457b144e437dbfe3.tar.gz
ecore-con - simplify down to a single libc resolver
Summary: this removes the cares/ares based resolver and the compiled-in dns.c resolver, modified the getaddrinfo based resolver to use threads not forking (almost halving its size) and now makes that the only resolver we have. getaddrinfo handles ipv6 and ipv4 (according to docs). this simplifies code paths, drops code size of the efl tree by about 11k lines of code, makes it easier to test and more robust to future changes with ip resolving as it now just relies on libc. we won't have coverity complaints on dns.c imported code anymore to fix and don't have tokeep up with bugfixes/security from the upstream imported code. this means we use a single resolver on all platforms (windows, mac, linux) as opposed to before where cares was used for windows, and dns.c on linux/mac. oh and the forking original was broken since our move to eo too. so it couldnt even compile if enabled, letalone work. so fix bug with missing /etc/resolv.conf that dns.c couldn't cope with, fix testability, fix maintainability and reduce efl codebase size. this fixes https://phab.enlightenment.org/T3668 @fix @improve Subscribers: cedric, seoz, jpeg Maniphest Tasks: https://phab.enlightenment.org/T3668 Differential Revision: https://phab.enlightenment.org/D3971
Diffstat (limited to 'src/Makefile_Ecore_Con.am')
-rw-r--r--src/Makefile_Ecore_Con.am20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Makefile_Ecore_Con.am b/src/Makefile_Ecore_Con.am
index 266e7b4f74..d68a777951 100644
--- a/src/Makefile_Ecore_Con.am
+++ b/src/Makefile_Ecore_Con.am
@@ -51,7 +51,8 @@ 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/ecore_con_private.h \
+lib/ecore_con/ecore_con_info.c
EXTRA_DIST += lib/ecore_con/ecore_con_legacy.c
@@ -61,19 +62,6 @@ 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@
@@ -81,10 +69,6 @@ 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 \