forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add default icons paths to export default settings
- Loading branch information
Showing
33 changed files
with
212 additions
and
214 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
## install AuroraSDK | ||
1. Download and install [AuroraSDK](https://auroraosos.org/wiki/Application_SDK) | ||
2. (optional) Install docker image, use [this instcruction](https://github.com/CODeRUS/docker-auroraosos-sdk-local) from @CODeRUS | ||
|
||
## Add AuroraSDK/bin folder to PATH for using sfdk | ||
```shell | ||
export PATH=$HOME/AuroraSDK/bin:${PATH} | ||
``` | ||
now you can use **sfdk** tool | ||
```shell | ||
sfdk engine exec <your command inside buildengine> | ||
``` | ||
or, you can use absolute path to **sfdk** | ||
```shell | ||
~/AuroraOS/bin/sfdk engine exec echo "Hello from AuroraOS SDK build engine" | ||
``` | ||
|
||
### Install dependencies in AuroraSDK targets | ||
check list of targets | ||
```shell | ||
sfdk engine exec sb2-config -l | ||
``` | ||
|
||
should output something like this | ||
|
||
```shell | ||
AuroraOS-4.3.0.12-aarch64.default | ||
AuroraOS-4.3.0.12-aarch64 | ||
AuroraOS-4.3.0.12-armv7hl.default | ||
AuroraOS-4.3.0.12-armv7hl | ||
AuroraOS-4.3.0.12-i486.default | ||
AuroraOS-4.3.0.12-i486 | ||
``` | ||
|
||
**armv7hl** | ||
```sh | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-armv7hl -R zypper in -y SDL2-devel systemd-devel libaudioresource-devel pulseaudio-devel openssl-devel libwebp-devel libvpx-devel wayland-devel libpng-devel scons | ||
``` | ||
|
||
**i486** | ||
```sh | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-i486 -R zypper in -y SDL2-devel systemd-devel libaudioresource-devel pulseaudio-devel openssl-devel libwebp-devel libvpx-devel wayland-devel libpng-devel scons | ||
``` | ||
|
||
**aarch64** | ||
```sh | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-aarch64 -R zypper in -y SDL2-devel systemd-devel libaudioresource-devel pulseaudio-devel openssl-devel libwebp-devel libvpx-devel wayland-devel libpng-devel scons | ||
``` | ||
|
||
or by **one line** script for all targets in same time ;) : | ||
```shell | ||
for each in `sfdk engine exec sb2-config -l|grep -v default`; do sfdk engine exec sb2 -t $each -R zypper in -y SDL2-devel libaudioresource-devel pulseaudio-devel openssl-devel libwebp-devel libvpx-devel wayland-devel libpng-devel systemd-devel scons; done | ||
``` | ||
|
||
## Build Godot export template for AuroraOS OS | ||
Use sfdk from AuroraSDK/bin/sfdk | ||
|
||
```sh | ||
export PATH=$HOME/AuroraSDK/bin:${PATH} | ||
# building for armv7hl platfrom | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-armv7hl scons -j`nproc` arch=arm platform=auroraos tools=no bits=32 target=release | ||
# than do same for aarch64 platfrom | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-aarch64 scons -j`nproc` arch=arm64 platform=auroraos tools=no bits=64 target=release | ||
# than do same for i486 platfrom | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-i486 scons -j`nproc` arch=x86 platform=auroraos tools=no bits=32 target=release | ||
# then make export tempalte smaller | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-arm7hl strip bin/godot.auroraos.opt.arm | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-aarch64 strip bin/godot.auroraos.opt.arm64 | ||
sfdk engine exec sb2 -t AuroraOS-4.3.0.12-i486 strip bin/godot.auroraos.opt.x86 | ||
``` | ||
|
||
## Build Godot Editor with AuroraOS export menu | ||
### build on Linux X11 | ||
```shell | ||
scons -j`nproc` arch=x64 platform=x11 tools=yes bits=64 traget=release_debug | ||
strip bin/godot.x11.tools.x64 | ||
``` | ||
### build for Win64 with cross compile toolkit on Linux | ||
First, install cross compile gcc | ||
#### on ubuntu | ||
``` | ||
sudo apt install -y mingw-w64 | ||
``` | ||
then choose posix compiler, with commands below | ||
``` | ||
sudo update-alternatives --config x86_64-w64-mingw32-gcc | ||
sudo update-alternatives --config x86_64-w64-mingw32-g++ | ||
``` | ||
#### on fedora (centos) | ||
``` | ||
sudo dnf install -y mingw64-gcc-c++ mingw64-gcc | ||
``` | ||
#### build an editor | ||
```shell | ||
#ubuntu | ||
CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc scons -j`nproc` arch=x64 platform=windows tools=yes bits=64 traget=release_debug | ||
x86_64-w64-mingw32-strip bin/godot.windows.tools.x64.exe | ||
``` |
File renamed without changes.
Oops, something went wrong.