mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-22 00:55:23 -04:00
c83b94c78f
v1.0.6 release Darwin: support multiple calls to libusb_init Credit to Orin Eman for finding this bug. Darwin: use logging functions Use usbi_warn, usbi_err, and usbi_info instead of _usbi_log. Darwin: fix memory leak in process_device Credit to Mike Colagrosso for finding this bug. Add internal abstraction for POSIX Threads This prepares for a Windows backend without dependency on pthreads-w32. pthread_* is renamed to usbi_* and PTHREAD_* to USBI_*. A usbi_mutex_static_t and usbi_mutex_static_lock() and _unlock() are introduced for statically initialized mutexes, since they may be implemented using other types when pthreads mutexes aren't used. Move -pthread from libusb/Makefile.am to host-specific AM_CFLAGS in configure.ac. AM_CFLAGS is already used in Makefile.am. (Numerous merge conflicts resolved by Michael Plante) misc fixes to pthreads abstraction * windows_compat.h should not be directly included (use libusbi.h) * windows_usb.c still had some references to pthread_mutex_[un]lock Add libusb_strerror() to get short error message in English from enum (Merge conflicts resolved by Michael Plante) Better cleanup on errors, stricter types and some good casts Avoid various memory leaks in error code paths and remove warnings. Also add usbi_cond_destroy in os/threads_posix.h because it's used for cleanup now. (Merge conflicts resolved by Michael Plante) Rename all interface parameters to usb_interface or interface_number (Merge conflicts resolved by Michael Plante) Add type parameter to the list_for_each_entry() and _safe() macros (Merge conflicts resolved by Michael Plante) VA_ARGS workaround for logging with MSVC6 (Merge conflicts resolved by Michael Plante) Fix context memory leak in libusb_init() * Now holds default_context_lock for duration of libusb_init * Doesn't allocate it if not needed Fix the last MSVC /W3 warning removal of pthreads from MSVC and mingw * removed pthread*.lib from linking in msvc6 (2005/8 not yet edited) * added threads_windows.[ch] to all project files in msvc6 * added usbi_cond_signal to both threading versions, unused * added native windows threading code, now used removed redundant time.h includes removed pthread-win32 informational solution files updated MSVC 2005/2008 for thread abstraction fixed DDK build fixed cygwin's use of POSIX threads fixed dpfp/dpfp_threaded for MinGW compatibility config_msvc.h -> msvc/config.h pthread abstraction for DLL project files fixed bad reference to thread_windows in 2005 DLL vcproj cygwin ifdef is not required in threads_windows.h - removed fixed residuals from previous patches moved thread source detection into autotool scripts
167 lines
4.1 KiB
Plaintext
167 lines
4.1 KiB
Plaintext
# Microsoft Developer Studio Project File - Name="libusb_static" - Package Owner=<4>
|
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
# ** DO NOT EDIT **
|
|
|
|
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
|
|
|
CFG=libusb_static - Win32 Debug
|
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
!MESSAGE use the Export Makefile command and run
|
|
!MESSAGE
|
|
!MESSAGE NMAKE /f "libusb_static.mak".
|
|
!MESSAGE
|
|
!MESSAGE You can specify a configuration when running NMAKE
|
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
!MESSAGE
|
|
!MESSAGE NMAKE /f "libusb_static.mak" CFG="libusb_static - Win32 Debug"
|
|
!MESSAGE
|
|
!MESSAGE Possible choices for configuration are:
|
|
!MESSAGE
|
|
!MESSAGE "libusb_static - Win32 Release" (based on "Win32 (x86) Static Library")
|
|
!MESSAGE "libusb_static - Win32 Debug" (based on "Win32 (x86) Static Library")
|
|
!MESSAGE
|
|
|
|
# Begin Project
|
|
# PROP AllowPerConfigDependencies 0
|
|
# PROP Scc_ProjName ""
|
|
# PROP Scc_LocalPath ""
|
|
CPP=cl.exe
|
|
RSC=rc.exe
|
|
|
|
!IF "$(CFG)" == "libusb_static - Win32 Release"
|
|
|
|
# PROP BASE Use_MFC 0
|
|
# PROP BASE Use_Debug_Libraries 0
|
|
# PROP BASE Output_Dir "Release"
|
|
# PROP BASE Intermediate_Dir "Release"
|
|
# PROP BASE Target_Dir ""
|
|
# PROP Use_MFC 0
|
|
# PROP Use_Debug_Libraries 0
|
|
# PROP Output_Dir "Win32/Release/lib"
|
|
# PROP Intermediate_Dir "Win32/Release/lib"
|
|
# PROP Target_Dir ""
|
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
|
# ADD CPP /nologo /MD /W3 /GX /O2 /I "msvc" /I "libusb" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FR /FD /EHsc /c
|
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
|
BSC32=bscmake.exe
|
|
# ADD BASE BSC32 /nologo
|
|
# ADD BSC32 /nologo
|
|
LIB32=link.exe -lib
|
|
# ADD BASE LIB32 /nologo
|
|
# ADD LIB32 /nologo /out:"Win32/Release/lib/libusb-1.0.lib"
|
|
|
|
!ELSEIF "$(CFG)" == "libusb_static - Win32 Debug"
|
|
|
|
# PROP BASE Use_MFC 0
|
|
# PROP BASE Use_Debug_Libraries 1
|
|
# PROP BASE Output_Dir "Debug"
|
|
# PROP BASE Intermediate_Dir "Debug"
|
|
# PROP BASE Target_Dir ""
|
|
# PROP Use_MFC 0
|
|
# PROP Use_Debug_Libraries 1
|
|
# PROP Output_Dir "Win32/Debug/lib"
|
|
# PROP Intermediate_Dir "Win32/Debug/lib"
|
|
# PROP Target_Dir ""
|
|
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "msvc" /I "libusb" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /FD /GZ /EHsc /c
|
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
|
BSC32=bscmake.exe
|
|
# ADD BASE BSC32 /nologo
|
|
# ADD BSC32 /nologo /n
|
|
LIB32=link.exe -lib
|
|
# ADD BASE LIB32 /nologo
|
|
# ADD LIB32 /nologo /out:"Win32/Debug/lib/libusb-1.0.lib"
|
|
|
|
!ENDIF
|
|
|
|
# Begin Target
|
|
|
|
# Name "libusb_static - Win32 Release"
|
|
# Name "libusb_static - Win32 Debug"
|
|
# Begin Group "Source Files"
|
|
|
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\core.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\darwin_usb.c
|
|
# PROP Exclude_From_Build 1
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\descriptor.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\io.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\linux_usbfs.c
|
|
# PROP Exclude_From_Build 1
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\sync.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\threads_windows.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\windows_compat.c
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\windows_usb.c
|
|
# End Source File
|
|
# End Group
|
|
# Begin Group "Header Files"
|
|
|
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
|
# Begin Source File
|
|
|
|
SOURCE=.\config_msvc.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\darwin_usb.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\libusb.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\libusbi.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\linux_usbfs.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\threads_posix.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\threads_windows.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\windows_compat.h
|
|
# End Source File
|
|
# Begin Source File
|
|
|
|
SOURCE=.\libusb\os\windows_usb.h
|
|
# End Source File
|
|
# End Group
|
|
# End Target
|
|
# End Project
|