30.11.2016, 12:18
I know you asked for Code::Blocks, but you can create the project with Visual Studio and edit it with a different (lightweight) editor if you're comfortable with command line building.
To just build the plugin without starting the Visual Studio program, you can execute following batch file: (build.bat)
Of couse you have to modify the path to how it is on your system.
A little difficulty is when you want to add new files you have to edit the .vcxproj file to add more lines like
at the bottom along with the others.
This is how I develop my cpp gamemode, by using vim as editor and command line building and that way I don't have to struggle with slow Visual Studio
To just build the plugin without starting the Visual Studio program, you can execute following batch file: (build.bat)
Код:
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" src/buildvs/helloworld.sln /p:Configuration=Debug /p:VisualStudioVersion=12.0
A little difficulty is when you want to add new files you have to edit the .vcxproj file to add more lines like
Код:
<ClCompile Include="D:\Users\Robin\games\gtasa\samp\!new\MMPG\servernew\src\helloworld.cpp" />
This is how I develop my cpp gamemode, by using vim as editor and command line building and that way I don't have to struggle with slow Visual Studio