SubDir HAIKU_TOP src kits network libnetapi ;UsePrivateHeaders app net shared storage support ;UsePrivateHeaders locale shared ;UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ] : true ;UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] : true ;UseHeaders [ FDirName $(HAIKU_TOP) headers os add-ons network_settings ]: true ;local architectureObject ;for architectureObject in [ MultiArchSubDirSetup ] {on $(architectureObject) {local architecture = $(TARGET_PACKAGING_ARCH) ;local sslSources ;UsePrivateSystemHeaders ;if [ FIsBuildFeatureEnabled openssl ] {SubDirC++Flags -DOPENSSL_ENABLED ;UseBuildFeatureHeaders openssl ;sslSources = SSL.cpp ;Includes [ FGristFiles $(sslSources) SecureSocket.cppHttpAuthentication.cpp Certificate.cpp ]: [ BuildFeatureAttribute openssl : headers ] ;# Dependency needed to trigger downloading/unzipping the package# before compiling the files.SetupFeatureObjectsDir ssl ;} else {SetupFeatureObjectsDir no-ssl ;}SharedLibrary [ MultiArchDefaultGristFiles libbnetapi.so ] :DynamicBuffer.cppNetEndpoint.cppNetAddress.cppNetBuffer.cppNetDebug.cpp$(sslSources)Certificate.cppNetworkAddress.cppNetworkAddressResolver.cppNetworkDevice.cppNetworkInterface.cppNetworkRoster.cppNetworkRoute.cppNetworkSettings.cppAbstractSocket.cppDatagramSocket.cppProxySecureSocket.cppSecureSocket.cppSocket.cppSocketMessenger.cppnotifications.cpp:be shared $(TARGET_NETWORK_LIBS) [ TargetLibstdc++ ][ TargetLibsupc++ ] [ BuildFeatureAttribute openssl : libraries ][ BuildFeatureAttribute icu : libraries ];}}