This commit is contained in:
parent
82ca9a1708
commit
3205ce7d96
31
.gitea/workflows/deploy.yml
Normal file
31
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,31 @@
|
||||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Print environment
|
||||
run: |
|
||||
echo "Home: $HOME"
|
||||
echo "Working dir: $(pwd)"
|
||||
|
||||
- name: Manually Clone Repo
|
||||
run: |
|
||||
git clone --recursive https://git.frostdeer.com/Chewico/DeerEngine.git .
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt update && sudo apt install -y uuid-dev make gcc clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb
|
||||
|
||||
- name: Generate make file
|
||||
run: |
|
||||
cd vendor/premake-core
|
||||
make -f Bootstrap.mak linux
|
||||
cd ../..
|
||||
vendor/premake-core/bin/release/premake5 gmake
|
||||
|
||||
- name: Compile
|
||||
run: |
|
||||
make
|
17
README.md
17
README.md
@ -1,23 +1,28 @@
|
||||
# Deer
|
||||
|
||||
Deer is a game engine currently in development by Chewico, focused on facilitating voxel-based scenarios.
|
||||
|
||||
# How to Compile
|
||||
|
||||
Deer can compile for both Linux and Windows. Mac support is not considered due to philosophical and technical reasons.
|
||||
Deer is built using Premake 5, which generates project files for various build systems such as Make and MSVC.
|
||||
|
||||
You can check out Premake at:
|
||||
|
||||
- [Premake Official Website](https://premake.github.io)
|
||||
- [Premake Core Source Code](https://github.com/premake/premake-core)
|
||||
- [Premake Official Website](https://premake.github.io)
|
||||
- [Premake Core Source Code](https://github.com/premake/premake-core)
|
||||
|
||||
## Linux
|
||||
|
||||
### Clone the repo
|
||||
|
||||
```console
|
||||
git clone https://git.frostdeer.com/Chewico/DeerEngine.git
|
||||
cd Deer
|
||||
```
|
||||
|
||||
### Generating Project Files
|
||||
|
||||
As we mentioned we need to generate the make files with premake, to do this you can install the premake bin or compile it as we will mention
|
||||
|
||||
```console
|
||||
@ -28,16 +33,19 @@ cd ../..
|
||||
```
|
||||
|
||||
```console
|
||||
./vendor/premake-core/bin/release/premake5 gmake
|
||||
vendor/premake-core/bin/release/premake5 gmake
|
||||
```
|
||||
|
||||
If you want to generate vscode workspace use
|
||||
|
||||
```console
|
||||
./vendor/premake-core/bin/release/premake5 vscode
|
||||
```
|
||||
|
||||
### Compile
|
||||
|
||||
Run
|
||||
|
||||
```console
|
||||
sudo apt update
|
||||
sudo apt install clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb
|
||||
@ -45,6 +53,7 @@ sudo make
|
||||
```
|
||||
|
||||
### Run
|
||||
|
||||
```console
|
||||
./bin/linux-x86_64/Debug/DeerStudio/DeerStudio
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user