1 # Build rules for the HTTP client library
6 ifneq ($(findstring $(TARGET
),PC WINE CYGWIN
),)
9 $(SRC
)/Net
/WinINet
/Session.
cpp \
10 $(SRC
)/Net
/WinINet
/Request.
cpp
11 LIBNET_LDLIBS
= -lwininet
14 # don't link with CURL on Mac OS X, to keep the dynamic library
16 ifeq ($(TARGET_IS_DARWIN
),n
)
21 $(SRC
)/Net
/CURL
/Multi.
cpp \
22 $(SRC
)/Net
/CURL
/Session.
cpp \
23 $(SRC
)/Net
/CURL
/Request.
cpp \
24 $(SRC
)/Net
/CURL
/Init.
cpp
26 $(eval
$(call pkg-config-library
,CURL
,libcurl
))
28 LIBNET_CPPFLAGS
= $(CURL_CPPFLAGS
)
29 LIBNET_LDLIBS
= $(CURL_LDLIBS
)
33 ifeq ($(TARGET
),ANDROID
)
37 $(SRC
)/Net
/Java
/Session.
cpp \
38 $(SRC
)/Net
/Java
/Request.
cpp
44 $(SRC
)/Net
/DownloadManager.
cpp \
45 $(SRC
)/Net
/ToFile.
cpp \
46 $(SRC
)/Net
/ToBuffer.
cpp
48 $(eval
$(call link-library
,libnet
,LIBNET
))