xref: /haiku/src/tests/add-ons/kernel/file_systems/xfs/xfs_shell/Jamfile (revision 16ad15142c48ee36cd6a807a24efc99c88d4310d)
1SubDir HAIKU_TOP src tests add-ons kernel file_systems xfs xfs_shell ;
2
3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems xfs ] ;
4
5# prevent inclusion of HaikuBuildCompatibility.h and _BSD_SOURCE headers
6DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ;
7
8# set some additional defines
9{
10	local defines =
11		FS_SHELL
12		;
13
14	defines = [ FDefines $(defines) ] ;
15
16	local c++flags = ;
17
18	SubDirCcFlags $(defines) -Wno-multichar ;
19	SubDirC++Flags $(defines) $(c++flags) -Wno-multichar -fno-rtti ;
20}
21
22# platform specific libraries
23local fsShellCommandLibs ;
24if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
25	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
26}
27
28UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
29
30if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
31	UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
32	UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
33}
34
35UsePrivateHeaders shared storage ;
36UsePrivateHeaders fs_shell ;
37UsePrivateHeaders file_systems ;
38UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
39UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
40
41local xfsSource =
42	DeviceOpener.cpp
43	xfs.cpp
44	Volume.cpp
45	kernel_interface.cpp
46;
47
48BuildPlatformMergeObject <build>xfs_shell.o : $(xfsSource) ;
49
50BuildPlatformMain <build>xfs_shell
51	:
52	:
53	<build>xfs_shell.o
54	<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
55	$(HOST_LIBROOT) $(fsShellCommandLibs)
56;
57
58BuildPlatformMain <build>xfs_fuse
59	:
60	:
61	<build>xfs_shell.o
62	<build>fuse_module.a
63	$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
64	$(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse
65;
66
67SEARCH on [ FGristFiles QueryParserUtils.cpp ]
68	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
69
70SEARCH on [ FGristFiles DeviceOpener.cpp ]
71	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
72