mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
readme.md edited online with Bitbucket
This commit is contained in:
@@ -6,19 +6,19 @@ Prerequisites
|
||||
-------------
|
||||
|
||||
- Windows.
|
||||
- Visual Studio 2012 or 2013 (Express).
|
||||
- [DirectX SDK][dxsdk] (required for SDL2).
|
||||
- [CMake 2.8.11][cmake].
|
||||
- [Visual Studio 2013 (Express)][vs2013] preferably for desktop.
|
||||
- [DirectX SDK][dxsdk] required for SDL2. If you encounter **Error Code S1023** you may need to [uninstall some packages][s1023] and reinstall them after installing the DirectX SDK.
|
||||
- [CMake 3.2.2][cmake].
|
||||
- [NSIS][nsis] if you want to build the LÖVE installer.
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
To build just the dependecies:
|
||||
To build just the dependencies:
|
||||
|
||||
$ hg clone https://bitbucket.org/rude/megasource megasource
|
||||
$ cd megasource
|
||||
$ cmake -G "Visual Studio 11" -H. -Bbuild
|
||||
$ cmake -G "Visual Studio 12" -H. -Bbuild
|
||||
$ cmake --build build --target megatest --config Release
|
||||
|
||||
... or you can of course open the solution file in Visual Studio and build from there instead of invoking cmake --build.
|
||||
@@ -28,7 +28,7 @@ If you want to build [LÖVE][love2d], clone LÖVE into the *libs* folder. Megaso
|
||||
$ hg clone https://bitbucket.org/rude/megasource megasource
|
||||
$ cd megasource
|
||||
$ hg clone https://bitbucket.org/rude/love libs/love
|
||||
$ cmake -G "Visual Studio 11" -H. -Bbuild
|
||||
$ cmake -G "Visual Studio 12" -H. -Bbuild
|
||||
$ cmake --build build --target love/love --config Release
|
||||
|
||||
The binaries can be found in *build/love/Release*.
|
||||
@@ -37,9 +37,11 @@ If you want to build the installer, replace the previous build command with:
|
||||
|
||||
$ cmake --build build --target PACKAGE --config Release
|
||||
|
||||
A zip with the binaries and the installer will appear in *build*.
|
||||
Folders with the binaries and the installer will appear in **build/_CPack_Packages/win32**.
|
||||
|
||||
[love2d]: http://love2d.org
|
||||
[dxsdk]: http://www.microsoft.com/en-us/download/details.aspx?id=6812
|
||||
[cmake]: http://www.cmake.org/
|
||||
[nsis]: http://nsis.sourceforge.net
|
||||
[vs2013]: https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
|
||||
[s1023]: http://stackoverflow.com/questions/4102259/directx-sdk-june-2010-installation-problems-error-code-s1023
|
||||
Reference in New Issue
Block a user