We run some extra commands around CMake for config, build, packaging, etc.
e.g. The build commands look like this on Windows:
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ..
msbuild synergy-core.sln /p:Platform="x64" /p:Configuration=%CMAKE_BUILD_TYPE% /m
There are about 50 blocks of commands like this on our CI system for various platforms and configs, so maintaining them all is really hairy. What is the best way to simplify this and make it more universal? Is there a good practice way of moving these commands into source control?
e.g. A wrapper script? Previously, I implemented hm.py in Synergy for this purpose, which was later removed in favor of moving the commands to the CI system, but this makes it more tedious to test the build system locally.