mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
d897f6791d7ffd45d6b8166aeb8f6b90d25475d5
Megasource is a CMake-buildable collection of all LÖVE dependencies.
It is currently only officially supported on Windows, but may also work on macOS. It could certainly also work on Linux, but good package managers makes megasource less relevant there.
Prerequisites
- Windows.
- Visual Studio 2019 or greater.
- CMake 3.1 or greater.
- NSIS if you want to build the LÖVE installer.
Building
To build just the dependencies:
$ git clone https://github.com/love2d/megasource megasource
$ cd megasource
$ cmake -H. -Bbuild
$ cmake --build build --target megatest --config Release
... or you can open the solution file in Visual Studio and build from there instead of invoking cmake --build.
Note, that -H had been replaced in CMake 3.13 with -S.
If you want to build LÖVE, clone LÖVE into the libs folder. Megasource will automatically look for it there. E.g.:
$ git clone https://github.com/love2d/megasource megasource
$ cd megasource
$ git clone https://github.com/love2d/love libs/love
$ cmake -H. -Bbuild
$ cmake --build build --target love/love --config Release
The binaries can be found in build/love/Release.
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.
Description
Languages
C
68.1%
C++
14.7%
HTML
5.4%
Shell
2.4%
Objective-C
2%
Other
6.8%