xref: /haiku/src/tests/add-ons/kernel/file_systems/udf/udf_shell/Jamfile (revision 6f80a9801fedbe7355c4360bd204ba746ec3ec2d)
1SubDir HAIKU_TOP src tests add-ons kernel file_systems udf udf_shell ;
2
3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems udf ] ;
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	if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
15		# GCC2 doesn't compile BFS correctly with -O2 or more
16		OPTIM = -O1 ;
17	}
18
19	defines = [ FDefines $(defines) ] ;
20	SubDirCcFlags $(defines) -Wno-multichar ;
21	SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;
22}
23
24# platform specific libraries
25local fsShellCommandLibs ;
26if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
27	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
28}
29
30UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
31
32if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
33	UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
34	UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
35}
36
37UsePrivateHeaders shared storage ;
38UsePrivateHeaders fs_shell ;
39UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
40UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
41
42BuildPlatformMain <build>udf_shell
43	:
44	crc_table.cpp
45	DString.cpp
46	Icb.cpp
47	MetadataPartition.cpp
48	PhysicalPartition.cpp
49	Recognition.cpp
50	SparablePartition.cpp
51	UdfDebug.cpp
52	UdfString.cpp
53	UdfStructures.cpp
54	Utils.cpp
55	VirtualPartition.cpp
56	Volume.cpp
57	kernel_interface.cpp
58	:
59	<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
60	$(HOST_LIBROOT) $(fsShellCommandLibs)
61;
62
63SEARCH on [ FGristFiles crc_table.cpp ]
64	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
65