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

Side by Side Diff: chrome/BUILD.gn

Issue 2353553004: Revert of Create Monochrome-specific repack() targets (Closed)
Patch Set: Created 4 years, 3 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/android/internal_rules.gni ('k') | chrome/android/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")
11 import("//build/config/ui.gni") 11 import("//build/config/ui.gni")
12 import("//build/config/win/console_app.gni") 12 import("//build/config/win/console_app.gni")
13 import("//build/config/win/manifest.gni") 13 import("//build/config/win/manifest.gni")
14 import("//chrome/chrome_paks.gni") 14 import("//chrome/chrome_paks.gni")
15 import("//chrome/common/features.gni") 15 import("//chrome/common/features.gni")
16 import("//chrome/process_version_rc_template.gni") 16 import("//chrome/process_version_rc_template.gni")
17 import("//third_party/widevine/cdm/widevine.gni") 17 import("//third_party/widevine/cdm/widevine.gni")
18 import("//tools/resources/generate_resource_whitelist.gni") 18 import("//tools/resources/generate_resource_whitelist.gni")
19 import("//ui/base/ui_features.gni")
19 import("//v8/gni/v8.gni") 20 import("//v8/gni/v8.gni")
20 21
21 if (is_android) { 22 if (is_android) {
22 import("//build/config/android/rules.gni") 23 import("//build/config/android/rules.gni")
23 } else if (is_mac) { 24 } else if (is_mac) {
24 import("//build/compiled_action.gni") 25 import("//build/compiled_action.gni")
25 import("//build/config/mac/rules.gni") 26 import("//build/config/mac/rules.gni")
26 import("//build/config/mac/symbols.gni") 27 import("//build/config/mac/symbols.gni")
27 import("//build/mac/tweak_info_plist.gni") 28 import("//build/mac/tweak_info_plist.gni")
28 import("//build/util/branding.gni") 29 import("//build/util/branding.gni")
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ] 246 ]
246 } 247 }
247 248
248 if (enable_package_mash_services) { 249 if (enable_package_mash_services) {
249 deps += [ "//chrome/app/mash" ] 250 deps += [ "//chrome/app/mash" ]
250 data_deps += [ "//chrome/app:mojo_manifests" ] 251 data_deps += [ "//chrome/app:mojo_manifests" ]
251 } 252 }
252 } 253 }
253 254
254 # These files are used by the installer so we need a public dep. 255 # These files are used by the installer so we need a public dep.
255 public_deps += [ ":packed_resources" ] 256 public_deps += [
257 ":packed_extra_resources",
258 ":packed_resources",
259 ]
256 260
257 # Only ChromeOS has precompiled Flash that needs to get copied to the output 261 # Only ChromeOS has precompiled Flash that needs to get copied to the output
258 # directory. On other platforms, Flash is either component-updated only or 262 # directory. On other platforms, Flash is either component-updated only or
259 # not supported at all. 263 # not supported at all.
260 if (is_chromeos) { 264 if (is_chromeos) {
261 deps += [ "//third_party/adobe/flash:flapper_binaries" ] 265 deps += [ "//third_party/adobe/flash:flapper_binaries" ]
262 } 266 }
263 267
264 data_deps += [ "//third_party/widevine/cdm:widevinecdmadapter" ] 268 data_deps += [ "//third_party/widevine/cdm:widevinecdmadapter" ]
265 269
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 # can't deal with .icns files. 731 # can't deal with .icns files.
728 "app/theme/default_100_percent/$branding_path_component/product_logo_32.pn g", 732 "app/theme/default_100_percent/$branding_path_component/product_logo_32.pn g",
729 "browser/mac/install.sh", 733 "browser/mac/install.sh",
730 ] 734 ]
731 735
732 outputs = [ 736 outputs = [
733 "{{bundle_resources_dir}}/{{source_file_part}}", 737 "{{bundle_resources_dir}}/{{source_file_part}}",
734 ] 738 ]
735 739
736 public_deps = [ 740 public_deps = [
741 ":packed_extra_resources",
737 ":packed_resources", 742 ":packed_resources",
738 "//chrome/app_shim:app_mode_loader", 743 "//chrome/app_shim:app_mode_loader",
739 ] 744 ]
740 745
741 if (enable_mac_keystone) { 746 if (enable_mac_keystone) {
742 sources += [ 747 sources += [
743 "browser/mac/keystone_promote_postflight.sh", 748 "browser/mac/keystone_promote_postflight.sh",
744 "browser/mac/keystone_promote_preflight.sh", 749 "browser/mac/keystone_promote_preflight.sh",
745 ] 750 ]
746 } 751 }
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 ] 1345 ]
1341 } 1346 }
1342 1347
1343 if (is_chrome_branded && !is_mac && !is_android) { 1348 if (is_chrome_branded && !is_mac && !is_android) {
1344 public_deps = [ 1349 public_deps = [
1345 ":default_apps", 1350 ":default_apps",
1346 ] 1351 ]
1347 } 1352 }
1348 } 1353 }
1349 1354
1355 chrome_extra_paks("packed_extra_resources") {
1356 if (is_mac) {
1357 output_dir = "$root_gen_dir/repack"
1358 copy_data_to_bundle = true
1359 } else {
1360 output_dir = root_out_dir
1361 }
1362
1363 copy_data_to_bundle = is_mac
1364 if (enable_resource_whitelist_generation) {
1365 repack_whitelist = chrome_resource_whitelist
1366 deps = [
1367 ":resource_whitelist",
1368 ]
1369 }
1370 }
1371
1350 repack("browser_tests_pak") { 1372 repack("browser_tests_pak") {
1351 sources = [ 1373 sources = [
1352 "$root_gen_dir/chrome/options_test_resources.pak", 1374 "$root_gen_dir/chrome/options_test_resources.pak",
1353 "$root_gen_dir/chrome/webui_test_resources.pak", 1375 "$root_gen_dir/chrome/webui_test_resources.pak",
1354 ] 1376 ]
1355 output = "$root_out_dir/browser_tests.pak" 1377 output = "$root_out_dir/browser_tests.pak"
1356 deps = [ 1378 deps = [
1357 "//chrome/browser/resources:options_test_resources", 1379 "//chrome/browser/resources:options_test_resources",
1358 "//chrome/test/data:webui_test_resources", 1380 "//chrome/test/data:webui_test_resources",
1359 ] 1381 ]
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1546 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1525 "//chrome/tools/build/linux/chrome-wrapper", 1547 "//chrome/tools/build/linux/chrome-wrapper",
1526 "//third_party/xdg-utils/scripts/xdg-mime", 1548 "//third_party/xdg-utils/scripts/xdg-mime",
1527 "//third_party/xdg-utils/scripts/xdg-settings", 1549 "//third_party/xdg-utils/scripts/xdg-settings",
1528 ] 1550 ]
1529 outputs = [ 1551 outputs = [
1530 "$root_out_dir/{{source_file_part}}", 1552 "$root_out_dir/{{source_file_part}}",
1531 ] 1553 ]
1532 } 1554 }
1533 } 1555 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698