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