forked from MaurycyLiebner/enve
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to add my name to the copyright for various legal reasons/issues. This does not change anything in the project, just a formality.
- Loading branch information
Showing
873 changed files
with
980 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Build Friction | ||
|
||
Generic instructions for building Friction on supported systems. | ||
|
||
## Requirements on Linux | ||
|
||
* pkg-config | ||
* ninja | ||
* python3 | ||
* cmake *(3.12+)* | ||
* clang *(7+)* | ||
* Qt *(5.15.x)* | ||
* Gui | ||
* Widgets | ||
* OpenGL | ||
* Multimedia | ||
* Qml | ||
* Xml | ||
* qscintilla | ||
* ffmpeg *(4.2.x)* | ||
* libavformat | ||
* libavcodec | ||
* libavutil | ||
* libswscale | ||
* libswresample | ||
* libunwind | ||
* expat | ||
* harfbuzz | ||
* freetype | ||
* fontconfig | ||
* libjpeg-turbo | ||
* libpng | ||
* libwebp | ||
* zlib | ||
* icu | ||
|
||
## Requirements on Windows | ||
|
||
* [Visual Studio 2017 Build Tools](https://aka.ms/vs/15/release/vs_buildtools.exe) | ||
* `git` must be available in `PATH` | ||
* `cmake` must be available in `PATH` | ||
* `python3` must be available in `PATH` | ||
* [LLVM](https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/LLVM-15.0.7-win64.exe) installed to default location | ||
* Qt 5.15.14 libraries and headers in `friction\sdk` | ||
* See [configure_qt5.bat](src/scripts/configure_qt5.bat) and [build_qt5.bat](src/scripts/build_qt5.bat) | ||
* QScintilla 2.14.1 libraries and headers in `friction\sdk` | ||
* See [build_qscintilla.bat](src/scripts/build_qscintilla.bat) | ||
* FFmpeg 4.2.9 libraries and headers in `friction\sdk` | ||
* See [build_mxe_ffmpeg.sh](src/scripts/build_mxe_ffmpeg.sh) and [mxe](https://github.com/friction2d/mxe) | ||
|
||
Binary SDK available [here](https://github.com/friction2d/friction-sdk/releases). | ||
|
||
## Get Source | ||
|
||
``` | ||
git clone --recurse-submodules https://github.com/friction2d/friction | ||
``` | ||
|
||
or | ||
|
||
``` | ||
git clone --recurse-submodules https://codeberg.org/friction/friction | ||
``` | ||
|
||
## Build on Linux | ||
|
||
``` | ||
mkdir build | ||
cd build | ||
cmake -G Ninja \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_CXX_COMPILER=clang++ \ | ||
-DCMAKE_C_COMPILER=clang \ | ||
.. | ||
``` | ||
Note that on some configurations you may need to specify `qscintilla` paths: | ||
``` | ||
-DQSCINTILLA_INCLUDE_DIRS=<PATH_TO_QSCINTILLA_INCLUDE_DIR> \ | ||
-DQSCINTILLA_LIBRARIES_DIRS=<PATH_TO_LIBS> \ | ||
-DQSCINTILLA_LIBRARIES=<QSCINTILLA_LIBRARY_NAME> \ | ||
``` | ||
|
||
Now build: | ||
|
||
``` | ||
cmake --build . --config Release | ||
``` | ||
|
||
## Build on Windows | ||
|
||
All requirements must be installed in the correct folders, this is an example and should be adjusted to fit your environment. | ||
|
||
``` | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" | ||
set SDK_DIR=%cd%\sdk | ||
set PATH=C:\Python;%ProgramFiles%\CMake\bin;%ProgramFiles%\Git\bin;%SDK_DIR%\bin;%PATH% | ||
mkdir build | ||
cd build | ||
cmake -G "Visual Studio 15 2017" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%SDK_DIR% .. | ||
cmake --build . --config Release | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.