Merge branch 'msvc2' into msvc
This commit is contained in:
commit
e37d24e691
8 changed files with 33 additions and 26 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -7,6 +7,8 @@
|
||||||
*.lo
|
*.lo
|
||||||
*.o
|
*.o
|
||||||
*~
|
*~
|
||||||
|
.vs/
|
||||||
|
CMakeSettings.json
|
||||||
Doxyfile
|
Doxyfile
|
||||||
INSTALL
|
INSTALL
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
|
@ -60,7 +62,3 @@ utils/nfc-mfultralight
|
||||||
utils/nfc-read-forum-tag3
|
utils/nfc-read-forum-tag3
|
||||||
utils/nfc-relay-picc
|
utils/nfc-relay-picc
|
||||||
utils/nfc-scan-device
|
utils/nfc-scan-device
|
||||||
|
|
||||||
.vs/
|
|
||||||
|
|
||||||
CMakeSettings.json
|
|
||||||
|
|
19
.travis.yml
19
.travis.yml
|
@ -22,6 +22,18 @@ matrix:
|
||||||
- libusb-dev
|
- libusb-dev
|
||||||
- doxygen
|
- doxygen
|
||||||
- cmake
|
- cmake
|
||||||
|
script:
|
||||||
|
- mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=~/.local .. && make -j2 && make install
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
dist: bionic
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libusb-dev
|
||||||
|
- doxygen
|
||||||
script:
|
script:
|
||||||
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
||||||
|
|
||||||
|
@ -47,7 +59,6 @@ matrix:
|
||||||
packages:
|
packages:
|
||||||
- libusb-dev
|
- libusb-dev
|
||||||
- doxygen
|
- doxygen
|
||||||
- cmake
|
|
||||||
script:
|
script:
|
||||||
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
||||||
|
|
||||||
|
@ -56,8 +67,7 @@ matrix:
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
before_install:
|
before_install:
|
||||||
- brew update
|
- brew install doxygen libusb-compat
|
||||||
- brew install autoconf automake cmake doxygen gettext libusb libusb-compat m4 pcre2 pkg-config
|
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=~/.local .. && make -j2 && make install
|
- mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=~/.local .. && make -j2 && make install
|
||||||
|
|
||||||
|
@ -66,7 +76,6 @@ matrix:
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
before_install:
|
before_install:
|
||||||
- brew update
|
- brew install doxygen libusb-compat m4
|
||||||
- brew install autoconf automake doxygen gettext libusb libusb-compat m4 pcre2 pkg-config
|
|
||||||
script:
|
script:
|
||||||
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
- autoreconf -vfi && mkdir build && cd build && ../configure --prefix=$HOME/.local/ && make -j2 && make install
|
||||||
|
|
|
@ -3,13 +3,13 @@ SET(LIBNFC_DRIVER_ACR122_PCSC OFF CACHE BOOL "Enable ACR122 support (Depends on
|
||||||
SET(LIBNFC_DRIVER_ACR122_USB ON CACHE BOOL "Enable ACR122 support (Direct USB connection)")
|
SET(LIBNFC_DRIVER_ACR122_USB ON CACHE BOOL "Enable ACR122 support (Direct USB connection)")
|
||||||
SET(LIBNFC_DRIVER_ACR122S ON CACHE BOOL "Enable ACR122S support (Use serial port)")
|
SET(LIBNFC_DRIVER_ACR122S ON CACHE BOOL "Enable ACR122S support (Use serial port)")
|
||||||
SET(LIBNFC_DRIVER_ARYGON ON CACHE BOOL "Enable ARYGON support (Use serial port)")
|
SET(LIBNFC_DRIVER_ARYGON ON CACHE BOOL "Enable ARYGON support (Use serial port)")
|
||||||
IF(NOT UNIX OR APPLE)
|
IF(UNIX AND NOT APPLE)
|
||||||
SET(LIBNFC_DRIVER_PN532_I2C OFF CACHE BOOL "Enable PN532 I2C support (Use I2C bus)")
|
|
||||||
SET(LIBNFC_DRIVER_PN532_SPI OFF CACHE BOOL "Enable PN532 SPI support (Use SPI bus)")
|
|
||||||
ELSE(NOT UNIX OR APPLE)
|
|
||||||
SET(LIBNFC_DRIVER_PN532_I2C ON CACHE BOOL "Enable PN532 I2C support (Use I2C bus)")
|
SET(LIBNFC_DRIVER_PN532_I2C ON CACHE BOOL "Enable PN532 I2C support (Use I2C bus)")
|
||||||
SET(LIBNFC_DRIVER_PN532_SPI ON CACHE BOOL "Enable PN532 SPI support (Use SPI bus)")
|
SET(LIBNFC_DRIVER_PN532_SPI ON CACHE BOOL "Enable PN532 SPI support (Use SPI bus)")
|
||||||
ENDIF(NOT UNIX OR APPLE)
|
ELSE(UNIX AND NOT APPLE)
|
||||||
|
SET(LIBNFC_DRIVER_PN532_I2C OFF CACHE BOOL "Enable PN532 I2C support (Use I2C bus)")
|
||||||
|
SET(LIBNFC_DRIVER_PN532_SPI OFF CACHE BOOL "Enable PN532 SPI support (Use SPI bus)")
|
||||||
|
ENDIF(UNIX AND NOT APPLE)
|
||||||
SET(LIBNFC_DRIVER_PN532_UART ON CACHE BOOL "Enable PN532 UART support (Use serial port)")
|
SET(LIBNFC_DRIVER_PN532_UART ON CACHE BOOL "Enable PN532 UART support (Use serial port)")
|
||||||
SET(LIBNFC_DRIVER_PN53X_USB ON CACHE BOOL "Enable PN531 and PN531 USB support (Depends on libusb)")
|
SET(LIBNFC_DRIVER_PN53X_USB ON CACHE BOOL "Enable PN531 and PN531 USB support (Depends on libusb)")
|
||||||
|
|
||||||
|
|
|
@ -103,4 +103,4 @@ int getopt(int nargc, char * const nargv[], const char *ostr)
|
||||||
++optind;
|
++optind;
|
||||||
}
|
}
|
||||||
return (optopt); /* dump back option letter */
|
return (optopt); /* dump back option letter */
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ extern char *optarg; /* argument associated with option */
|
||||||
|
|
||||||
int getopt(int nargc, char * const nargv[], const char *ostr);
|
int getopt(int nargc, char * const nargv[], const char *ostr);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -54,4 +54,4 @@ EXPORTS
|
||||||
pn53x_transceive
|
pn53x_transceive
|
||||||
pn532_SAMConfiguration
|
pn532_SAMConfiguration
|
||||||
pn53x_read_register
|
pn53x_read_register
|
||||||
pn53x_write_register
|
pn53x_write_register
|
||||||
|
|
|
@ -54,4 +54,4 @@ EXPORTS
|
||||||
pn53x_transceive
|
pn53x_transceive
|
||||||
pn532_SAMConfiguration
|
pn532_SAMConfiguration
|
||||||
pn53x_read_register
|
pn53x_read_register
|
||||||
pn53x_write_register
|
pn53x_write_register
|
||||||
|
|
|
@ -29,23 +29,23 @@ IF(UART_REQUIRED)
|
||||||
ENDIF(UART_REQUIRED)
|
ENDIF(UART_REQUIRED)
|
||||||
|
|
||||||
IF(I2C_REQUIRED)
|
IF(I2C_REQUIRED)
|
||||||
IF(NOT UNIX OR APPLE)
|
IF(UNIX AND NOT APPLE)
|
||||||
|
LIST(APPEND BUSES_SOURCES buses/i2c)
|
||||||
|
ELSE(UNIX AND NOT APPLE)
|
||||||
# Only Linux is supported at the moment
|
# Only Linux is supported at the moment
|
||||||
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/i2c)
|
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/i2c)
|
||||||
MESSAGE( FATAL_ERROR "I2C is only (yet) supported in Linux!" )
|
MESSAGE( FATAL_ERROR "I2C is only (yet) supported in Linux!" )
|
||||||
ELSE(NOT UNIX OR APPLE)
|
ENDIF(UNIX AND NOT APPLE)
|
||||||
LIST(APPEND BUSES_SOURCES buses/i2c)
|
|
||||||
ENDIF(NOT UNIX OR APPLE)
|
|
||||||
ENDIF(I2C_REQUIRED)
|
ENDIF(I2C_REQUIRED)
|
||||||
|
|
||||||
IF(SPI_REQUIRED)
|
IF(SPI_REQUIRED)
|
||||||
IF(NOT UNIX OR APPLE)
|
IF(UNIX AND NOT APPLE)
|
||||||
|
LIST(APPEND BUSES_SOURCES buses/spi)
|
||||||
|
ELSE(UNIX AND NOT APPLE)
|
||||||
# Only Linux is supported at the moment
|
# Only Linux is supported at the moment
|
||||||
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/spi)
|
#LIST(APPEND BUSES_SOURCES ../contrib/win32/libnfc/buses/spi)
|
||||||
MESSAGE( FATAL_ERROR "SPI is only (yet) supported in Linux!" )
|
MESSAGE( FATAL_ERROR "SPI is only (yet) supported in Linux!" )
|
||||||
ELSE(NOT UNIX OR APPLE)
|
ENDIF(UNIX AND NOT APPLE)
|
||||||
LIST(APPEND BUSES_SOURCES buses/spi)
|
|
||||||
ENDIF(NOT UNIX OR APPLE)
|
|
||||||
ENDIF(SPI_REQUIRED)
|
ENDIF(SPI_REQUIRED)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses)
|
||||||
|
|
Loading…
Reference in a new issue