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