Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: skia/BUILD.gn

Issue 2187533002: skia_commit_hash.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-28 (Thursday) 16:16:56 EDT Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | skia/commit_hash.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if (current_cpu == "arm") { 8 if (current_cpu == "arm") {
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 } 10 }
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 "/wd4390", # ';'empty statement found in looping;is it what was intended? 289 "/wd4390", # ';'empty statement found in looping;is it what was intended?
290 "/wd4554", # 'operator' : check operator precedence for possible error 290 "/wd4554", # 'operator' : check operator precedence for possible error
291 "/wd4748", # compiler will disable optimizations if a function has inline 291 "/wd4748", # compiler will disable optimizations if a function has inline
292 # assembly code contains flow control(jmp or jcc) statements. 292 # assembly code contains flow control(jmp or jcc) statements.
293 293
294 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). 294 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool).
295 ] 295 ]
296 } 296 }
297 } 297 }
298 298
299 action("generate_commit_hash") {
mtklein_C 2016/07/29 15:46:30 How does chrome://version/ do this, and why do we
300 script = "commit_hash.py"
301 output_file_path = "$target_gen_dir/skia_commit_hash.cpp"
302 outputs = [
303 output_file_path,
304 ]
305 args = [
306 rebase_path("//third_party/skia", root_build_dir),
307 rebase_path(output_file_path, root_build_dir),
308 ]
309 }
310
299 component("skia") { 311 component("skia") {
300 sources = [ 312 sources = [
301 # Chrome sources. 313 # Chrome sources.
302 "config/SkUserConfig.h", 314 "config/SkUserConfig.h",
303 "config/sk_ref_cnt_ext_debug.h", 315 "config/sk_ref_cnt_ext_debug.h",
304 "config/sk_ref_cnt_ext_release.h", 316 "config/sk_ref_cnt_ext_release.h",
305 "ext/SkDiscardableMemory_chrome.cc", 317 "ext/SkDiscardableMemory_chrome.cc",
306 "ext/SkMemory_new_handler.cpp", 318 "ext/SkMemory_new_handler.cpp",
307 "ext/analysis_canvas.cc", 319 "ext/analysis_canvas.cc",
308 "ext/benchmarking_canvas.cc", 320 "ext/benchmarking_canvas.cc",
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 483
472 configs -= [ "//build/config/compiler:chromium_code" ] 484 configs -= [ "//build/config/compiler:chromium_code" ]
473 configs += [ 485 configs += [
474 ":skia_config", 486 ":skia_config",
475 ":skia_library_config", 487 ":skia_library_config",
476 "//build/config/compiler:no_chromium_code", 488 "//build/config/compiler:no_chromium_code",
477 ] 489 ]
478 public_configs = [ ":skia_config" ] 490 public_configs = [ ":skia_config" ]
479 491
480 deps = [ 492 deps = [
493 ":generate_commit_hash",
481 ":skia_opts", 494 ":skia_opts",
482 "//base", 495 "//base",
483 "//base/third_party/dynamic_annotations", 496 "//base/third_party/dynamic_annotations",
484 "//third_party/zlib", 497 "//third_party/zlib",
485 ] 498 ]
486 499
487 if (is_linux) { 500 if (is_linux) {
488 if (use_pango) { 501 if (use_pango) {
489 configs += [ "//build/config/linux/pangocairo" ] 502 configs += [ "//build/config/linux/pangocairo" ]
490 } 503 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 sources += [ 548 sources += [
536 "//third_party/skia/src/ports/SkFontHost_mac.cpp", 549 "//third_party/skia/src/ports/SkFontHost_mac.cpp",
537 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp", 550 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp",
538 "//third_party/skia/src/utils/mac/SkStream_mac.cpp", 551 "//third_party/skia/src/utils/mac/SkStream_mac.cpp",
539 ] 552 ]
540 set_sources_assignment_filter(sources_assignment_filter) 553 set_sources_assignment_filter(sources_assignment_filter)
541 554
542 # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571 555 # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571
543 cflags = [ "-Wno-deprecated-declarations" ] 556 cflags = [ "-Wno-deprecated-declarations" ]
544 } 557 }
558 sources += get_target_outputs(":generate_commit_hash")
545 } 559 }
546 560
547 # Separated out so it can be compiled with different flags for SSE. 561 # Separated out so it can be compiled with different flags for SSE.
548 if (!skia_build_no_opts) { 562 if (!skia_build_no_opts) {
549 if (current_cpu == "x86" || current_cpu == "x64") { 563 if (current_cpu == "x86" || current_cpu == "x64") {
550 source_set("skia_opts_sse3") { 564 source_set("skia_opts_sse3") {
551 sources = gypi_skia_opts.ssse3_sources 565 sources = gypi_skia_opts.ssse3_sources
552 if (!is_win || is_clang) { 566 if (!is_win || is_clang) {
553 cflags = [ "-mssse3" ] 567 cflags = [ "-mssse3" ]
554 } 568 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 774
761 deps = [ 775 deps = [
762 ":skia", 776 ":skia",
763 "//base", 777 "//base",
764 "//base/test:test_support", 778 "//base/test:test_support",
765 "//build/config/sanitizers:deps", 779 "//build/config/sanitizers:deps",
766 "//build/win:default_exe_manifest", 780 "//build/win:default_exe_manifest",
767 ] 781 ]
768 } 782 }
769 } 783 }
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | skia/commit_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698