forked from eden-emu/eden
Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: eden-emu/eden#93 Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
2.1 KiB
2.1 KiB
Note: These build instructions are a work-in-progress.
Dependencies
WINDOWS ONLY - Additional Dependencies
- Visual Studio 2022 Community - Make sure to select "Desktop development with C++" support in the installer. Make sure to update to the latest version if already installed.
- Vulkan SDK - Make sure to select Latest SDK.
- A convenience script to install the latest SDK is provided in
.ci\windows\install-vulkan-sdk.ps1.
- A convenience script to install the latest SDK is provided in
Cloning Eden with Git
git clone --recursive https://git.eden-emu.dev/eden-emu/eden.git
Eden by default will be cloned into -
C:\Users\<user-name>\edenon Windows~/edenon Linux- And wherever on macOS
Building
- Start Android Studio, on the startup dialog select
Open. - Navigate to the
eden/src/androiddirectory and click onOK. - In
Build > Select Build Variant, selectreleaseorrelWithDebInfoas the "Active build variant". - Build the project with
Build > Make Projector run it on an Android device withRun > Run 'app'.
Building with Terminal
- Download the SDK and NDK from Android Studio.
- Navigate to SDK and NDK paths.
- Then set ANDROID_SDK_ROOT and ANDROID_NDK_ROOT in terminal via
export ANDROID_SDK_ROOT=path/to/sdkexport ANDROID_NDK_ROOT=path/to/ndk. - Navigate to
eden/src/android. - Then Build with
./gradlew assemblerelWithDebInfo. - To build the optimised build use
./gradlew assembleGenshinSpoofRelWithDebInfo.
Script
A convenience script for building is provided in .ci/android/build.sh. The built APK can be put into an artifacts directory via .ci/android/package.sh. On Windows, these must be done in the Git Bash or MinGW terminal.