Philippe Teuwen
b65674a8e3
Some systems (e.g. glibc < 2.17) require librt to get clock_gettime -> CMAKE
2017-03-02 23:42:36 +01:00
Christoph Gritschenberger
11a2da2811
allow to cross-compile 32 and 64 bit versions of the library for windows
2017-01-25 18:44:44 +01:00
xaqq
17ed36a7a5
Drop PCRE dependency.
...
The config file is now manually parsed instead of using regex.
While this is less beautifull, it allows us to drop PCRE
as a dependency on Windows.
2015-07-22 15:47:36 +02:00
Romuald Conty
0f77565a3c
Fix cmake soversion (doesn't match autotools)
...
Thanks to Julien Schueller
2015-04-15 17:19:42 +02:00
Philippe Teuwen
d99bcb79fa
I2C: add i2c support to CMake
2013-06-15 00:41:20 +02:00
Alex Lian
8b8b8d49a7
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
2013-04-03 01:06:03 -04:00
Philippe Teuwen
7c2f8b4cb0
Add PN532 SPI driver to CMake
2013-03-27 23:25:43 +01:00
Romuald Conty
2be00e7615
Move log implementation for Windows in dedicated directory
2013-03-18 23:53:01 +01:00
Romuald Conty
cb3452db7b
Move UART implementation for Windows in dedicated directory
2013-03-18 23:46:14 +01:00
Romuald Conty
a422ae2211
CMake: only compile usbbus.c when (at least) one USB driver is enabled
2013-03-18 23:32:07 +01:00
Romuald Conty
b6b356b948
CMake: only include UART related files when (at least) one UART driver is enabled
2013-03-18 23:27:23 +01:00
Julien Schueller
8485996f13
Fix cmake build failure under linux
...
The LIBUSB_FOUND variable was used before the libusb detection was performed.
Fixes issue 240.
2013-03-12 20:54:50 +01:00
Philippe Teuwen
ad8b338a7b
Remove log-printf from CMakefile
2013-03-09 10:41:25 +01:00
Alex Lian
b3c6ea86ad
Split logging internals so that platforms may choose additional or alternate spew mechanisms
...
In the case of windows, allow for the OutputDebugString call in addition to logging to stderr.
Useful for the dll scenario and debugging in Visual Studio.
2013-03-07 10:36:33 +01:00
Philippe Teuwen
a262be5633
Windows: Fix bug when compiling without libusb: skip usbbus.c
2013-03-07 08:09:32 +01:00
Alex Lian
f8d8052866
Windows: Fix compilation due to new usbbus file
2013-03-07 08:05:31 +01:00
Alex Lian
4487fd768e
Windows: Shift files from libnfc/windows to libnfc/contrib/win32
...
- Fixes the fact files were missed in package
2013-02-14 15:33:47 +01:00
Romuald Conty
d5b6a7c4d1
Resolves conflict between Alex Lian and master branch
2013-02-04 10:14:34 +01:00
Alex Lian
54e0bdb62f
Windows: Build updates
...
- Generate rc files from version.rc.in + CMake variable information in CMakeLists files
- Add step to generate .lib file for windows developers
- Re-structure tool flag usage, apparently ADD_DEFINTIONS adds them to _ALL_ tools. This is bad for rc files with the windres tool.
Needs other platform testing, as the flags have changed to fix Windows rc file generation.
2013-02-01 10:19:02 -05:00
Romuald Conty
cf9e02879a
Enables logging by default when using CMake
2013-02-01 10:32:44 +01:00
Romuald Conty
acdde1088c
Renames contrib/win32/nfc_win32.c to contrib/win32/stdlib.c
2013-01-31 16:09:41 +01:00
Alex Lian
ef33827f04
Fix setenv/unsetenv link errors by implementing a local version using Windows SetEnvironmentVariable.
...
Untested, and does not comply with the error returns per setenv.
2013-01-31 15:52:39 +01:00
Alex Lian
eb90c5a8db
Add CMake options for Win32 to require PCRE
2013-01-31 15:52:39 +01:00
Romuald Conty
08f428fbdf
Fix CMake build.
2012-12-05 16:47:08 +01:00
Romuald Conty
d6c97cb974
Fixes CMake build (Fixes Issue 211).
...
Thanks to Alex Lian
2012-10-30 22:29:13 +01:00
Romuald Conty
b24191a9b9
Fix compilation using cmake
2011-10-04 21:43:05 +00:00
Romuald Conty
b2666dea15
windows port improved:
...
- PCSC headers/libs are not a requierement sif you dont select ACR122 driver
- uart_win32 implementation now handles timeouts
2011-10-01 14:50:53 +00:00
Romuald Conty
762f6fb1f3
Windows: install libusb into examples directory using "Bundle" feature from CMake (Thanks to Glenn Ergeerts)
2011-04-20 13:18:38 +00:00
Romuald Conty
494e0f4474
windows: copy libusb.dll to bin install dir (windows needs it to be alongside the exe or in the path) (Thanks to Gleen Ergeerts)
2011-04-08 14:11:42 +00:00
Romuald Conty
5db8be908b
Windows support contribution:
...
- Move CMake modules from cmake_modules/ to cmake/modules/
- CMake now use cmake/config_windows.h.cmake to create config.h on Windows platform
- contrib/windows.h header is automagically included by config.h
- Put missing NFC_EXPORT macro on front of emulation API
- nfc-mfclassic and nfc-mfcultralight examples are now compiled under Windows
Many thanks to Glenn Ergeerts which provide the initial patch.
2011-03-31 13:38:49 +00:00
Romuald Conty
2c37571a40
Add nfc-emulation source while build using CMake
2011-03-30 09:40:33 +00:00
Romuald Conty
4d458ec3d6
Attempt to fix Windows port.
2011-03-09 18:41:57 +00:00
Romuald Conty
58dcf63e7c
MERGE: libnfc-mingw-cross merge with trunk (r805-821)
2010-11-17 08:29:41 +00:00
Romain Tartiere
16786c61e3
Remove bitutils I reverted instead of removing in r412.
2010-04-26 13:20:57 +00:00
Romuald Conty
e45a0943e8
Change to way to handle DRIVERS_SOURCES in CMake.
2010-04-26 13:00:41 +00:00
Romain Tartiere
c7d77d7664
Rearrange source code.
2010-04-07 14:37:19 +00:00