xref: /haiku/src/kits/network/libnetservices2/Jamfile (revision 52c4471a3024d2eb81fe88e2c3982b9f8daa5e56)
1SubDir HAIKU_TOP src kits network libnetservices2 ;
2
3UsePrivateHeaders net ;
4UsePrivateHeaders netservices2 ;
5UsePrivateHeaders support ;
6UsePrivateHeaders shared ;
7
8local architectureObject ;
9for architectureObject in [ MultiArchSubDirSetup ] {
10	on $(architectureObject) {
11		local architecture = $(TARGET_PACKAGING_ARCH) ;
12
13		# Only build on modern GCC
14		if $(TARGET_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
15			continue ;
16		}
17
18		SubDirC++Flags -std=gnu++17 ;
19
20		StaticLibrary <$(architecture)>libnetservices2.a :
21			ErrorsExt.cpp
22			HttpBuffer.cpp
23			HttpFields.cpp
24			HttpParser.cpp
25			HttpRequest.cpp
26			HttpResult.cpp
27			HttpSerializer.cpp
28			HttpSession.cpp
29			HttpTime.cpp
30			NetServicesMisc.cpp
31			;
32
33		LinkAgainst <$(architecture)>libnetservices.a :
34			<$(architecture)>libshared.a ;
35
36	}
37}
38