xref: /haiku/src/tests/add-ons/kernel/file_systems/btrfs/btrfs_shell/Jamfile (revision 69f814cded60c5f977a61a2ab747e4456323e6f2)
1SubDir HAIKU_TOP src tests add-ons kernel file_systems btrfs btrfs_shell ;
2
3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems btrfs ] ;
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		TRACE_BTRFS # ENABLE DEBUGGING
13		USER=1
14		;
15
16	defines = [ FDefines $(defines) ] ;
17	SubDirCcFlags $(defines) -Wno-multichar ;
18	SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;
19	HOST_LINKFLAGS += -lz ;	# zlib link
20}
21
22
23# platform specific libraries
24local fsShellCommandLibs ;
25if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
26	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
27}
28
29
30UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
31UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
32UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
33
34UsePrivateKernelHeaders ;
35UsePrivateHeaders shared storage fs_shell ;
36UsePrivateHeaders file_systems ;
37UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
38UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
39UseHeaders [ FDirName $(HAIKU_TOP) src libs uuid ] : true ;
40
41
42local btrfsSources =
43	Attribute.cpp
44	AttributeIterator.cpp
45	BTree.cpp
46	Chunk.cpp
47	CRCTable.cpp
48	DebugSupport.cpp
49	DirectoryIterator.cpp
50	ExtentAllocator.cpp
51	Inode.cpp
52	Journal.cpp
53	Volume.cpp
54	btrfs_disk_system.cpp
55	kernel_interface.cpp
56;
57
58local utilitySources =
59	AVLTreeBase.cpp
60;
61
62BuildPlatformMergeObject <build>btrfs.o : $(btrfsSources) $(utilitySources) ;
63
64BuildPlatformMain <build>btrfs_shell
65	:
66	# no extra files
67	:
68	<build>btrfs.o
69	<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
70	$(HOST_LIBROOT) $(fsShellCommandLibs) uuid
71;
72
73SEARCH on [ FGristFiles $(utilitySources) ]
74	+= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
75SEARCH on [ FGristFiles DebugSupport.cpp ]
76	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
77