1 SubDir HAIKU_TOP src kits network libnetapi ;
3 UsePrivateHeaders app net shared storage support ;
4 UsePrivateHeaders locale shared ;
6 UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_network compat ]
8 UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] : true ;
9 UseHeaders [ FDirName $(HAIKU_TOP) headers os add-ons network_settings ]
12 SubDirC++Flags [ FDefines _BSD_SOURCE=1 ] ;
14 local architectureObject ;
15 for architectureObject in [ MultiArchSubDirSetup ] {
16 on $(architectureObject) {
20 UsePrivateSystemHeaders ;
22 if [ FIsBuildFeatureEnabled openssl ] {
23 SubDirC++Flags -DOPENSSL_ENABLED ;
24 UseBuildFeatureHeaders openssl ;
25 sslSources = SSL.cpp ;
27 Includes [ FGristFiles $(sslSources) SecureSocket.cpp
28 HttpAuthentication.cpp Certificate.cpp ]
29 : [ BuildFeatureAttribute openssl : headers ] ;
30 # Dependency needed to trigger downloading/unzipping the package
31 # before compiling the files.
32 SetupFeatureObjectsDir ssl ;
34 # As we don't have md5 from ssl, use our own
36 SetupFeatureObjectsDir no-ssl ;
39 # BUrl uses ICU to perform IDNA conversions (unicode domain names)
40 UseBuildFeatureHeaders icu ;
41 Includes [ FGristFiles Url.cpp ]
42 : [ BuildFeatureAttribute icu : headers ] ;
44 SharedLibrary [ MultiArchDefaultGristFiles libbnetapi.so ] :
56 NetworkAddressResolver.cpp
70 # TODO: another add-on for file:// (a much simpler one)
73 # TODO: another add-on for gopher://
76 # TODO: The HTTP stuff should all go into an add-on. It needs
77 # linking against libcrypto.so and only the add-on should link
80 HttpAuthentication.cpp
94 UrlProtocolAsynchronousListener.cpp
95 UrlProtocolDispatchingListener.cpp
96 UrlProtocolListener.cpp
100 UrlSynchronousRequest.cpp
103 be $(TARGET_NETWORK_LIBS) [ TargetLibstdc++ ] [ TargetLibsupc++ ]
104 [ BuildFeatureAttribute openssl : libraries ]
105 [ BuildFeatureAttribute icu : libraries ]
106 [ MultiArchDefaultGristFiles libshared.a ]