Commit Graph

3 Commits

Author SHA1 Message Date
Oliver Schmidt
56bc098f41 Don't link against cfgmgr32.
It's done in https://github.com/scottmudge/libserialport-cmake/blob/master/CMakeLists.txt#L39 therefore I did it too but it isn't necessary and it isn't done in https://sigrok.org/gitweb/?p=libserialport.git;a=blob;f=configure.ac;hb=HEAD#l95.
2018-02-14 21:51:42 +01:00
Oliver Schmidt
b958c660a9 Removed unnecessary source file.
https://github.com/digitalinteraction/openmovement/blob/master/Software/AX3/omconvert/mmap-win32.h already contains the full implementation.
2018-02-04 20:24:07 +01:00
Oliver Schmidt
5afd68109d Added Makefile to build the xHD server.
On everything but Windows building xHDServer is so trivial that everything more than a minimal Makefile is inappropriate.

On Windows requiring an additional tool (like e.g. CMake) is just another obstacle. However, GNUmake comes with Mingw-w64.

In order to optimize the user experience it is desirable to build with a static variant of libserialport. However, doing so requires on Windows in general import libraries for all DLLs referred to by libserialport. For cfgmgr32.lib and setupapi.lib this would require the installation of the Platform SDK. But fortunately the Mingw variant of ld is able to link directly against DLLs instead of import libraries (see https://sourceware.org/binutils/docs-2.17/ld/WIN32.html). The line

LDLIBS += -lcfgmgr32 -lsetupapi

in the Makefile makes use of that feature. ld even finds the two DLLs in Windows\System32 without further hint.
2018-01-31 13:55:03 +01:00