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

Side by Side Diff: chrome/BUILD.gn

Issue 1197813002: Generate resource pak files for top chrome material design assets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload Created 5 years, 5 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 | « no previous file | chrome/app/theme/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/locales.gni") 7 import("//build/config/locales.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//chrome/chrome_repack_locales.gni") 9 import("//chrome/chrome_repack_locales.gni")
10 import("//chrome/version.gni") 10 import("//chrome/version.gni")
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 ":repack_chrome_100_percent", 467 ":repack_chrome_100_percent",
468 ] 468 ]
469 469
470 if (is_chrome_branded) { 470 if (is_chrome_branded) {
471 deps += [ ":default_apps" ] 471 deps += [ ":default_apps" ]
472 } 472 }
473 473
474 if (enable_hidpi) { 474 if (enable_hidpi) {
475 deps += [ ":repack_chrome_200_percent" ] 475 deps += [ ":repack_chrome_200_percent" ]
476 } 476 }
477
478 if (enable_topchrome_md) {
479 deps += [ ":repack_chrome_material_100_percent" ]
480
481 if (enable_hidpi) {
482 deps += [ ":repack_chrome_material_200_percent" ]
483 }
484 }
477 } 485 }
478 486
479 repack("packed_extra_resources") { 487 repack("packed_extra_resources") {
480 visibility = [ "./*" ] 488 visibility = [ "./*" ]
481 sources = [ 489 sources = [
482 "$root_gen_dir/chrome/browser_resources.pak", 490 "$root_gen_dir/chrome/browser_resources.pak",
483 "$root_gen_dir/chrome/chrome_unscaled_resources.pak", 491 "$root_gen_dir/chrome/chrome_unscaled_resources.pak",
484 "$root_gen_dir/chrome/common_resources.pak", 492 "$root_gen_dir/chrome/common_resources.pak",
485 "$root_gen_dir/chrome/invalidations_resources.pak", 493 "$root_gen_dir/chrome/invalidations_resources.pak",
486 "$root_gen_dir/chrome/memory_internals_resources.pak", 494 "$root_gen_dir/chrome/memory_internals_resources.pak",
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 chrome_repack_percent("repack_chrome_100_percent") { 701 chrome_repack_percent("repack_chrome_100_percent") {
694 percent = "100" 702 percent = "100"
695 } 703 }
696 704
697 if (enable_hidpi) { 705 if (enable_hidpi) {
698 chrome_repack_percent("repack_chrome_200_percent") { 706 chrome_repack_percent("repack_chrome_200_percent") {
699 percent = "200" 707 percent = "200"
700 } 708 }
701 } 709 }
702 710
711 # Generates a rule to repack a set of material design resources for the browser
712 # top chrome, substituting a given string in for the percentage (e.g. "100",
713 # "200").
714 template("chrome_repack_material_percent") {
715 percent = invoker.percent
716
717 repack_name = "${target_name}_repack"
718 repack_output_file = "$root_gen_dir/repack/chrome_material_${percent}_percent. pak"
719
720 copy_name = target_name
721
722 repack(repack_name) {
723 visibility = [ ":$copy_name" ]
724
725 # All sources should also have deps for completeness.
726 sources = [
727 "$root_gen_dir/chrome/theme_resources_material_${percent}_percent.pak",
728 ]
729
730 deps = [
731 "//chrome/app/theme:theme_resources",
732 ]
733
734 output = repack_output_file
735 }
736
737 copy(copy_name) {
738 visibility = [ ":*" ]
739 deps = [
740 ":$repack_name",
741 ]
742 sources = [
743 repack_output_file,
744 ]
745 outputs = [
746 "$root_build_dir/chrome_material_${percent}_percent.pak",
747 ]
748 }
749 }
750
751 if (enable_topchrome_md) {
752 chrome_repack_material_percent("repack_chrome_material_100_percent") {
753 percent = "100"
754 }
755
756 if (enable_hidpi) {
757 chrome_repack_material_percent("repack_chrome_material_200_percent") {
758 percent = "200"
759 }
760 }
761 }
762
703 # GYP version: chrome/chrome_resources.gyp:chrome_strings 763 # GYP version: chrome/chrome_resources.gyp:chrome_strings
704 group("strings") { 764 group("strings") {
705 deps = [ 765 deps = [
706 "//chrome/app:chromium_strings", 766 "//chrome/app:chromium_strings",
707 "//chrome/app:generated_resources", 767 "//chrome/app:generated_resources",
708 "//chrome/app:google_chrome_strings", 768 "//chrome/app:google_chrome_strings",
709 "//chrome/app/resources:locale_settings", 769 "//chrome/app/resources:locale_settings",
710 ] 770 ]
711 } 771 }
712 772
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 rebase_path(chrome_binary, root_build_dir), 895 rebase_path(chrome_binary, root_build_dir),
836 rebase_path(symbol_file, root_build_dir), 896 rebase_path(symbol_file, root_build_dir),
837 ] 897 ]
838 898
839 deps = [ 899 deps = [
840 ":chrome", 900 ":chrome",
841 dump_syms_label, 901 dump_syms_label,
842 ] 902 ]
843 } 903 }
844 } 904 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app/theme/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698