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