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
1dd4bdcd
Unverified
Commit
1dd4bdcd
authored
Jul 08, 2021
by
Nikolay Igotti
Committed by
GitHub
Jul 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify build config, allow debug builds. (#132)
parent
e0efcde3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
README.md
README.md
+2
-0
build.gradle.kts
skiko/build.gradle.kts
+1
-2
properties.kt
skiko/buildSrc/src/main/kotlin/properties.kt
+12
-1
gradle.properties
skiko/gradle.properties
+5
-5
No files found.
README.md
View file @
1dd4bdcd
...
...
@@ -48,6 +48,8 @@ To use latest development snapshot use version `0.0.0-SNAPSHOT`.
*
Set JAVA_HOME to location of JDK, at least version 11
*
`cd skiko && ./gradlew publishToMavenLocal`
will build the artefact and publish it to local Maven repo
To build with debug symbols and debug Skia build use
`-Pskiko.debug=true`
Gradle argument.
#### Working with Skia or Skija sources
Gradle build downloads the necessary version of Skia & Skija by default.
...
...
skiko/build.gradle.kts
View file @
1dd4bdcd
...
...
@@ -25,8 +25,7 @@ buildscript {
}
val
skiko
=
SkikoProperties
(
rootProject
)
val
debug
=
false
val
buildType
=
if
(
debug
)
SkiaBuildType
.
DEBUG
else
SkiaBuildType
.
RELEASE
val
buildType
=
skiko
.
buildType
allprojects
{
group
=
"org.jetbrains.skiko"
...
...
skiko/buildSrc/src/main/kotlin/properties.kt
View file @
1dd4bdcd
...
...
@@ -83,11 +83,22 @@ class SkikoProperties(private val myProject: Project) {
val
isRelease
:
Boolean
get
()
=
myProject
.
findProperty
(
"deploy.release"
)
==
"true"
val
buildType
:
SkiaBuildType
get
()
=
if
(
myProject
.
findProperty
(
"skiko.debug"
)
==
"true"
)
SkiaBuildType
.
DEBUG
else
SkiaBuildType
.
RELEASE
val
skijaCommitHash
:
String
get
()
=
myProject
.
property
(
"dependencies.skija.git.commit"
)
as
String
val
skiaReleaseForTargetOS
:
String
get
()
=
(
myProject
.
property
(
"dependencies.skia.$target"
)
as
String
)
get
()
{
val
tag
=
myProject
.
property
(
"dependencies.skia.$target"
)
as
String
val
suffix
=
if
(
targetOs
==
OS
.
Linux
&&
targetArch
==
Arch
.
X64
)
{
"-ubuntu14"
}
else
{
""
}
return
"${tag}/Skia-${tag}-${targetOs.id}-${buildType.id}-${targetArch.id}$suffix"
}
val
releaseGithubVersion
:
String
get
()
=
(
myProject
.
property
(
"release.github.version"
)
as
String
)
...
...
skiko/gradle.properties
View file @
1dd4bdcd
...
...
@@ -3,8 +3,8 @@ deploy.version=0.0.0
kotlin.native.version
=
1.5.10-eap-85
dependencies.skija.git.commit
=
37d3d6ec1dabf0528f4fcc2bcbe16f4c9b3f196b
dependencies.skia.windows-x64
=
m92-81ce29695f
/Skia-m92-81ce29695f-windows-Release-x64
dependencies.skia.linux-x64
=
m92-81ce29695f
/Skia-m92-81ce29695f-linux-Release-x64-ubuntu14
dependencies.skia.macos-x64
=
m92-81ce29695f
/Skia-m92-81ce29695f-macos-Release-x64
dependencies.skia.linux-arm64
=
m92-81ce29695f
/Skia-m92-81ce29695f-linux-Release-arm64
dependencies.skia.macos-arm64
=
m92-81ce29695f
/Skia-m92-81ce29695f-macos-Release-arm64
dependencies.skia.windows-x64
=
m92-81ce29695f
dependencies.skia.linux-x64
=
m92-81ce29695f
dependencies.skia.macos-x64
=
m92-81ce29695f
dependencies.skia.linux-arm64
=
m92-81ce29695f
dependencies.skia.macos-arm64
=
m92-81ce29695f
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