TheoryOfNekomata 64a991f996 | 1 рік тому | |
---|---|---|
__mocks__ | 1 рік тому | |
__tests__/src/packages/game | 1 рік тому | |
assets/internal/default | 1 рік тому | |
assets_src | 1 рік тому | |
docs | 1 рік тому | |
src/packages | 1 рік тому | |
subprojects | 1 рік тому | |
tools | 1 рік тому | |
.editorconfig | 2 роки тому | |
.gitignore | 1 рік тому | |
.gitmodules | 1 рік тому | |
00-generate-cmake-cache-x64 | 1 рік тому | |
00-generate-cmake-cache-x64.bat | 1 рік тому | |
01-generate-include.bat | 1 рік тому | |
02-build-executable | 1 рік тому | |
02-build-executable.bat | 1 рік тому | |
CMakeLists.txt | 1 рік тому | |
README.md | 1 рік тому | |
TODO.md | 1 рік тому |
A run-and-gun shooter inspired by Metal Slug and Counter-Strike.
For Windows, it is recommended to use Chocolatey for retrieving the required tools. Use Homebrew for macOS instead.
For *NIX, use whatever dependency manager you prefer.
The following are required for building on all platforms:
Install the Windows SDK.
Ensure your environment variables are set up.
Important: Set your
CC
environment variable to the full path ofclang-cl.exe
Important: Set your
CMAKE_MT
environment variable to the full path ofmt.exe
, which can be found on your Windows SDK installation folder (usuallyC:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/mt.exe
)
Clone this repo recursively.
Build the dependencies under subprojects
. Follow the instructions on building for Visual C.
Important: For
libwebsockets
, follow the instructions on building LWS.
Generate the CMake cache.
cmake^
-DCMAKE_SIZEOF_VOID_P=8^
"-DCMAKE_MT=%CMAKE_MT%"^
"-DCMAKE_BUILD_TYPE=%BUILD_TYPE%"^
-DCMAKE_MAKE_PROGRAM=ninja^
-DCMAKE_C_COMPILER=clang-cl^
-DCMAKE_C_FLAGS=-m64^
-G Ninja^
-S .^
-B "./build/%BUILD_TYPE%"
Important: Create the directories under
/build
per eachBUILD_TYPE
you are generating.
Build the specific executables you want to build, which are defined in CMakeLists.txt
.
cmake^
--build "./build/%BUILD_TYPE%"^
-t "%EXECUTABLE%"
Ensure additional tools are present in the system:
autoconf
make
libtool
(*NIX only)Clone this repo recursively.
Build the dependencies under subprojects
. Follow the instructions on building for *NIX (macOS should have similar
instructions for *NIX).
Generate the CMake cache.
cmake \
-DCMAKE_SIZEOF_VOID_P=8 \
"-DCMAKE_BUILD_TYPE=$BUILD_TYPE" \
-DCMAKE_MAKE_PROGRAM=ninja \
-DCMAKE_C_COMPILER=cc \
-DCMAKE_C_FLAGS=-m64 \
-G Ninja \
-S . \
-B "./build/$BUILD_TYPE"
Important: Create the directories under
/build
per eachBUILD_TYPE
you are generating.
Build the specific executables you want to build, which are defined in CMakeLists.txt
.
cmake \
--build "./build/$BUILD_TYPE" \
-t "$EXECUTABLE"