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 if (current_cpu == "arm") { | 8 if (current_cpu == "arm") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 471 |
472 configs -= [ "//build/config/compiler:chromium_code" ] | 472 configs -= [ "//build/config/compiler:chromium_code" ] |
473 configs += [ | 473 configs += [ |
474 ":skia_config", | 474 ":skia_config", |
475 ":skia_library_config", | 475 ":skia_library_config", |
476 "//build/config/compiler:no_chromium_code", | 476 "//build/config/compiler:no_chromium_code", |
477 ] | 477 ] |
478 public_configs = [ ":skia_config" ] | 478 public_configs = [ ":skia_config" ] |
479 | 479 |
480 deps = [ | 480 deps = [ |
| 481 ":commit_hash", |
481 ":skia_opts", | 482 ":skia_opts", |
482 "//base", | 483 "//base", |
483 "//base/third_party/dynamic_annotations", | 484 "//base/third_party/dynamic_annotations", |
484 "//third_party/zlib", | 485 "//third_party/zlib", |
485 ] | 486 ] |
486 | 487 |
487 if (is_linux) { | 488 if (is_linux) { |
488 if (use_pango) { | 489 if (use_pango) { |
489 configs += [ "//build/config/linux/pangocairo" ] | 490 configs += [ "//build/config/linux/pangocairo" ] |
490 } | 491 } |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 | 761 |
761 deps = [ | 762 deps = [ |
762 ":skia", | 763 ":skia", |
763 "//base", | 764 "//base", |
764 "//base/test:test_support", | 765 "//base/test:test_support", |
765 "//build/config/sanitizers:deps", | 766 "//build/config/sanitizers:deps", |
766 "//build/win:default_exe_manifest", | 767 "//build/win:default_exe_manifest", |
767 ] | 768 ] |
768 } | 769 } |
769 } | 770 } |
| 771 |
| 772 action("generate_commit_hash") { |
| 773 script = "commit_hash.py" |
| 774 output_file_path = "$target_gen_dir/skia_commit_hash.cpp" |
| 775 outputs = [ |
| 776 output_file_path, |
| 777 ] |
| 778 args = [ |
| 779 rebase_path("//third_party/skia", root_build_dir), |
| 780 rebase_path(output_file_path, root_build_dir), |
| 781 ] |
| 782 } |
| 783 |
| 784 source_set("commit_hash") { |
| 785 deps = [ |
| 786 ":generate_commit_hash", |
| 787 ] |
| 788 sources = get_target_outputs(":generate_commit_hash") |
| 789 include_dirs = [ "//third_party/skia/include/utils" ] |
| 790 } |
OLD | NEW |