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 ...@@ -198,7 +198,7 @@ fun displayScene(renderer: Renderer, width: Int, height: Int, nanoTime: Long, xp
val style = ParagraphStyle() val style = ParagraphStyle()
val paragraph = ParagraphBuilder(style, fontCollection) val paragraph = ParagraphBuilder(style, fontCollection)
.pushStyle(TextStyle().setColor(0xFF000000.toInt())) .pushStyle(TextStyle().setColor(0xFF000000.toInt()))
.addText("Graphics API: ${renderer.layer.renderApi}") .addText("Graphics API: ${renderer.layer.renderApi} ✿゚")
.popStyle() .popStyle()
.build() .build()
paragraph.layout(Float.POSITIVE_INFINITY) paragraph.layout(Float.POSITIVE_INFINITY)
......
...@@ -170,17 +170,10 @@ kotlin { ...@@ -170,17 +170,10 @@ kotlin {
compilations.getByName("main") { compilations.getByName("main") {
val skia by cinterops.creating { val skia by cinterops.creating {
defFile("src/nativeInterop/cinterop/skia.def") defFile("src/nativeInterop/cinterop/skia.def")
val skiaDir = skiaDir.get().absolutePath
val skiaDir = skiaDir.get().absolutePath compilerOpts("-I$skiaDir")
val kotlinNativeDataPath = System.getenv("KONAN_DATA_DIR")?.let { File(it) } extraOpts("-staticLibrary", "libskia.a")
?: File(System.getProperty("user.home")).resolve(".konan") extraOpts("-libraryPath", "$skiaDir/out/${buildType.id}-${targetArch.id}")
compilerOpts(
"-I$skiaDir"
)
extraOpts("-staticLibrary", "libskia.a")
extraOpts("-libraryPath", "$skiaDir/out/${buildType.id}-${targetArch.id}")
} }
} }
} }
...@@ -492,7 +485,7 @@ library { ...@@ -492,7 +485,7 @@ library {
dependencies { dependencies {
implementation( implementation(
skiaDir.map { 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") } .matching { include(if (targetOs.isWindows) "**.lib" else "**.a") }
} }
) )
......
...@@ -3,7 +3,7 @@ deploy.version=0.0.0 ...@@ -3,7 +3,7 @@ deploy.version=0.0.0
kotlin.native.version=1.5.30-dev-184 kotlin.native.version=1.5.30-dev-184
dependencies.skija.git.commit=adf4d3aac4402a32096cf0a79ed75a0dc82c796d dependencies.skija.git.commit=adf4d3aac4402a32096cf0a79ed75a0dc82c796d
dependencies.skia.windows-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-windows-Release-x64 dependencies.skia.windows-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-windows-Release-x64
dependencies.skia.linux-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-linux-Release-x64-ubuntu14 dependencies.skia.linux-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-linux-Release-x64-ubuntu14
dependencies.skia.macos-x64=m91-d18efa37cb/Skia-m91-d18efa37cb-macos-Release-x64 dependencies.skia.macos-x64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-macos-Release-x64
dependencies.skia.macos-arm64=m91-d18efa37cb/Skia-m91-d18efa37cb-macos-Release-arm64 dependencies.skia.macos-arm64=m91-71fcb16fc2/Skia-m91-71fcb16fc2-macos-Release-arm64
...@@ -51,7 +51,6 @@ object Library { ...@@ -51,7 +51,6 @@ object Library {
loadOrGet(cacheDir, resourcePath, platformName, true) loadOrGet(cacheDir, resourcePath, platformName, true)
val loadIcu = hostOs.isWindows val loadIcu = hostOs.isWindows
if (loadIcu) { if (loadIcu) {
println("Loading ICU")
loadOrGet(cacheDir, resourcePath, "icudtl.dat", false) 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