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
2a0a1044
Unverified
Commit
2a0a1044
authored
Oct 06, 2021
by
alexander-gorshenev
Committed by
GitHub
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another way to have all skia static libs in the klib (#239)
parent
e61b0db6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
12 deletions
+32
-12
build.gradle.kts
skiko/build.gradle.kts
+32
-12
No files found.
skiko/build.gradle.kts
View file @
2a0a1044
...
...
@@ -303,22 +303,14 @@ kotlin {
val
unzipper
=
skiaDirProviderForCrossTargets
[
osArch
]
!!
val
unpackedSkia
=
unzipper
.
get
()
val
skiaDir
=
unpackedSkia
.
absolutePath
val
skiaBinSubdir
=
"out/${buildType.id}-$targetString"
val
bridgesLibrary
=
"$buildDir/nativeBridges/static/$targetString/skiko-native-bridges-$targetString.a"
val
allLibraries
=
skiaStaticLibraries
(
skiaDir
,
targetString
)
+
bridgesLibrary
compilation
.
target
.
compilations
.
all
{
kotlinOptions
{
freeCompilerArgs
+=
listOf
(
"-include-binary"
,
"$skiaDir/$skiaBinSubdir/libskia.a"
,
"-include-binary"
,
"$skiaDir/$skiaBinSubdir/libskshaper.a"
,
"-include-binary"
,
"$skiaDir/$skiaBinSubdir/libskparagraph.a"
,
"-include-binary"
,
"$buildDir/nativeBridges/static/$targetString/skiko-native-bridges-$targetString.a"
)
freeCompilerArgs
=
allLibraries
.
map
{
listOf
(
"-include-binary"
,
it
)
}.
flatten
()
}
}
...
...
@@ -472,6 +464,34 @@ fun skiaPreprocessorFlags(): Array<String> {
).
toTypedArray
()
}
fun
skiaStaticLibraries
(
skiaDir
:
String
,
targetString
:
String
):
List
<
String
>
{
val
skiaBinSubdir
=
"$skiaDir/out/${buildType.id}-$targetString"
return
listOf
(
"libskresources.a"
,
"libparticles.a"
,
"libskparagraph.a"
,
"libskia.a"
,
"libicu.a"
,
"libskottie.a"
,
"libsvg.a"
,
"libpng.a"
,
"libfreetype2.a"
,
"libwebp_sse41.a"
,
"libsksg.a"
,
"libskunicode.a"
,
"libwebp.a"
,
"libdng_sdk.a"
,
"libpiex.a"
,
"libharfbuzz.a"
,
"libexpat.a"
,
"libzlib.a"
,
"libjpeg.a"
,
"libskshaper.a"
).
map
{
"$skiaBinSubdir/$it"
}
}
// See https://docs.gradle.org/current/userguide/cpp_library_plugin.html.
tasks
.
withType
(
CppCompile
::
class
.
java
).
configureEach
{
// Prefer 'java.home' system property to simplify overriding from Intellij.
...
...
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