libnetservices.a: create new static library for the network services

These will be added to the _devel packages so that other applications can link
to them.

Change-Id: If3fd231869823b42d6d896c6c9eb7a95c5fe715d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3666
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Niels Sascha Reedijk
2021-01-27 19:53:11 +00:00
parent 603e0bdf62
commit 1b133b90fd
3 changed files with 40 additions and 31 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
AddFilesToPackage develop lib :
libc.a libcolumnlistview.a
<$(architecture)>liblocalestub.a
libm.a libpthread.a
libprint.a libprintutils.a
libm.a libnetservices.a
libpthread.a libprint.a libprintutils.a
<$(architecture)>libshared.a ;
# the POSIX error code mapper library
+1
View File
@@ -38,6 +38,7 @@ AddFilesToPackage develop lib $(architecture) :
<$(architecture)>libcolumnlistview.a
<$(architecture)>liblocalestub.a
<$(architecture)>libm.a
<$(architecture)>libnetservices.a
<$(architecture)>libpthread.a
<$(architecture)>libshared.a ;
+37 -29
View File
@@ -2,42 +2,50 @@ SubDir HAIKU_TOP src kits network libnetservices ;
UsePrivateHeaders net netservices shared support ;
local sources =
# FUTURE: 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.
DataRequest.cpp
HttpAuthentication.cpp
HttpHeaders.cpp
HttpForm.cpp
HttpRequest.cpp
HttpResult.cpp
# FUTURE: another add-on for file:// (a much simpler one)
FileRequest.cpp
# FUTURE: another add-on for gopher://
GopherRequest.cpp
HttpTime.cpp
NetworkCookie.cpp
NetworkCookieJar.cpp
NetworkRequest.cpp
UrlContext.cpp
UrlProtocolAsynchronousListener.cpp
UrlProtocolDispatchingListener.cpp
UrlProtocolListener.cpp
UrlProtocolRoster.cpp
UrlRequest.cpp
UrlResult.cpp
UrlSynchronousRequest.cpp
;
local architectureObject ;
for architectureObject in [ MultiArchSubDirSetup ] {
on $(architectureObject) {
local architecture = $(TARGET_PACKAGING_ARCH) ;
MergeObject <libnetapi!$(architecture)>netservices.o :
# FUTURE: 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.
DataRequest.cpp
HttpAuthentication.cpp
HttpHeaders.cpp
HttpForm.cpp
HttpRequest.cpp
HttpResult.cpp
# FUTURE: another add-on for file:// (a much simpler one)
FileRequest.cpp
# FUTURE: another add-on for gopher://
GopherRequest.cpp
HttpTime.cpp
NetworkCookie.cpp
NetworkCookieJar.cpp
NetworkRequest.cpp
UrlContext.cpp
UrlProtocolAsynchronousListener.cpp
UrlProtocolDispatchingListener.cpp
UrlProtocolListener.cpp
UrlProtocolRoster.cpp
UrlRequest.cpp
UrlResult.cpp
UrlSynchronousRequest.cpp
$(sources)
: <$(architecture)>libshared.a
;
StaticLibrary <$(architecture)>libnetservices.a :
$(sources)
;
}
}