xref: /haiku/src/tools/fs_shell/Jamfile (revision f09ba8ea46ba2f4e482d7cd03e8eb77f37a60663)
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
17# platform specific sources
18local fsShellCommandSources ;
19local externalCommandsSources ;
20if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
21	fsShellCommandSources = fs_shell_command_beos.cpp ;
22	externalCommandsSources = external_commands_beos.cpp ;
23} else {
24	fsShellCommandSources = fs_shell_command_unix.cpp ;
25	externalCommandsSources = external_commands_unix.cpp ;
26}
27
28BuildPlatformStaticLibrary <build>fs_shell.a :
29	atomic.cpp
30	block_cache.cpp
31	command_cp.cpp
32	driver_settings.cpp
33	errno.cpp
34	fcntl.cpp
35	fd.cpp
36	file_cache.cpp
37	kernel_export.cpp
38	KPath.cpp
39	hash.cpp
40	list.cpp
41	lock.cpp
42	module.cpp
43	node_monitor.cpp
44	path_util.cpp
45	rootfs.cpp
46	sem.cpp
47	stat.cpp
48	stat_util.cpp
49	stdio.cpp
50	string.cpp
51	thread.cpp
52	time.cpp
53	uio.cpp
54	unistd.cpp
55	vfs.cpp
56
57	$(externalCommandsSources)
58
59	fssh.cpp
60;
61
62BuildPlatformMain <build>fs_shell_command
63	: fs_shell_command.cpp $(fsShellCommandSources)
64	: $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
65