Hello all; I am a windows developer that insanely enjoys crawl, so I wanted to contribute as much as I am able to. But having almost no Linux experience and seeing that MSVC doesn't get enough love, I've decided to do something about it.
Crawl has a MSVC port but it doesn't work and sadly it's a dead weight at the moment .Fearing it will sink into oblivion like its DOS predecessor (failed joke attempt) ,I've modified to source code to compile on msvc and painstakingly ported from GNU build system to Cmake. it's not perfect.There were many things I couldn't understand so I've left them out but I am sure there are some people among you that could fix it if inclined or instruct me how to do so. The changes are not intrusive, the makefile still works as it should and cmake enables out of source build so the source is not cluttered with the alternative build system.Some new files (CMakeLists) added to the source and to contrib libraries. The source code changes are mostly errors and warnings caught by the compiler and others are undefined behaviours I've caught at runtime. I've succesfully built and tested the crawl both versions (console and tiles) on MSYS and MSVC10 It doesn't currently support APPLE (I have no experience with it at all) but Linux version can be built with some minor modifications I believe. I'll upload the patches to mantis shortly, there are about 30 of them so you can cherry-pick the ones, applicable after reviewing as you wish, if you don't like to apply all these stuff at once. Default settings: option (TILES "Tiles build" OFF) option (BUILD_ALL "Build all contrib libraries" OFF) option (WIZARD "Enable Wizard Mode" ON) option (ASSERTS "Enable asserts" ON) option (EUCLIDIAN "If enabled moving diagonally costs more" OFF) option (FULLDEBUG "Only define if you are building the debug version of crawl" OFF) option (NO_LUA_BINDINGS "No Lua Bindings" OFF) set (PROPORTIONAL_FONT "" CACHE STRING "Proportional Font") set (MONOSPACED_FONT "" CACHE STRING "MonoSpaced Font") example usage for MSYS; mkdir build cd build cmake .. -DTILES=ON -DWIZARD=OFF -DCMAKE_BUILD_TYPE=Release & make to install; make install/local for creating a MSVC project; mkdir build cd build cmake .. -DTILES=ON -DWIZARD=OFF open the project in the same directory to build crawl... ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Crawl-ref-discuss mailing list Crawl-ref-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss