PageSettings: add FLARM and thermal assistant pages
[xcsoar.git] / build / libnet.mk
blobee91366b88aabefdfada72e9459c86b36b5a4ad6
1 # Build rules for the HTTP client library
3 LIBNET_SOURCES =
4 HAVE_HTTP := n
6 ifneq ($(findstring $(TARGET),PC WINE CYGWIN),)
7 HAVE_HTTP := y
8 LIBNET_SOURCES += \
9 $(SRC)/Net/WinINet/Session.cpp \
10 $(SRC)/Net/WinINet/Request.cpp
11 LIBNET_LDLIBS = -lwininet
12 endif
14 # don't link with CURL on Mac OS X, to keep the dynamic library
15 # dependencies low
16 ifeq ($(TARGET_IS_DARWIN),n)
17 ifeq ($(TARGET),UNIX)
18 HAVE_HTTP := y
20 LIBNET_SOURCES += \
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)
30 endif
31 endif
33 ifeq ($(TARGET),ANDROID)
34 HAVE_HTTP := y
36 LIBNET_SOURCES += \
37 $(SRC)/Net/Java/Session.cpp \
38 $(SRC)/Net/Java/Request.cpp
39 endif
41 ifeq ($(HAVE_HTTP),y)
43 LIBNET_SOURCES += \
44 $(SRC)/Net/DownloadManager.cpp \
45 $(SRC)/Net/ToFile.cpp \
46 $(SRC)/Net/ToBuffer.cpp
48 $(eval $(call link-library,libnet,LIBNET))
50 endif