aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn44
1 files changed, 29 insertions, 15 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2a534a5d6c..f2a69e8e7b 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -48,6 +48,10 @@ declare_args() {
skia_compile_processors = false
skia_lex = false
+ skia_jumper_clang = ""
+ skia_jumper_objdump = ""
+ skia_jumper_ccache = ""
+
skia_skqp_enable_driver_correctness_workarounds = false
skia_skqp_global_error_tolerance = 0
}
@@ -310,20 +314,6 @@ opts("avx") {
}
}
-opts("hsw") {
- enabled = is_x86
- sources = skia_opts.hsw_sources
- if (!is_clang && is_win) {
- cflags = [ "/arch:AVX2" ]
- } else {
- cflags = [
- "-mavx2",
- "-mf16c",
- "-mfma",
- ]
- }
-}
-
# Any feature of Skia that requires third-party code should be optional and use this template.
template("optional") {
if (invoker.enabled) {
@@ -785,7 +775,6 @@ component("skia") {
":fontmgr_fuchsia",
":gpu",
":heif",
- ":hsw",
":jpeg",
":none",
":pdf",
@@ -2112,3 +2101,28 @@ if (skia_enable_tools) {
}
}
}
+
+if (skia_jumper_clang != "") {
+ action("regen_jumper") {
+ script = "src/jumper/build_stages.py"
+
+ inputs = [
+ "src/jumper/SkJumper_stages.cpp",
+ "src/jumper/SkJumper_stages_lowp.cpp",
+ ]
+
+ # GN insists its outputs should go somewhere underneath target_out_dir, so we trick it.
+ outputs = [
+ "$target_out_dir/" +
+ rebase_path("src/jumper/SkJumper_generated.S", target_out_dir),
+ "$target_out_dir/" +
+ rebase_path("src/jumper/SkJumper_generated_win.S", target_out_dir),
+ ]
+
+ args = [
+ skia_jumper_clang,
+ skia_jumper_objdump,
+ skia_jumper_ccache,
+ ] + rebase_path(inputs) + rebase_path(outputs)
+ }
+}