xref: /haiku/src/tests/add-ons/kernel/file_systems/iso9660/iso9660_shell/Jamfile (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1SubDir HAIKU_TOP src tests add-ons kernel file_systems iso9660 iso9660_shell ;
2
3SEARCH_SOURCE
4	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems iso9660 ] ;
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	if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
16		# GCC2 doesn't compile BFS correctly with -O2 or more
17		OPTIM = -O1 ;
18	}
19
20	defines = [ FDefines $(defines) ] ;
21	SubDirCcFlags $(defines) -Wno-multichar ;
22	SubDirC++Flags $(defines) -Wno-multichar -fno-rtti ;
23}
24
25# platform specific libraries
26local fsShellCommandLibs ;
27if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
28	fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
29}
30
31UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
32
33if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
34	UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
35	UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
36}
37
38UsePrivateHeaders shared storage ;
39UsePrivateHeaders fs_shell ;
40UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
41UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
42
43BuildPlatformMain <build>iso9660_shell
44	:
45	iso9660.cpp
46	iso9660_identify.cpp
47	kernel_interface.cpp
48
49	:
50	<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
51	$(HOST_LIBROOT) $(fsShellCommandLibs)
52;
53