Tidak Ada Deskripsi

Sasha Szpakowski 1b0fdc338b Update visual studio version in readme instructions 1 tahun lalu
.github a41f2bfd3c CI: Update actions/checkout to v4. 1 tahun lalu
libs aa89c6604a Android: Respect user orientation lock setting for resizable window (SDL2/3). 1 tahun lalu
src aed6fe093e Fix test.cpp for SDL3 1 tahun lalu
.gitignore 6e6dc07448 Fix .gitignore paths 1 tahun lalu
.hgignore 513e6c3114 Ignore libs/love/*. 12 tahun lalu
.hgtags 4418ce28e1 Added tag 11.3 for changeset ccea4bcb860c 6 tahun lalu
CMakeLists.txt d62935c994 Add megasource support for SDL3 1 tahun lalu
readme.md 1b0fdc338b Update visual studio version in readme instructions 1 tahun lalu

readme.md

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.

Versions

This repository uses git tags for the library dependencies of a specific released version of LÖVE.

For in-development versions of LÖVE, there may be a branch in this repository corresponding to a similar branch in the love repository.

Prerequisites

Building

To build just the dependencies for 64 bit x86 using Visual Studio 2022:

$ git clone https://github.com/love2d/megasource megasource
$ cd megasource
$ cmake -G "Visual Studio 17 2022" -A x64 -S . -B build
$ 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.

To build for a different version of Visual Studio (or a different build tool), replace "Visual Studio 17 2022" with one of the other build system generators. For example Visual Studio 2019 is "Visual Studio 16 2019".

Similarly, to build for a different architecture than 64 bit x86, use a different architecture name for the -A parameter.

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 -G "Visual Studio 17 2022" -A x64 -S . -B build
$ 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.