Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
4943925d
Commit
4943925d
authored
May 28, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to skia-pack m91-71fcb16fc2
parent
5bf99a0c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
18 deletions
+10
-18
App.kt
...kijaInjectSample/src/main/kotlin/SkijaInjectSample/App.kt
+1
-1
build.gradle.kts
skiko/build.gradle.kts
+5
-12
gradle.properties
skiko/gradle.properties
+4
-4
Library.kt
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt
+0
-1
No files found.
samples/SkijaInjectSample/src/main/kotlin/SkijaInjectSample/App.kt
View file @
4943925d
...
...
@@ -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
(
0
xFF000000
.
toInt
()))
.
addText
(
"Graphics API: ${renderer.layer.renderApi}"
)
.
addText
(
"Graphics API: ${renderer.layer.renderApi}
✿゚
"
)
.
popStyle
()
.
build
()
paragraph
.
layout
(
Float
.
POSITIVE_INFINITY
)
...
...
skiko/build.gradle.kts
View file @
4943925d
...
...
@@ -170,17 +170,10 @@ 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"
)
extraOpts
(
"-staticLibrary"
,
"libskia.a"
)
extraOpts
(
"-libraryPath"
,
"$skiaDir/out/${buildType.id}-${targetArch.id}"
)
val
skiaDir
=
skiaDir
.
get
().
absolutePath
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}-${target
Os.id}-${target
Arch.id}"
))
.
matching
{
include
(
if
(
targetOs
.
isWindows
)
"**.lib"
else
"**.a"
)
}
}
)
...
...
skiko/gradle.properties
View file @
4943925d
...
...
@@ -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
skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt
View file @
4943925d
...
...
@@ -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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment