mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-20 05:26:18 +00:00
Windows packaging improvement
- Stepped away from NSIS, to just be a plain zip file - Fixed a bug (though when trying NSIS) of dealing with slashes in windows paths - Had package add .lib file instead of .dll.a file, since lib files tend to be more useful for Windows developers
This commit is contained in:
@@ -29,6 +29,8 @@ IF(NOT LIBUSB_FOUND)
|
||||
FIND_PATH(LIBUSB_INCLUDE_DIRS lusb0_usb.h "$ENV{ProgramFiles}/LibUSB-Win32/include" NO_SYSTEM_ENVIRONMENT_PATH)
|
||||
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES libusb PATHS "$ENV{ProgramFiles}/LibUSB-Win32/lib/gcc")
|
||||
SET(LIBUSB_LIBRARY_DIR "$ENV{ProgramFiles}/LibUSB-Win32/bin/x86/")
|
||||
# Must fix up variable to avoid backslashes during packaging
|
||||
STRING(REGEX REPLACE "\\\\" "/" LIBUSB_LIBRARY_DIR ${LIBUSB_LIBRARY_DIR})
|
||||
ELSE(WIN32)
|
||||
# If not under Windows we use PkgConfig
|
||||
FIND_PACKAGE (PkgConfig)
|
||||
|
||||
Reference in New Issue
Block a user