From e2c30bd6c2e07b26c35ef022219464d09c316519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 21 Nov 2011 23:59:12 +0100 Subject: [PATCH] Forgot to include the Jamfile in the commit. * The socket API is now actually available. --- src/kits/network/libnetapi/Jamfile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/kits/network/libnetapi/Jamfile b/src/kits/network/libnetapi/Jamfile index aa7280bc79..30f5efef1c 100644 --- a/src/kits/network/libnetapi/Jamfile +++ b/src/kits/network/libnetapi/Jamfile @@ -6,6 +6,20 @@ UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_network compat ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] : true ; +local sslSources ; +if $(HAIKU_OPENSSL_ENABLED) { + SubDirC++Flags -DOPENSSL_ENABLED ; + SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ; + sslSources = SSL.cpp ; + Includes [ FGristFiles $(sslSources) SecureSocket.cpp ] + : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ; + # Dependency needed to trigger downloading/unzipping the package before + # compiling the files. + SetupFeatureObjectsDir ssl ; +} else { + SetupFeatureObjectsDir no-ssl ; +} + SharedLibrary libbnetapi.so : init.cpp DynamicBuffer.cpp @@ -14,6 +28,8 @@ SharedLibrary libbnetapi.so : NetBuffer.cpp NetDebug.cpp + $(sslSources) + NetworkAddress.cpp NetworkAddressResolver.cpp NetworkCookie.cpp @@ -22,6 +38,11 @@ SharedLibrary libbnetapi.so : NetworkInterface.cpp NetworkRoster.cpp + AbstractSocket.cpp + DatagramSocket.cpp + Socket.cpp + SecureSocket.cpp + # TODO: The HTTP stuff should all go into an add-on. It needs linking # against libcrypto.so and only the add-on should link against it. # Building of the commented out files has not been completely tested after @@ -43,5 +64,7 @@ SharedLibrary libbnetapi.so : # UrlResult.cpp # UrlSynchronousRequest.cpp - : be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSUPC++) libshared.a + : + be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSUPC++) $(HAIKU_OPENSSL_LIBS) + libshared.a ;