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
ad556292
Commit
ad556292
authored
May 28, 2021
by
Nikolay Igotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build
parent
4943925d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
build.gradle.kts
skiko/build.gradle.kts
+8
-6
No files found.
skiko/build.gradle.kts
View file @
ad556292
...
@@ -148,6 +148,8 @@ val skijaSrcDir = run {
...
@@ -148,6 +148,8 @@ val skijaSrcDir = run {
}.
map
{
delombokSkijaSrcDir
}
}.
map
{
delombokSkijaSrcDir
}
}
}
val
skiaBinSubdir
=
"out/${buildType.id}-${targetOs.id}-${targetArch.id}"
val
Project
.
supportNative
:
Boolean
val
Project
.
supportNative
:
Boolean
get
()
=
properties
.
get
(
"skiko.native.enabled"
)
==
"true"
get
()
=
properties
.
get
(
"skiko.native.enabled"
)
==
"true"
...
@@ -173,7 +175,7 @@ kotlin {
...
@@ -173,7 +175,7 @@ kotlin {
val
skiaDir
=
skiaDir
.
get
().
absolutePath
val
skiaDir
=
skiaDir
.
get
().
absolutePath
compilerOpts
(
"-I$skiaDir"
)
compilerOpts
(
"-I$skiaDir"
)
extraOpts
(
"-staticLibrary"
,
"libskia.a"
)
extraOpts
(
"-staticLibrary"
,
"libskia.a"
)
extraOpts
(
"-libraryPath"
,
"$skiaDir/
out/${buildType.id}-${targetArch.id}
"
)
extraOpts
(
"-libraryPath"
,
"$skiaDir/
$skiaBinSubdir
"
)
}
}
}
}
}
}
...
@@ -450,8 +452,8 @@ tasks.withType(LinkSharedLibrary::class.java).configureEach {
...
@@ -450,8 +452,8 @@ tasks.withType(LinkSharedLibrary::class.java).configureEach {
// To fix it we enforce resolve of all GOT entries at library load time, and make it read-only afterwards.
// To fix it we enforce resolve of all GOT entries at library load time, and make it read-only afterwards.
"-Wl,-z,relro,-z,now"
,
"-Wl,-z,relro,-z,now"
,
// Hack to fix problem with linker not always finding certain declarations.
// Hack to fix problem with linker not always finding certain declarations.
skiaDir
.
get
().
absolutePath
+
"/
out/${buildType.id}-${targetArch.id}
/libsksg.a"
,
skiaDir
.
get
().
absolutePath
+
"/
$skiaBinSubdir
/libsksg.a"
,
skiaDir
.
get
().
absolutePath
+
"/
out/${buildType.id}-${targetArch.id}
/libskia.a"
skiaDir
.
get
().
absolutePath
+
"/
$skiaBinSubdir
/libskia.a"
)
)
)
)
}
}
...
@@ -485,7 +487,7 @@ library {
...
@@ -485,7 +487,7 @@ library {
dependencies
{
dependencies
{
implementation
(
implementation
(
skiaDir
.
map
{
skiaDir
.
map
{
fileTree
(
it
.
resolve
(
"out/${buildType.id}-${targetOs.id}-${targetArch.id}"
))
fileTree
(
it
.
resolve
(
skiaBinSubdir
))
.
matching
{
include
(
if
(
targetOs
.
isWindows
)
"**.lib"
else
"**.a"
)
}
.
matching
{
include
(
if
(
targetOs
.
isWindows
)
"**.lib"
else
"**.a"
)
}
}
}
)
)
...
@@ -543,7 +545,7 @@ val maybeSign by project.tasks.registering {
...
@@ -543,7 +545,7 @@ val maybeSign by project.tasks.registering {
val
createChecksums
by
project
.
tasks
.
registering
(
org
.
gradle
.
crypto
.
checksum
.
Checksum
::
class
)
{
val
createChecksums
by
project
.
tasks
.
registering
(
org
.
gradle
.
crypto
.
checksum
.
Checksum
::
class
)
{
dependsOn
(
maybeSign
)
dependsOn
(
maybeSign
)
files
=
maybeSign
.
get
().
outputs
.
files
+
files
=
maybeSign
.
get
().
outputs
.
files
+
if
(
targetOs
.
isWindows
)
files
(
skiaDir
.
map
{
it
.
resolve
(
"
out/${buildType.id}-x64
/icudtl.dat"
)
})
else
files
()
if
(
targetOs
.
isWindows
)
files
(
skiaDir
.
map
{
it
.
resolve
(
"
${skiaBinSubdir}
/icudtl.dat"
)
})
else
files
()
algorithm
=
Checksum
.
Algorithm
.
SHA256
algorithm
=
Checksum
.
Algorithm
.
SHA256
outputDir
=
file
(
"$buildDir/checksums"
)
outputDir
=
file
(
"$buildDir/checksums"
)
}
}
...
@@ -557,7 +559,7 @@ val skikoJvmRuntimeJar by project.tasks.registering(Jar::class) {
...
@@ -557,7 +559,7 @@ val skikoJvmRuntimeJar by project.tasks.registering(Jar::class) {
it
.
replace
(
".maybesigned"
,
""
)
it
.
replace
(
".maybesigned"
,
""
)
}
}
if
(
targetOs
.
isWindows
)
{
if
(
targetOs
.
isWindows
)
{
from
(
files
(
skiaDir
.
map
{
it
.
resolve
(
"
out/${buildType.id}-x64
/icudtl.dat"
)
}))
from
(
files
(
skiaDir
.
map
{
it
.
resolve
(
"
${skiaBinSubdir}
/icudtl.dat"
)
}))
}
}
from
(
createChecksums
.
get
().
outputs
.
files
)
from
(
createChecksums
.
get
().
outputs
.
files
)
}
}
...
...
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