!600 add skia_ohos shared library

Merge pull request !600 from lee/master
This commit is contained in:
openharmony_ci 2022-03-07 02:46:53 +00:00 committed by Gitee
commit 55ba32d58c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 1082 additions and 13 deletions

View File

@ -19,7 +19,8 @@ config("libharfbuzz_compile_flags") {
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-fvisibility-inlines-hidden",
# "-fvisibility-inlines-hidden",
"-Os",
]
@ -32,7 +33,8 @@ config("libharfbuzz_compile_flags") {
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
# "-fvisibility=hidden",
]
include_dirs = [
@ -41,7 +43,7 @@ config("libharfbuzz_compile_flags") {
]
}
template("ace_libharfbuzz") {
template("rosen_libharfbuzz") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
@ -116,12 +118,12 @@ template("ace_libharfbuzz") {
"$flutter_root/skia/third_party/externals/harfbuzz/src/hb-warning.cc",
]
deps = [ "$ace_flutter_engine_root/icu:ace_libicu_$platform" ]
deps = [ "//foundation/graphic/standard/rosen/build/flutter/icu:rosen_libicu_$platform" ]
}
}
foreach(item, ace_platforms) {
ace_libharfbuzz("ace_libharfbuzz_" + item.name) {
rosen_libharfbuzz("rosen_libharfbuzz_" + item.name) {
platform = item.name
defines = []
cflags_cc = []

View File

@ -55,7 +55,8 @@ config("icu_compile_flags") {
cflags_cc = [
"-std=c++14",
"-fno-exceptions",
"-fvisibility-inlines-hidden",
# "-fvisibility-inlines-hidden",
"-Os",
]
@ -68,7 +69,8 @@ config("icu_compile_flags") {
"-gline-tables-only",
"-funwind-tables",
"-Wno-unused-parameter",
"-fvisibility=hidden",
# "-fvisibility=hidden",
"-Os",
]
if (use_mingw_win) {
@ -76,7 +78,7 @@ config("icu_compile_flags") {
}
}
template("ace_icu_make_data_assembly") {
template("rosen_icu_make_data_assembly") {
forward_variables_from(invoker, "*")
action(target_name) {
@ -88,7 +90,7 @@ template("ace_icu_make_data_assembly") {
inputs =
[ "$flutter_root/skia/third_party/externals/icu/flutter/icudtl.dat" ]
}
outputs = [ "$root_out_dir/ace_icu_$platform/icudtl_dat.S" ]
outputs = [ "$root_out_dir/rosen_icu_$platform/icudtl_dat.S" ]
args = [
rebase_path(inputs[0], root_build_dir),
rebase_path(outputs[0], root_build_dir),
@ -100,12 +102,12 @@ template("ace_icu_make_data_assembly") {
}
foreach(item, ace_platforms) {
ace_icu_make_data_assembly("ace_icu_make_data_assembly_" + item.name) {
rosen_icu_make_data_assembly("rosen_icu_make_data_assembly_" + item.name) {
platform = item.name
}
}
template("ace_libicu") {
template("rosen_libicu") {
forward_variables_from(invoker, "*")
ohos_source_set(target_name) {
@ -559,13 +561,15 @@ template("ace_libicu") {
"$root_out_dir/ace_icu_$platform/icudtl_dat.S",
]
deps = [ ":ace_icu_make_data_assembly_$platform" ]
deps = [
"$ace_flutter_engine_root/icu:ace_icu_make_data_assembly_$platform",
]
}
}
}
foreach(item, ace_platforms) {
ace_libicu("ace_libicu_" + item.name) {
rosen_libicu("rosen_libicu_" + item.name) {
platform = item.name
defines = []
cflags_cc = []

1062
rosen/build/skia/BUILD.gn Normal file

File diff suppressed because it is too large Load Diff

View File

@ -95,6 +95,7 @@ ohos_shared_library("2d_graphics") {
deps = [
"$ace_flutter_engine_root:flutter_engine_fml_$current_os",
"//foundation/graphic/standard:libsurface",
"//foundation/graphic/standard/rosen/build/flutter/icu:rosen_libicu_$current_os",
"//foundation/graphic/standard/rosen/build/flutter/libtxt:thirdparty_lib_txt_rosen_$current_os",
"//utils/native/base:utilsecurec",
]