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

Side by Side Diff: chrome/BUILD.gn

Issue 2004143002: Retry of 2b0e51237fa07b4fb9f6c20edcefce094f6cf5f5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « build/config/ui.gni ('k') | 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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 ":packed_extra_resources", 624 ":packed_extra_resources",
625 ":packed_resources", 625 ":packed_resources",
626 "//chrome/app_shim:app_mode_loader", 626 "//chrome/app_shim:app_mode_loader",
627 "//third_party/icu:icudata", 627 "//third_party/icu:icudata",
628 ] 628 ]
629 629
630 if (enable_hidpi) { 630 if (enable_hidpi) {
631 sources += [ "$root_out_dir/chrome_200_percent.pak" ] 631 sources += [ "$root_out_dir/chrome_200_percent.pak" ]
632 } 632 }
633 633
634 if (enable_topchrome_md) { 634 # TODO(estade): remove material design specific resources.
635 # See crbug.com/613593
636 if (is_mac) {
635 sources += [ "$root_out_dir/chrome_material_100_percent.pak" ] 637 sources += [ "$root_out_dir/chrome_material_100_percent.pak" ]
636 638
637 if (enable_hidpi) { 639 if (enable_hidpi) {
638 sources += [ "$root_out_dir/chrome_material_200_percent.pak" ] 640 sources += [ "$root_out_dir/chrome_material_200_percent.pak" ]
639 } 641 }
640 } 642 }
641 643
642 if (enable_mac_keystone) { 644 if (enable_mac_keystone) {
643 sources += [ 645 sources += [
644 "browser/mac/keystone_promote_postflight.sh", 646 "browser/mac/keystone_promote_postflight.sh",
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 ] 1074 ]
1073 1075
1074 if (is_chrome_branded && !is_mac) { 1076 if (is_chrome_branded && !is_mac) {
1075 public_deps += [ ":default_apps" ] 1077 public_deps += [ ":default_apps" ]
1076 } 1078 }
1077 1079
1078 if (enable_hidpi) { 1080 if (enable_hidpi) {
1079 public_deps += [ ":repack_chrome_200_percent" ] 1081 public_deps += [ ":repack_chrome_200_percent" ]
1080 } 1082 }
1081 1083
1082 if (enable_topchrome_md) { 1084 if (is_mac) {
1083 public_deps += [ ":repack_chrome_material_100_percent" ] 1085 public_deps += [ ":repack_chrome_material_100_percent" ]
1084 1086
1085 if (enable_hidpi) { 1087 if (enable_hidpi) {
1086 public_deps += [ ":repack_chrome_material_200_percent" ] 1088 public_deps += [ ":repack_chrome_material_200_percent" ]
1087 } 1089 }
1088 } 1090 }
1089 } 1091 }
1090 1092
1091 repack("packed_extra_resources") { 1093 repack("packed_extra_resources") {
1092 visibility = [ "./*" ] 1094 visibility = [ "./*" ]
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 "$root_gen_dir/repack/chrome_material_${percent}_percent.pak" 1330 "$root_gen_dir/repack/chrome_material_${percent}_percent.pak"
1329 1331
1330 copy_name = target_name 1332 copy_name = target_name
1331 1333
1332 repack(repack_name) { 1334 repack(repack_name) {
1333 visibility = [ ":$copy_name" ] 1335 visibility = [ ":$copy_name" ]
1334 1336
1335 # All sources should also have deps for completeness. 1337 # All sources should also have deps for completeness.
1336 sources = [ 1338 sources = [
1337 "$root_gen_dir/chrome/theme_resources_material_${percent}_percent.pak", 1339 "$root_gen_dir/chrome/theme_resources_material_${percent}_percent.pak",
1338 "$root_gen_dir/components/components_resources_material_${percent}_percent .pak",
1339 ] 1340 ]
1340 1341
1341 deps = [ 1342 deps = [
1342 "//chrome/app/theme:theme_resources", 1343 "//chrome/app/theme:theme_resources",
1343 "//components/resources", 1344 "//components/resources",
1344 ] 1345 ]
1345 1346
1346 output = repack_output_file 1347 output = repack_output_file
1347 } 1348 }
1348 1349
1349 copy(copy_name) { 1350 copy(copy_name) {
1350 visibility = [ ":*" ] 1351 visibility = [ ":*" ]
1351 deps = [ 1352 deps = [
1352 ":$repack_name", 1353 ":$repack_name",
1353 ] 1354 ]
1354 sources = [ 1355 sources = [
1355 repack_output_file, 1356 repack_output_file,
1356 ] 1357 ]
1357 outputs = [ 1358 outputs = [
1358 "$root_build_dir/chrome_material_${percent}_percent.pak", 1359 "$root_build_dir/chrome_material_${percent}_percent.pak",
1359 ] 1360 ]
1360 } 1361 }
1361 } 1362 }
1362 1363
1363 if (enable_topchrome_md) { 1364 if (is_mac) {
1364 chrome_repack_material_percent("repack_chrome_material_100_percent") { 1365 chrome_repack_material_percent("repack_chrome_material_100_percent") {
1365 percent = "100" 1366 percent = "100"
1366 } 1367 }
1367 1368
1368 if (enable_hidpi) { 1369 if (enable_hidpi) {
1369 chrome_repack_material_percent("repack_chrome_material_200_percent") { 1370 chrome_repack_material_percent("repack_chrome_material_200_percent") {
1370 percent = "200" 1371 percent = "200"
1371 } 1372 }
1372 } 1373 }
1373 } 1374 }
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1539 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1539 "//chrome/tools/build/linux/chrome-wrapper", 1540 "//chrome/tools/build/linux/chrome-wrapper",
1540 "//third_party/xdg-utils/scripts/xdg-mime", 1541 "//third_party/xdg-utils/scripts/xdg-mime",
1541 "//third_party/xdg-utils/scripts/xdg-settings", 1542 "//third_party/xdg-utils/scripts/xdg-settings",
1542 ] 1543 ]
1543 outputs = [ 1544 outputs = [
1544 "$root_out_dir/{{source_file_part}}", 1545 "$root_out_dir/{{source_file_part}}",
1545 ] 1546 ]
1546 } 1547 }
1547 } 1548 }
OLDNEW
« no previous file with comments | « build/config/ui.gni ('k') | chrome/app/theme/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698