Skip to content

Commit

Permalink
Merge pull request #1688 from Memphiz/libusb
Browse files Browse the repository at this point in the history
[droid] - activate usb peripherals available
  • Loading branch information
Arne Morten Kvarving committed Nov 7, 2012
2 parents f849887 + ba1564f commit 92b2a1b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/android/depends/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SUBDIRS = \
python26-native python26 samba alsa-lib libcdio afpfs-ng libshairport \
libplist libcec libbluray boost tinyxml dummy-libxbmc libsdl \
liblzo2-native libjpeg-turbo-native libpng-native tiff-native libsdl_image rpl \
libamplayer libssh taglib swig-native pcre-native xbmc-pvr-addons
libamplayer libssh taglib swig-native pcre-native xbmc-pvr-addons libusb

.PHONY: buildtools $(BUILDTOOLS) subdirs $(SUBDIRS) arm

Expand Down
40 changes: 40 additions & 0 deletions tools/android/depends/libusb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
include ../Makefile.include
DEPS= ../Makefile.include Makefile

# lib name, version
LIBNAME=libusb
VERSION=0.1.12
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz

# configuration settings
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
./configure --prefix=$(PREFIX) --host=$(HOST) --disable-shared

LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a

CLEAN_FILES=$(ARCHIVE) $(PLATFORM)

all: $(LIBDYLIB) .installed-$(PLATFORM)

$(TARBALLS_LOCATION)/$(ARCHIVE):
$(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)

$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)

$(LIBDYLIB): $(PLATFORM)
$(MAKE) -C $(PLATFORM)

.installed-$(PLATFORM): $(LIBDYLIB)
$(MAKE) -C $(PLATFORM) install
touch $@

clean:
$(MAKE) -C $(PLATFORM) clean
rm -f .installed-$(PLATFORM)

distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
3 changes: 3 additions & 0 deletions xbmc/peripherals/bus/PeripheralBusUSB.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@
#elif defined(TARGET_DARWIN)
#define HAVE_PERIPHERAL_BUS_USB 1
#include "osx/PeripheralBusUSB.h"
#elif defined(TARGET_ANDROID)
#define HAVE_PERIPHERAL_BUS_USB 1
#include "linux/PeripheralBusUSBLibUSB.h"
#endif

0 comments on commit 92b2a1b

Please sign in to comment.