xref: /haiku/src/tools/fs_shell/Jamfile (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1SubDir HAIKU_TOP src tools fs_shell ;
2
3UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
4
5if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
6	UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
7	#UseHeaders [ FDirName $(HAIKU_TOP) headers build os app ] : true ;
8	UseHeaders [ FDirName $(HAIKU_TOP) headers build os kernel ] : true ;
9	#UseHeaders [ FDirName $(HAIKU_TOP) headers build os interface ] : true ;
10	UseHeaders [ FDirName $(HAIKU_TOP) headers build os storage ] : true ;
11	UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
12}
13
14UsePrivateHeaders fs_shell ;
15UsePrivateHeaders shared ;
16
17local defines = [ FDefines FS_SHELL=1 ] ;
18SubDirCcFlags $(defines) ;
19SubDirC++Flags $(defines) ;
20
21# platform specific sources
22local fsShellCommandSources ;
23local externalCommandsSources ;
24if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
25	fsShellCommandSources = fs_shell_command_beos.cpp ;
26	externalCommandsSources = external_commands_beos.cpp ;
27} else {
28	fsShellCommandSources = fs_shell_command_unix.cpp ;
29	externalCommandsSources = external_commands_unix.cpp ;
30}
31
32BuildPlatformStaticLibrary <build>fs_shell.a :
33	atomic.cpp
34	block_cache.cpp
35	command_cp.cpp
36	disk_device_manager.cpp
37	driver_settings.cpp
38	errno.cpp
39	fcntl.cpp
40	fd.cpp
41	file_cache.cpp
42	file_map.cpp
43	kernel_export.cpp
44	KPath.cpp
45	hash.cpp
46	list.cpp
47	lock.cpp
48	module.cpp
49	node_monitor.cpp
50	path_util.cpp
51	rootfs.cpp
52	sem.cpp
53	stat.cpp
54	stat_util.cpp
55	stdio.cpp
56	string.cpp
57	thread.cpp
58	time.cpp
59	uio.cpp
60	unistd.cpp
61	vfs.cpp
62
63	$(externalCommandsSources)
64
65	fssh.cpp
66;
67
68SEARCH on [ FGristFiles rootfs.cpp ]
69	= [ FDirName $(HAIKU_TOP) src system kernel fs ] ;
70
71BuildPlatformMain <build>fs_shell_command
72	: fs_shell_command.cpp $(fsShellCommandSources)
73	: $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
74