xref: /haiku/src/tests/system/kernel/disk_device_manager/Jamfile (revision fc7456e9b1ec38c941134ed6d01c438cf289381e)
1SubDir HAIKU_TOP src tests system kernel disk_device_manager ;
2
3SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src system kernel disk_device_manager ] ;
4SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src system kernel fs ] ;
5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage disk_device ] ;
6	# DiskDeviceTypes.cpp
7
8SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src system kernel events ] ;
9	# Notifications.cpp
10
11UsePrivateKernelHeaders ;
12UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_KERNEL_PLATFORM) ] ;
13UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
14UsePrivateHeaders [ FDirName kernel fs ] ;
15UsePrivateHeaders [ FDirName kernel util ] ;
16UsePrivateHeaders storage ;
17UseHeaders [ FDirName $(HAIKU_TOP) src system kernel disk_device_manager ] ;
18
19DEFINES += _KERNEL_MODE ;
20
21SharedLibrary test_disk_device_manager.so :
22#	ddm_userland_interface.cpp
23	disk_device_manager.cpp
24	KDiskDevice.cpp
25	KDiskDeviceManager.cpp
26	KFileDiskDevice.cpp
27	KDiskSystem.cpp
28	KFileSystem.cpp
29	KPartition.cpp
30	KPartitioningSystem.cpp
31	KPartitionListener.cpp
32	KPartitionVisitor.cpp
33	UserDataWriter.cpp
34
35	# disk device types
36	DiskDeviceTypes.cpp
37
38	# fs
39	KPath.cpp
40
41	# notifications
42	Notifications.cpp
43
44	: be libkernelland_emu.so [ TargetLibsupc++ ]
45;
46
47UnitTestLib libkerneldiskdevicemanagertest.so :
48	DiskDeviceManagerTestAddon.cpp
49	KPartitionTest.cpp
50	: test_disk_device_manager.so [ TargetLibstdc++ ]
51;
52
53SimpleTest DiskDeviceManagerTest :
54	DiskDeviceManagerTest.cpp
55	: test_disk_device_manager.so be
56;
57
58# Also build all modules:
59Depends DiskDeviceManagerTest : userland_disk_system_modules ;
60
61# Pseudo target for disk system modules.
62NotFile userland_disk_system_modules ;
63Depends userland_disk_system_modules :
64	libkernelland_emu.so
65	<file_system>bfs
66	<partitioning_system>intel
67	<partitioning_system>amiga_rdb
68	<partitioning_system>apple
69	<partitioning_system>session
70;
71
72# KFileDiskDevice.cpp needs the virtualdrive.h Header. Add it here to not
73# contaminate the include paths for the other files.
74ObjectHdrs [ FGristFiles KFileDiskDevice$(SUFOBJ) ]
75	: [ FDirName $(HAIKU_TOP) src tests kits storage virtualdrive ] ;
76