Make dotnet executable path configurable

This commit is contained in:
TSR Berry 2023-07-21 03:47:44 +02:00 committed by Emmanuel Hansen
parent 9d8e02dd0e
commit 03ec861e03

View File

@ -7,6 +7,9 @@ plugins {
// Path to the LLVM toolchain to use. This should be configured in your global gradle.properties // Path to the LLVM toolchain to use. This should be configured in your global gradle.properties
// See: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home // See: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home
def toolchainPath = providers.gradleProperty("org.ryujinx.llvm.toolchain.path").getOrNull() def toolchainPath = providers.gradleProperty("org.ryujinx.llvm.toolchain.path").getOrNull()
// Path to the dotnet executable This should be configured in your global gradle.properties
// See: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home
def dotnetExecutable = providers.gradleProperty("org.ryujinx.dotnet.bin").getOrElse("dotnet")
// Build configuration // Build configuration
def configuration = providers.gradleProperty("org.ryujinx.config").getOrElse("debug").toLowerCase() def configuration = providers.gradleProperty("org.ryujinx.config").getOrElse("debug").toLowerCase()
// Publish directory // Publish directory
@ -71,11 +74,12 @@ tasks.register('compileLibRyujinx', Exec) {
doFirst { doFirst {
println "Building LibRyujinx in ${configuration} mode." println "Building LibRyujinx in ${configuration} mode."
println "Configuration:" println "Configuration:"
println "\tusing: ${dotnetExecutable}"
println "\tStripSymbols: ${stripSymbols}" println "\tStripSymbols: ${stripSymbols}"
println "\tadditional args: ${additionalArgs.split(" ")}" println "\tadditional args: ${additionalArgs.split(" ")}"
} }
executable 'dotnet' executable dotnetExecutable
args 'publish', args 'publish',
'-r', 'linux-bionic-arm64', '-r', 'linux-bionic-arm64',
'-c', configuration, '-c', configuration,