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/test.gni") | 7 import("//testing/test.gni") |
| 8 import("//third_party/skia/gn/shared_sources.gni") | 8 import("//third_party/skia/gn/shared_sources.gni") |
| 9 | 9 |
| 10 if (current_cpu == "arm") { | 10 if (current_cpu == "arm") { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 439 if (skia_support_pdf) { | 439 if (skia_support_pdf) { |
| 440 deps += [ | 440 deps += [ |
| 441 "//third_party/sfntly", | 441 "//third_party/sfntly", |
| 442 "//third_party/zlib", | 442 "//third_party/zlib", |
| 443 ] | 443 ] |
| 444 sources += skia_pdf_sources | 444 sources += skia_pdf_sources |
| 445 } else { | 445 } else { |
| 446 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] | 446 sources += [ "//third_party/skia/src/pdf/SkDocument_PDF_None.cpp" ] |
| 447 } | 447 } |
| 448 | 448 |
| 449 if ((is_android || is_win) && !is_debug) { | 449 if (!is_debug) { |
| 450 configs -= [ "//build/config/compiler:default_optimization" ] | 450 configs -= [ "//build/config/compiler:default_optimization" ] |
| 451 configs += [ "//build/config/compiler:optimize_max" ] | 451 configs += [ "//build/config/compiler:optimize_max" ] |
| 452 } | 452 } |
| 453 | 453 |
| 454 if (is_mac) { | 454 if (is_mac) { |
| 455 libs = [ | 455 libs = [ |
| 456 "AppKit.framework", | 456 "AppKit.framework", |
| 457 "CoreFoundation.framework", | 457 "CoreFoundation.framework", |
| 458 "CoreGraphics.framework", | 458 "CoreGraphics.framework", |
| 459 "CoreText.framework", | 459 "CoreText.framework", |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 625 } else { | 625 } else { |
| 626 sources = skia_opts.none_sources | 626 sources = skia_opts.none_sources |
| 627 } | 627 } |
| 628 } else if (current_cpu == "mips64el") { | 628 } else if (current_cpu == "mips64el") { |
| 629 cflags += [ "-fomit-frame-pointer" ] | 629 cflags += [ "-fomit-frame-pointer" ] |
| 630 sources = skia_opts.none_sources | 630 sources = skia_opts.none_sources |
| 631 } else { | 631 } else { |
| 632 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") | 632 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
| 633 } | 633 } |
| 634 | 634 |
| 635 if ((is_android || is_win) && !is_debug) { | 635 if (!is_debug) { |
|
Nico
2016/09/09 18:50:56
what :-(
| |
| 636 configs -= [ "//build/config/compiler:default_optimization" ] | 636 configs -= [ "//build/config/compiler:default_optimization" ] |
| 637 configs += [ "//build/config/compiler:optimize_max" ] | 637 configs += [ "//build/config/compiler:optimize_max" ] |
| 638 } | 638 } |
| 639 | 639 |
| 640 configs -= [ "//build/config/compiler:chromium_code" ] | 640 configs -= [ "//build/config/compiler:chromium_code" ] |
| 641 configs += [ | 641 configs += [ |
| 642 ":skia_config", | 642 ":skia_config", |
| 643 ":skia_library_config", | 643 ":skia_library_config", |
| 644 "//build/config/compiler:no_chromium_code", | 644 "//build/config/compiler:no_chromium_code", |
| 645 ] | 645 ] |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 706 | 706 |
| 707 deps = [ | 707 deps = [ |
| 708 ":skia", | 708 ":skia", |
| 709 "//base", | 709 "//base", |
| 710 "//base/test:test_support", | 710 "//base/test:test_support", |
| 711 "//build/config/sanitizers:deps", | 711 "//build/config/sanitizers:deps", |
| 712 "//build/win:default_exe_manifest", | 712 "//build/win:default_exe_manifest", |
| 713 ] | 713 ] |
| 714 } | 714 } |
| 715 } | 715 } |
| OLD | NEW |