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
9ac8f685
Commit
9ac8f685
authored
Jun 08, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show usage example.
parent
a7470d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
README.md
README.md
+36
-1
No files found.
README.md
View file @
9ac8f685
...
...
@@ -4,7 +4,42 @@
Skiko (short for Skia for Kotlin) is the graphical library exposing significant part
of
[
Skia library
](
https://skia.org
)
APIs to Kotlin, along with the gluing code for rendering context.
At the moment, Linux(x86_64), Windows(x86_64) and macOS(x86_64 and arm64) builds for Kotlin/JVM are available.
At the moment, Linux(x86_64 and arm64), Windows(x86_64) and macOS(x86_64 and arm64) builds for Kotlin/JVM are available.
## Using as dependency
To use in build scripts one has to compute appropriate target platform and version,
i.e. something like this
```
kotlin
repositories
{
maven
(
"https://maven.pkg.jetbrains.space/public/p/compose/dev"
)
}
val
osName
=
System
.
getProperty
(
"os.name"
)
val
targetOs
=
when
{
osName
==
"Mac OS X"
->
"macos"
osName
.
startsWith
(
"Win"
)
->
"windows"
osName
.
startsWith
(
"Linux"
)
->
"linux"
else
->
error
(
"Unsupported OS: $osName"
)
}
val
osArch
=
System
.
getProperty
(
"os.arch"
)
var
targetArch
=
when
(
osArch
)
{
"x86_64"
,
"amd64"
->
"x64"
"aarch64"
->
"arm64"
else
->
error
(
"Unsupported arch: $osArch"
)
}
val
version
=
"0.3.0"
val
target
=
"${targetOs}-${targetArch}"
dependencies
{
implementation
(
"org.jetbrains.skiko:skiko-jvm-runtime-$target:$version"
)
}
```
To use latest development snapshot use version
`0.0.0-SNAPSHOT`
.
## Building JVM bindings
...
...
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