Add libusb and libuvc
[rtmpclient.git] / app / src / main / jni / libusb-1.0.22 / msvc / libusb_sources
1 #TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build
2 TARGETNAME=libusb-1.0
3 DLLDEF=..\libusb-1.0.def
4
5 _NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
6
7 !IFNDEF MSC_WARNING_LEVEL
8 MSC_WARNING_LEVEL=/W3
9 !ENDIF
10
11 !IFDEF STATIC_LIBC
12 USE_LIBCMT=1
13 !ELSE
14 USE_MSVCRT=1
15 !ENDIF
16
17 INCLUDES=..;..\..\msvc;$(DDK_INC_PATH)
18 C_DEFINES=$(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD
19
20 # http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
21 # prevents the following error when using the 64 bit static lib with Visual Studio 2010:
22 # "fatal error C1001: An internal error has occurred in the compiler.
23 # (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
24 # and the following with Visual Studio 2010:
25 # "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with
26 #  an older compiler than other objects; rebuild old objects and libraries"
27 USER_C_FLAGS=/GL-
28
29 TARGETLIBS=$(SDK_LIB_PATH)\advapi32.lib \
30            $(SDK_LIB_PATH)\kernel32.lib
31
32 SOURCES=..\core.c \
33         ..\descriptor.c \
34         ..\hotplug.c \
35         ..\io.c \
36         poll_windows.c \
37         ..\strerror.c \
38         ..\sync.c \
39         threads_windows.c \
40         windows_nt_common.c \
41         windows_usbdk.c \
42         windows_winusb.c \
43         ..\libusb-1.0.rc