|
From: justnope <spa...@te...> - 2019-01-29 03:32:26
|
Hi, This is a first attempt to compile the library with msvc. The changes are: * ssize_t -> size_t * vasprintf -> vsnprintf, malloc, sprintf * removed unavailable headers * added cmake file To compile it, use cmake <source dir>. This will generate a visual studio solution file which you can open and build the project. In the cmake file I've added the option to make all symbols in the library public (or whatever the right term is), so it behaves like gcc. This avoids polluting the source code with DLL_EXPORT defines (__declspec(dllexport/dllimport)). It's possible I missed some things which configure generates. I'll add those to CMakeLists.txt in the future. Currently it only builds the library and not the tools. I'm hoping to add those later. There's also a message in the source code "type_info::raw_name() demangling has not been tested yet with Microsoft compiler! Feedback appreciated!" I'm working on lmms porting the code to msvc and to be honest I'm not that familiar with libgig, but if you let me know what triggers that code, I'll gladly try it out. |