From 5f0074d66a270591d88296d8313f65e2394f549d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 23 Jan 2007 21:02:59 +0000 Subject: [PATCH] Use a different usb lib name for Haiku only git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19930 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/media-add-ons/usb_webcam/Jamfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/add-ons/media/media-add-ons/usb_webcam/Jamfile b/src/add-ons/media/media-add-ons/usb_webcam/Jamfile index a2fbc4d4d5..2c2d0a4686 100644 --- a/src/add-ons/media/media-add-ons/usb_webcam/Jamfile +++ b/src/add-ons/media/media-add-ons/usb_webcam/Jamfile @@ -5,6 +5,13 @@ SetSubDirSupportedPlatformsBeOSCompatible ; # for USBKit.h UseLibraryHeaders usb ; +# Zeta has a libusb.so, we have a USBKit.a +if $(TARGET_PLATFORM) = haiku { +usbKitLibraryName = USBKit.a ; +} else { +usbKitLibraryName = usb ; +} + # HOW the F*** do I do that with Jam ? #SRCS := $(wildcard *.cpp) \ #$(wildcard addons/*/*.cpp) \ @@ -75,7 +82,7 @@ Addon usb_webcam.media_addon : media : CamStreamingDeframer.cpp ; -LinkAgainst usb_webcam.media_addon : be media usb ; +LinkAgainst usb_webcam.media_addon : be media $(usbKitLibraryName) ; # force dependancies Includes [ FGristFiles CamRoster.cpp ] : [ FGristFiles CamInternalAddons.h ] ;