xref: /haiku/src/kits/network/libnetapi/Jamfile (revision 746cac055adc6ac3308c7bc2d29040fb95689cc9)
1SubDir HAIKU_TOP src kits network libnetapi ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5UsePrivateHeaders net ;
6
7local netapi_sources =
8	init.cpp
9	NetEndpoint.cpp
10	NetAddress.cpp
11	NetBuffer.cpp
12	NetDebug.cpp
13;
14
15if $(TARGET_PLATFORM) != haiku {
16	UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
17		# We need the public network headers also when not compiling for Haiku.
18		# Unfortunately we get more than we want, namely all POSIX headers.
19	UseHeaders [ FStandardOSHeaders ] : true ;
20		# Needed for <net/*.h> and maybe other stuff.
21
22	local defines = [ FDefines BUILDING_R5_LIBNET ] ;
23	SubDirCcFlags $(defines) ;
24	SubDirC++Flags $(defines) ;
25
26	SharedLibrary libnetapi.so :
27		$(netapi_sources)
28		: be $(TARGET_NETWORK_LIBS)
29	;
30
31	# Installation -- in the test directory for the time being
32	HaikuInstallRelSymLink install-networking
33		: [ FDirName $(HAIKU_TEST_DIR) kits net lib ]
34		: libnetapi.so
35		: installed-networking-test ;
36
37	HaikuInstallRelSymLink install-userland-networking
38		: [ FDirName $(HAIKU_TEST_DIR) kits net userland lib ]
39		: libnetapi.so
40		: installed-userland-networking ;
41
42	Package haiku-networkingkit-cvs :
43		libnetapi.so :
44	#	boot home config lib ;
45		boot home Desktop haiku-networkingkit lib ;
46} else {
47	SharedLibrary libbnetapi.so :
48		$(netapi_sources)
49		: be $(TARGET_NETWORK_LIBS)
50	;
51}
52