xref: /haiku/src/system/libnetwork/Jamfile (revision 21258e2674226d6aa732321b6f8494841895af5f)
1SubDir HAIKU_TOP src system libnetwork ;
2
3UsePrivateHeaders libroot net shared ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;
5
6local services = [ FGristFiles services ] ;
7SEARCH on $(services) = [ FDirName $(SUBDIR) netresolv defaults ] ;
8
9local architectureObject ;
10for architectureObject in [ MultiArchSubDirSetup ] {
11	on $(architectureObject) {
12		local architecture = $(TARGET_PACKAGING_ARCH) ;
13
14		UsePrivateSystemHeaders ;
15
16		local libnetwork = [ MultiArchDefaultGristFiles libnetwork.so ] ;
17		SharedLibrary $(libnetwork) :
18			init.cpp
19			interfaces.cpp
20			gethostbyname.c
21			getifaddrs.cpp
22			socket.cpp
23			r5_compatibility.cpp
24			:
25			<netresolv!$(architecture)>netresolv.o
26			<$(architecture)>posix_musl_network.o
27			[ MultiArchDefaultGristFiles libutil.a libbsd.so ]
28			[ TargetLibsupc++ ]
29			;
30
31		AddFileDataAttribute $(libnetwork) : services : string : $(services) ;
32	}
33}
34
35SubInclude HAIKU_TOP src system libnetwork musl ;
36SubInclude HAIKU_TOP src system libnetwork netresolv ;
37