|
5 | 5 | package aws.sdk.kotlin.gradle.crt |
6 | 6 |
|
7 | 7 | import org.gradle.api.Project |
8 | | -import org.gradle.configurationcache.extensions.capitalized |
9 | 8 | import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget |
10 | 9 | import org.jetbrains.kotlin.konan.target.Architecture |
11 | 10 | import org.jetbrains.kotlin.konan.target.Family |
12 | 11 | import org.jetbrains.kotlin.konan.target.KonanTarget |
13 | 12 | import java.io.File |
14 | 13 |
|
15 | | -fun KotlinNativeTarget.namedSuffix(prefix: String, capitalized: Boolean = false): String = |
16 | | - prefix + if (capitalized) name.capitalized() else name |
| 14 | +fun KotlinNativeTarget.namedSuffix(prefix: String, uppercase: Boolean = false): String = |
| 15 | + prefix + if (uppercase) name.uppercase() else name |
17 | 16 |
|
18 | 17 | val KonanTarget.isSimulatorSdk: Boolean |
19 | 18 | get() = when (this) { |
@@ -80,13 +79,13 @@ val Project.cmakeLists: File |
80 | 79 | get() = rootProject.projectDir.resolve("CMakeLists.txt") |
81 | 80 |
|
82 | 81 | val KotlinNativeTarget.cmakeConfigureTaskName: String |
83 | | - get() = namedSuffix("cmakeConfigure", capitalized = true) |
| 82 | + get() = namedSuffix("cmakeConfigure", uppercase = true) |
84 | 83 |
|
85 | 84 | val KotlinNativeTarget.cmakeBuildTaskName: String |
86 | | - get() = namedSuffix("cmakeBuild", capitalized = true) |
| 85 | + get() = namedSuffix("cmakeBuild", uppercase = true) |
87 | 86 |
|
88 | 87 | val KotlinNativeTarget.cmakeInstallTaskName: String |
89 | | - get() = namedSuffix("cmakeInstall", capitalized = true) |
| 88 | + get() = namedSuffix("cmakeInstall", uppercase = true) |
90 | 89 |
|
91 | 90 | val File.slashPath: String |
92 | 91 | get() = path.replace(File.separatorChar, '/') |
0 commit comments