Include sharing proc in skia static library when building for android.
So it can be used for SKP serialization.
Bug: 9203
Change-Id: I094d5222f220bb79c7f61fd5ebebf48e23e97b0b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/223705
Commit-Queue: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index a254d32..bf97f83 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -60,6 +60,7 @@
skia_llvm_lib = "LLVM"
skia_tools_require_resources = false
+ skia_include_multiframe_procs = false
}
declare_args() {
skia_use_dng_sdk = !is_fuchsia && skia_use_libjpeg_turbo && skia_use_zlib
@@ -1044,6 +1045,10 @@
deps += [ "//third_party/spirv-tools" ]
defines += [ "SK_ENABLE_SPIRV_VALIDATION" ]
}
+
+ if (skia_include_multiframe_procs) {
+ sources += [ "tools/SkSharingProc.cpp" ]
+ }
}
# DebugCanvas used in experimental/wasm-skp-debugger
diff --git a/gn/gn_to_bp.py b/gn/gn_to_bp.py
index 32b80e4..4b60dc5 100644
--- a/gn/gn_to_bp.py
+++ b/gn/gn_to_bp.py
@@ -313,11 +313,13 @@
'skia_use_freetype': 'true',
'skia_use_fontconfig': 'false',
'skia_use_fixed_gamma_text': 'true',
+ 'skia_include_multiframe_procs': 'false',
}
d['target_os'] = target_os
if target_os == '"android"':
d['skia_enable_tools'] = 'true'
d['skia_use_libheif'] = 'true'
+ d['skia_include_multiframe_procs'] = 'true'
else:
d['skia_use_libheif'] = 'false'