Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//testing/libfuzzer/fuzzer_test.gni") | |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 if (current_cpu == "arm") { | 9 if (current_cpu == "arm") { |
| 9 import("//build/config/arm.gni") | 10 import("//build/config/arm.gni") |
| 10 } | 11 } |
| 11 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 12 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 12 import("//build/config/mips.gni") | 13 import("//build/config/mips.gni") |
| 13 } | 14 } |
| 14 | 15 |
| 15 skia_support_gpu = !is_ios | 16 skia_support_gpu = !is_ios |
| 16 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) | 17 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) |
| 17 | 18 |
| 18 # When building Chrome for iOS with GYP, the target cpu is not known during | 19 # When building Chrome for iOS with GYP, the target cpu is not known during |
| 19 # the invocation of gyp. This cause the iOS build to use non-optimised skia. | 20 # the invocation of gyp. This cause the iOS build to use non-optimised skia. |
| 20 # Replicate this with GN to avoid introducing regression as recommended by | 21 # Replicate this with GN to avoid introducing regression as recommended by |
| 21 # the OWNERS of skia. | 22 # the OWNERS of skia. |
| 22 | 23 |
| 23 declare_args() { | 24 declare_args() { |
| 24 skia_whitelist_serialized_typefaces = false | 25 skia_whitelist_serialized_typefaces = false |
| 26 | |
| 25 # TODO(crbug.com/607933): Once GYP is no longer supported, port iOS to use | 27 # TODO(crbug.com/607933): Once GYP is no longer supported, port iOS to use |
| 26 # optimised skia. | 28 # optimised skia. |
| 27 skia_build_no_opts = is_ios | 29 skia_build_no_opts = is_ios |
| 28 } | 30 } |
| 29 | 31 |
| 30 # The list of Skia defines that are to be set for chromium. | 32 # The list of Skia defines that are to be set for chromium. |
| 31 gypi_chromium_skia_defines = | 33 gypi_chromium_skia_defines = |
| 32 exec_script("//build/gypi_to_gn.py", | 34 exec_script("//build/gypi_to_gn.py", |
| 33 [ | 35 [ |
| 34 rebase_path("//skia/chromium_skia_defines.gypi"), | 36 rebase_path("//skia/chromium_skia_defines.gypi"), |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 751 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 753 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
| 752 ] | 754 ] |
| 753 | 755 |
| 754 deps = [ | 756 deps = [ |
| 755 ":skia", | 757 ":skia", |
| 756 "//base", | 758 "//base", |
| 757 "//base/test:test_support", | 759 "//base/test:test_support", |
| 758 "//build/config/sanitizers:deps", | 760 "//build/config/sanitizers:deps", |
| 759 ] | 761 ] |
| 760 } | 762 } |
| 763 | |
| 764 fuzzer_test("path_fuzzer") { | |
|
mmoroz
2016/06/02 10:05:22
May be let's have more explicit name like "skia_pa
Martin Barbella
2016/06/02 19:48:23
Done.
| |
| 765 sources = [ | |
| 766 "tools/path_fuzzer/path_fuzzer.cc", | |
| 767 ] | |
| 768 | |
| 769 deps = [ | |
| 770 ":skia", | |
| 771 ] | |
| 772 } | |
| 761 } | 773 } |
| OLD | NEW |