Skip to content

Commit

Permalink
excluded targets for project with JSON tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shanshin committed Jun 22, 2022
1 parent d73156a commit 6f444ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gradle/native-targets.gradle
Expand Up @@ -67,6 +67,10 @@ def getHostName() {
return 'unknown'
}

static def doesNotDependOnOkio(project) {
return !project.name.contains("json-okio") && !project.name.contains("json-tests")
}

kotlin {
targets {
def manager = project.ext.hostManager
Expand All @@ -93,7 +97,7 @@ kotlin {
} else {
// Linux
addTarget(presets.linuxX64)
if (!project.name.contains("json-okio")) {
if (doesNotDependOnOkio(project)) {
addTarget(presets.linuxArm32Hfp)
addTarget(presets.linuxArm64)
}
Expand All @@ -102,7 +106,7 @@ kotlin {
addTarget(presets.macosX64)

addTarget(presets.iosArm64)
if (!project.name.contains("json-okio")) {
if (doesNotDependOnOkio(project)) {
addTarget(presets.iosArm32)
}
addTarget(presets.iosX64)
Expand All @@ -123,7 +127,7 @@ kotlin {

// Windows
addTarget(presets.mingwX64)
if (!project.name.contains("json-okio")) {
if (doesNotDependOnOkio(project)) {
addTarget(presets.mingwX86)
}
}
Expand Down

0 comments on commit 6f444ce

Please sign in to comment.