xref: /haiku/src/tests/add-ons/kernel/file_systems/xfs/xfs_shell/Jamfile (revision adcf5b05a8ca9e17407aa4640675c3873c9f0a6c)
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
6DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
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 ;
37UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
38UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
39
40local xfsSource =
41	kernel_interface.cpp
42;
43
44BuildPlatformMergeObject <build>xfs.o : $(xfsSource) ;
45
46BuildPlatformMain <build>xfs_shell
47	:
48	:
49	<build>xfs.o
50	<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
51	$(HOST_LIBROOT) $(fsShellCommandLibs)
52;
53
54BuildPlatformMain <build>xfs_fuse
55	:
56	:
57	<build>xfs.o
58	<build>fuse_module.a
59	$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
60	$(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse
61;
62
63SEARCH on [ FGristFiles QueryParserUtils.cpp ]
64	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
65