You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val outputDir = layout.buildDirectory.dir("c/$name")
59
53
60
-
val compileSqlite = tasks.register("${name}CompileSqlite") {
61
-
dependsOn(unzipSQLiteSources)
62
-
val targetDirectory = outputDir.get()
63
-
val sqliteSource = sqliteSrcFolder.map { it.file("sqlite3.c") }.get()
64
-
val output = targetDirectory.file("sqlite3.o")
65
-
66
-
inputs.file(sqliteSource)
67
-
outputs.file(output)
54
+
val sqlite3Obj = outputDir.map { it.file("sqlite3.o") }
55
+
val archive = outputDir.map { it.file("libsqlite3.a") }
68
56
69
-
doFirst {
70
-
targetDirectory.asFile.mkdirs()
71
-
output.asFile.delete()
72
-
}
73
-
74
-
doLast {
75
-
val (llvmTarget, sysRoot) =when (target.konanTarget) {
76
-
KonanTarget.IOS_X64->"x86_64-apple-ios12.0-simulator" to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
77
-
KonanTarget.IOS_ARM64->"arm64-apple-ios12.0" to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk"
78
-
KonanTarget.IOS_SIMULATOR_ARM64->"arm64-apple-ios14.0-simulator" to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
79
-
KonanTarget.MACOS_ARM64->"aarch64-apple-macos" to "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/"
80
-
KonanTarget.MACOS_X64->"x86_64-apple-macos" to "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/"
81
-
else-> error("Unexpected target $target")
82
-
}
57
+
val compileSqlite = tasks.register("${name}CompileSqlite", ClangCompile::class) {
0 commit comments