aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/core.gni
diff options
context:
space:
mode:
Diffstat (limited to 'gn/core.gni')
-rw-r--r--gn/core.gni20
1 files changed, 17 insertions, 3 deletions
diff --git a/gn/core.gni b/gn/core.gni
index 12a74ae93b..bcec7c02f0 100644
--- a/gn/core.gni
+++ b/gn/core.gni
@@ -440,8 +440,6 @@ skia_core_sources = [
"$_include/core/SkUnPreMultiply.h",
"$_include/core/SkVertices.h",
- "$_src/jumper/SkJumper.cpp",
-
# private
"$_include/private/SkAtomics.h",
"$_include/private/SkChecksum.h",
@@ -529,4 +527,20 @@ skia_core_sources = [
"$_src/pathops/SkReduceOrder.h",
]
-skia_core_defines = [] # Used to be used by Chromium, but no longer.
+skia_core_sources += [
+ "$_src/jumper/SkJumper.cpp",
+ "$_src/jumper/SkJumper_stages.cpp",
+ "$_src/jumper/SkJumper_stages_lowp.cpp",
+]
+skia_core_defines = []
+if (is_win) {
+ if (host_os == "win") {
+ skia_core_sources += [ "$_src/jumper/SkJumper_generated_win.S" ]
+ } else {
+ # TODO(thakis): Enable jumper in linux->win cross builds once the
+ # assembler situation is figured out, https://crbug.com/762167
+ skia_core_defines += [ "SK_JUMPER_USE_ASSEMBLY=0" ]
+ }
+} else if (target_cpu != "wasm") {
+ skia_core_sources += [ "$_src/jumper/SkJumper_generated.S" ]
+}