-
Notifications
You must be signed in to change notification settings - Fork 3
Urho.Net core Development
Urho.Net already contains all the necessary binaries ,libraries and runtimes for game development.
However there are occasions in which one would want to build it from source
- Inorder to develop Urho.Net and be able to build from the source, the following must be installed:
- CMake , preferable the latest, https://cmake.org/download/
- .NET6 sdk , https://dotnet.microsoft.com/en-us/download/dotnet/6.0
- Mono latest sdk, at this present time 6.12.0 - https://www.mono-project.com/download/stable/
- Android SDK and NDK , https://developer.android.com/studio
Environment variables should be added pointing to the SDK and NDK location
NDK location should also be added to the PATH
ANDROID_NDK_HOME='NDK location'
ANDROID_NDK='NDK location'
ANDROID_HOME='SDK location'
ANDROID_SDK_ROOT='SDK location'
ANDROID_NDK_ROOT='NDK location'
JAVA_HOME='Java SDK location'
- For Mac and iOS , XCode & Xcode Command Line Tool , for iOS also a valid Apple developer account.
- For Windows , currently Visual Studio 2019
- for Linux GCC , The GNU Compiler Collection.
Assumption is that you cloned the repository including the source code
git clone --recursive -b dotnet-6.x https://github.com/Urho-Net/Urho.Net.git
git submodule update
On windows only , From a PowerShell window , go to the Urho.Net folder
./Source/script/build_install_urhonet_windows.ps1
This will build both the native and managed Windows parts and will overwrite the old ones in the installation folder
On Linux only , open Terminal window , go to the Urho.Net folder
./Source/script/build_install_urhonet_linux.sh
This will build both the native and managed Linux parts and will overwrite the old ones in the installation folder
On Mac only , open Terminal window , go to the Urho.Net folder
./Source/script/build_install_urhonet_macos.sh
This will build both the native and managed macOS parts and will overwrite the old ones in the installation folder
On Mac only , open Terminal window , go to the Urho.Net folder
./Source/script/build_install_urhonet_ios.sh
This will build both the native and managed iOS parts and will overwrite the old ones in the installation folder
It will build both GLES and Metal backends support (Urho.Net support Metal on iOS)
From a PowerShell window , go to the Urho.Net folder
./Source/script/build_install_urhonet_android_libs.ps1
This will build both the native and managed Android parts and will overwrite the old ones in the installation folder
Open Terminal window , go to the Urho.Net folder
./Source/script/build_install_urhonet_android_libs.sh
This will build both the native and managed Android parts and will overwrite the old ones in the installation folder
Bindings generation is required in case of addition of new native Components
That require exporting native API's to the managed part of Urho.Net.
Or addition of new API's to existing components.
Unfortunately auto generation of bindings is only possible on Mac.
Open Terminal window , go to the Urho.Net folder
./Source/script/make_csharp_bindings.sh
This will generate both the native and managed part of the bindings.