xref: /haiku/src/add-ons/kernel/drivers/midi/usb_midi/Jamfile (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1SubDir HAIKU_TOP src add-ons kernel drivers midi usb_midi ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4
5local buffer_impl = ;
6if $(TARGET_PLATFORM) != haiku {
7	UseHeaders [ FDirName $(HAIKU_TOP) headers os drivers ] : true ;
8                # We need the public usb headers also when not compiling for Haiku.
9	buffer_impl = ring_buffer.cpp ;
10}
11UsePrivateHeaders [ FDirName kernel util ] ;
12
13KernelAddon usb_midi :
14	usb_midi.c
15	devlist.c
16	$(buffer_impl)
17;
18
19SEARCH on [ FGristFiles ring_buffer.cpp ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ;
20
21ObjectHdrs [ FGristFiles usb_midi$(SUFOBJ) ]
22	: [ FDirName $(TARGET_COMMON_DEBUG_OBJECT_DIR) preferences devices ] ;
23
24Includes [ FGristFiles usb_midi.c ] :
25	<src!preferences!devices>usbdevs.h <src!preferences!devices>usbdevs_data.h ;
26
27Package haiku-usbmidi-cvs
28	:
29	usb_midi
30	:
31	boot home config add-ons kernel drivers bin ;
32
33PackageDriverSymLink haiku-usbmidi-cvs : midi usb_midi ;
34
35