Commit 4943925d authored by Nikolay Igotti's avatar Nikolay Igotti

Move to skia-pack m91-71fcb16fc2

parent 5bf99a0c
......@@ -198,7 +198,7 @@ fun displayScene(renderer: Renderer, width: Int, height: Int, nanoTime: Long, xp
val style = ParagraphStyle()
val paragraph = ParagraphBuilder(style, fontCollection)
.pushStyle(TextStyle().setColor(0xFF000000.toInt()))
.addText("Graphics API: ${renderer.layer.renderApi}")
.addText("Graphics API: ${renderer.layer.renderApi} ✿゚")
.popStyle()
.build()
paragraph.layout(Float.POSITIVE_INFINITY)
......
......@@ -170,15 +170,8 @@ kotlin {
compilations.getByName("main") {
val skia by cinterops.creating {
defFile("src/nativeInterop/cinterop/skia.def")
val skiaDir = skiaDir.get().absolutePath
val kotlinNativeDataPath = System.getenv("KONAN_DATA_DIR")?.let { File(it) }
?: File(System.getProperty("user.home")).resolve(".konan")
compilerOpts(
"-I$skiaDir"
)
compilerOpts("-I$skiaDir")
extraOpts("-staticLibrary", "libskia.a")
extraOpts("-libraryPath", "$skiaDir/out/${buildType.id}-${targetArch.id}")
}
......@@ -492,7 +485,7 @@ library {
dependencies {
implementation(
skiaDir.map {
fileTree(it.resolve("out/${buildType.id}-${targetArch.id}"))
fileTree(it.resolve("out/${buildType.id}-${targetOs.id}-${targetArch.id}"))
.matching { include(if (targetOs.isWindows) "**.lib" else "**.a") }
}
)
......
......@@ -3,7 +3,7 @@ deploy.version=0.0.0
kotlin.native.version=1.5.30-dev-184
dependencies.skija.git.commit=adf4d3aac4402a32096cf0a79ed75a0dc82c796d
dependencies.skia.windows-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-windows-Release-x64
dependencies.skia.linux-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-linux-Release-x64-ubuntu14
dependencies.skia.macos-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-macos-Release-x64
dependencies.skia.macos-arm64=m91-d18efa37cb/Skia-m91-d18efa37cb-macos-Release-arm64
dependencies.skia.windows-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-windows-Release-x64
dependencies.skia.linux-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-linux-Release-x64-ubuntu14
dependencies.skia.macos-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-macos-Release-x64
dependencies.skia.macos-arm64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-macos-Release-arm64
......@@ -51,7 +51,6 @@ object Library {
loadOrGet(cacheDir, resourcePath, platformName, true)
val loadIcu = hostOs.isWindows
if (loadIcu) {
println("Loading ICU")
loadOrGet(cacheDir, resourcePath, "icudtl.dat", false)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment