xref: /haiku/src/add-ons/kernel/drivers/midi/usb_midi/Jamfile (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
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.cpp
15	devlist.cpp
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) apps devices ] ;
23
24Includes [ FGristFiles usb_midi.c ] :
25	<src!apps!devices>usbdevs.h <src!apps!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