summaryrefslogtreecommitdiff
path: root/msvc
Commit message (Collapse)AuthorAgeFilesLines
* Adds /utf-8 to compile optionsRipleyTom2019-07-0745-0/+45
| | | | Signed-off-by: Nathan Hjelm <hjelmn@me.com>
* Change all $(SolutionDir) to $(ProjectDir)RipleyTom2019-07-0745-90/+90
| | | | Signed-off-by: Nathan Hjelm <hjelmn@me.com>
* Adding support for ARM & ARM64 Windows PlatformDj Art2019-04-0410-9/+297
| | | | | | Closes #423 Signed-off-by: Nathan Hjelm <hjelmn@me.com>
* Windows: Add back resource and definition files to VS DLL projectsChris Dickens2018-03-205-0/+20
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Restructure DDK/MSVC project filesChris Dickens2018-03-1271-5010/+855
| | | | | | | | | | | For simplicity and to address some build warnings, this commit reworks the project files to eliminate duplication and consolidate common build flags and options. Also adds the stress and testlibusb projects to the DDK build script. Closes #402 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Fix appveyor scripts for Cygwin and MinGW to build as intendedChris Dickens2018-01-081-7/+6
| | | | | | | | | | | | | | | | | | | | The sub-directory created to store the generated files and build objects was not being used as intended, because each invocation of the bash starts in the home directory. Fix this by changing to the intended directory prior to each command invocation. Also replace the invocation of autogen.sh with bootstrap.sh, since using autogen.sh calls ./configure and we weren't using the results of that work. Instead we call configure directly from the sub-directory while enabling the examples and test builds (for Cygwin) as autogen.sh would do. Also fix the invalid value for the --build option provided to the x64 build of MinGW. Finally, propagate errors from each script command so that failures are caught and reported. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Ditch UsbDk build configurationSameeh Jubran2018-01-0811-1093/+1
| | | | | | | Previous patch introduced run-time UsbDk backend activation, therefore separate build configuration is not needed anymore. Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
* Windows: Enable dynamic selection between WinUSB and UsbDk backendsChris Dickens2018-01-0817-22/+145
| | | | | | | | | | | | | This commit unifies the two Windows backends into a single project and enables the user to switch to the UsbDk backend, if available, using the libusb_set_option() function. All contexts will use the WinUSB backend by default for backwards compatibility. With this change, the UsbDk-specific projects are no longer required. Closes #309 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Add TargetName to getopt VS project files to supress warningChris Dickens2018-01-045-0/+20
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Sort projects alphabetically in VS solution filesChris Dickens2018-01-046-273/+266
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Fix references section in fxload VS project filesChris Dickens2018-01-045-15/+20
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Fix linker options in getopt VS project filesChris Dickens2018-01-045-25/+25
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Add missing files to VS2005 projects for libusbChris Dickens2018-01-042-4/+36
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Fix minor discrepancies in WinCE MSVC filesChris Dickens2018-01-043-115/+117
| | | | | | | Add missing header files, fix preprocessor definitions for static library, and sort projects and files by name. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Fix some minor style issuesChris Dickens2018-01-031-1/+1
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Ensure that both WINVER and _WIN32_WINNT are defined for Windows buildsChris Dickens2018-01-031-0/+4
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Add _CRT_SECURE_NO_WARNINGS to testlibusb to suppress warning C4996Chris Dickens2017-12-285-20/+20
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Fix testlibusb build on VS2013 and earlier and suppress warningsChris Dickens2017-12-261-2/+4
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Add VS 2010/2012/2013/2017 project files for testlibusbChris Dickens2017-12-268-0/+712
| | | | | | | Inspired by PR #201 (commit fa19c152), this commit adds the same project files for the other supported versions of Visual Studio. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: testlibusb example for VS2015Anil Nair2017-12-262-0/+179
| | | | | | Closes #201 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* core: Remove check for and inclusion of signal.hChris Dickens2017-01-121-1/+0
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Fix DDK build's missing filesChris Dickens2017-01-121-4/+4
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Add Visual Studio 2017 supportChris Dickens2017-01-0611-0/+1788
| | | | Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* windows: use appropriate version for VS2015 solution filesPete Batard2016-07-221-2/+2
| | | | * Closes #193
* AppVeyor: use a .bat file nowhacker24902016-03-061-0/+28
| | | | | | | | | | | - Changes in platform configuration, x86 breaks the build - Solution file does not contain platform for Any CPU,fixing it to Win32 - Added Multiple solutions to appveyor configuration file - Added batch script for VS2010 builds - Added fixes to appveyor.bat file and appveyor.yml - Fixes for Platform and Configuration in appveyor.bat - Fixed windows exit code, Appveyor reports exit on succesful build - Multiple Builds in same platform and configuration,fixed it
* Misc: Fix up Visual Studio project filesChris Dickens2016-01-2712-65/+78
| | | | | | | | | This commit sorts the source and header files by name (for easier human parsing), adds windows_nt_common.c to the 2010 and 2012 projects, and removes some CPP defines that should not be present in the libusb_static_2015.vcxproj file. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* build: Integrate usbdk backendDmitry Fleytman2016-01-268-1/+735
| | | | | Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* windows: Rename windows_usb.h/c windows_winusb.h/cDmitry Fleytman2016-01-2317-33/+33
| | | | | Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* windows: Move common definitions to a separate fileDmitry Fleytman2016-01-235-0/+9
| | | | | | | New files windows_nt_common.h/c introduced. Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Windows: Add Visual Studio 2015 supportBrent Rector2016-01-0610-0/+1431
| | | | | | | | | | | Modified from original to remove two unnecessary files and address type-casting discrepancies across platforms. Closes #60 Closes #83 Closes #120 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Revert all references to libusb/libusb.infohjelmn@cs.unm.edu2014-01-0814-7/+8
|
* Windows: Add Visual Studio 2013 solution filesJoshua Blake2013-12-139-0/+1419
| | | | | * Also update gitignore * Closes #162
* Windows: Fix a cast warning when compiling for x64 in VSPete Batard2013-08-131-2/+2
| | | | * Also fixes and closes #129 again
* Windows: Fix VS2010 project filesPete Batard2013-08-121-1/+1
| | | | * Closes #129
* Core: Add compile time option to use native OS logging facilityToby Gray2013-08-091-0/+3
| | | | | | | | | | * This change makes it easier to debug issues in UI applications which don't necessarily have a console connected to stderr. * Outputting to the debugger shouldn't occur in normal situations so this change has to be explicitly enabled by a build-time config flag. * Uses OutputDebugString() on Windows platforms or the syslog facility on other OSes, if available. * Also align the report of configure defaults to autotool's.
* Core: Add a libusb_strerror() functionHans de Goede2013-06-1013-0/+33
| | | | | | | | | | | | | | | | | | | This patch adds the much requested libusb_strerror() function, taking into account all issues people raised wrt previous attempts. Criteria / Decisions underlying this implementation: - Must support translated messages - Must not use gettext as that does not work well in combination with Windows (when building with Visual C, or for Windows CE) - API compatible with FreeBSD and various patched libusb-s floating around - KISS: - Do not add any (other) library dependencies - Do not try to deal with message encodings (iconv), simply always return UTF-8 making encoding the problem of the application using libusb_strerror. - Defaults to English, so apps which don't want translated messages, don't need to do anything special - Defaults to English (with pure ASCII messages), so apps which don't call libusb_setlocale() don't need to worry about encoding
* WinCE: Add hotplug.c to projectsToby Gray2013-05-282-0/+8
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add hotplugtest to msvc project filesPete Batard2013-05-1619-2/+493
|
* WinCE: Fix x86 build on Visual Studio 2005Toby Gray2013-04-114-0/+8
|
* Windows: Fix multiple warningsPete Batard2013-03-121-0/+2
| | | | | * Most of these warnings are false positive from VS2012's "Run Code Analysis" * Also closes #98: "windows_usb.c:376:30: 'dev_info' may be used uninitialized"
* WinCE: Post integration cleanupPete Batard2013-03-031-1/+4
| | | | | | * Update copyrights and switch to UTF-8 everywhere * Add SleepEx() to missing.h, and move include to libusbi.h * Remove ifdef for GetSystemTimeAsFileTime()
* Misc: Simplify includes and misc. cleanupPete Batard2013-02-272-16/+11
| | | | | | | | | | | * fxload sample provenance * No need for <sys/types.h> in samples as already in libusb.h * Don't bother about sscanf_s in xusb * Use HAVE_### and rely on config.h where possible * Formal inclusion of <winsock.h> in libusb.h for WinCE and WDK * Cleanup of Windows' config.h * Avoid ENAMETOOLONG and ENOTEMPTY conflict between errno.h and winsock.h for WinCE * Additional newlines & braces cleanup
* WinCE: Add support for WinCE (Solution files)Toby Gray2013-01-236-0/+6018
|
* WinCE: Add support for WinCE (sources)Toby Gray2013-01-234-1/+218
|
* Windows: Add windows_common.h headerToby Gray2013-01-2310-25/+52
| | | | | * This file contains definition that will be shared between the Windows and Windows CE backends
* Core: Use HAVE_SYS_TYPES_H and HAVE_SIGNAL_HPete Batard2013-01-231-0/+6
| | | | * These files may not be available on all platforms (eg. WinCE)
* Windows: Add VS2012 solution filesPete Batard2013-01-0738-17/+1470
| | | | * As well as try to clean up MS's MSVC mess...
* Tests: Add libusbx stress testToby Gray2012-11-255-0/+609
| | | | | See https://github.com/tobygray/libusbx/tree/testing as well as http://libusbx.1081486.n5.nabble.com/Libusbx-devel-Crashes-tt433.html#a438
* Samples: Add fxload sample for Cypress EZ-USB chipsPete Batard2012-09-139-0/+738
| | | | | | | | * This program was modified from the original fxload at: http://linux-hotplug.sourceforge.net to add libusbx as well as non HEX images support. * Only supports RAM upload for now, with EEPROM and FX3 support to be added at a later stage.
* Windows: Address MSVC Level 4 & WDK's OACR/Prefast warningsPete Batard2012-07-023-8/+17
| | | | | | | | | | | | | * The library is now compiled with warning level 4 for VS2010 * Move silencing of 4200, 28125 and 28719 to msvc/config.h * Add fixes in core to silence unused variables warnings * Ensure that spinlock is always set interlocked in poll_windows * Add missing check for calloc return value * Fix data assignation in conditionals warnings * Fix an OACR/Prefast error related to the use of strncpy in xusb.c * Also fixes whitespace inconsistencies in core * Issues reported by Orin Eman and Xiaofan Chen. See: https://sourceforge.net/mailarchive/message.php?msg_id=29412656