xref: /haiku/src/add-ons/kernel/bus_managers/usb/Jamfile (revision 3e907cd4a08850ef812c9f8d6cb3c2fb24b1b316)
1SubDir HAIKU_TOP src add-ons kernel bus_managers usb ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5SubDirC++Flags -fno-rtti ;
6
7local compatSources ;
8
9SubDirSysHdrs $(SUBDIR) ;
10if $(TARGET_PLATFORM) != haiku {
11	UsePrivateHeaders kernel ;
12	UsePublicHeaders drivers ;
13	if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
14		compatSources = kernel_cpp.cpp ;
15	}
16} else {
17	UsePrivateKernelHeaders ;
18}
19
20KernelStaticLibrary libusb.a :
21	Stack.cpp
22	Device.cpp
23	Hub.cpp
24	BusManager.cpp
25	Transfer.cpp
26	Pipe.cpp
27	Interface.cpp
28	Object.cpp
29	PhysicalMemoryAllocator.cpp
30	$(compatSources)
31	: -fno-pic
32;
33
34KernelAddon usb :
35	usb.cpp
36	: libusb.a
37	: usb.rdef
38	;
39
40SEARCH on [ FGristFiles $(compatSources) ]
41	= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
42