Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed build on Windows. Refactored Gradle scripts. #621

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Switching native target depending on dev/release build version
  • Loading branch information
VDovidaytis-HORIS committed Oct 28, 2022
commit f199d604299534880e833adb20b7d81f77149e8a
29 changes: 20 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,26 @@ subprojects {

kotlin{
if (project.buildSettings.build_python_extension) {
if (currentOs.macOsX & currentOsArch.amd64) {
macosX64()
} else if (currentOs.macOsX & currentOsArch.arm) {
macosArm64()
} else if (currentOs.linux & currentOsArch.amd64) {
linuxX64()
} else if (currentOs.linux & currentOsArch.arm) {
linuxArm64()
} else if (currentOs.isWindows()) {
if (version.contains("alpha")){
if (currentOs.macOsX & currentOsArch.amd64) {
macosX64()
} else if (currentOs.macOsX & currentOsArch.arm) {
macosArm64()
} else if (currentOs.linux & currentOsArch.amd64) {
linuxX64()
} else if (currentOs.linux & currentOsArch.arm) {
linuxArm64()
}
} else {
if (currentOs.macOsX) {
macosArm64()
macosX64
} else if (currentOs.linux) {
linuxArm64()
linuxX64()
}
}
if (currentOs.windows) {
mingwX64()
}
}
Expand Down