| OLD | NEW |
| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/locales.gni") | 6 import("//build/config/locales.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//chrome/chrome_repack_locales.gni") | 8 import("//chrome/chrome_repack_locales.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 | 10 |
| 11 if (!is_android) { |
| 12 |
| 11 # TODO(GYP) for Windows need to the the reorder-imports step which probably | 13 # TODO(GYP) for Windows need to the the reorder-imports step which probably |
| 12 # means adding another target and renaming this to chrome_initial like in GYP. | 14 # means adding another target and renaming this to chrome_initial like in GYP. |
| 13 executable("chrome") { | 15 executable("chrome") { |
| 14 # Because the sources list varies so significantly per-platform, generally | 16 # Because the sources list varies so significantly per-platform, generally |
| 15 # each platform lists its own files rather than relying on filtering or | 17 # each platform lists its own files rather than relying on filtering or |
| 16 # removing unused files. | 18 # removing unused files. |
| 17 sources = [ | 19 sources = [ |
| 18 "app/chrome_exe_resource.h", | 20 "app/chrome_exe_resource.h", |
| 19 ] | 21 ] |
| 20 deps = [] | 22 deps = [] |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 # file decide what to do on a per-OS basis; on Mac, internal plugins | 99 # file decide what to do on a per-OS basis; on Mac, internal plugins |
| 98 # go inside the framework, so this dependency is in chrome_dll.gypi. | 100 # go inside the framework, so this dependency is in chrome_dll.gypi. |
| 99 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', TODO(
GYP) | 101 #'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter', TODO(
GYP) |
| 100 ] | 102 ] |
| 101 | 103 |
| 102 # TODO(GYP) some stuff from GYP including chrome_multiple_dll. | 104 # TODO(GYP) some stuff from GYP including chrome_multiple_dll. |
| 103 | 105 |
| 104 } | 106 } |
| 105 | 107 |
| 106 | 108 |
| 107 if (!is_mac && !is_android) { | 109 if (!is_mac) { |
| 108 # On Mac this is done in chrome_dll.gypi. Android doesn't use pdfium. | 110 # On Mac this is done in chrome_dll.gypi. |
| 109 datadeps += [ "//pdf" ] | 111 datadeps += [ "//pdf" ] |
| 110 | 112 |
| 111 # TODO(GYP) pdf linux symbols | 113 # TODO(GYP) pdf linux symbols |
| 112 } | 114 } |
| 113 } | 115 } |
| 114 | 116 |
| 117 } # !is_android |
| 118 |
| 115 shared_library("main_dll") { | 119 shared_library("main_dll") { |
| 116 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 120 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 117 | 121 |
| 118 deps = [ | 122 deps = [ |
| 119 ":browser_dependencies", | 123 ":browser_dependencies", |
| 120 "//base/allocator", | 124 "//base/allocator", |
| 121 ] | 125 ] |
| 122 if (is_win) { | 126 if (is_win) { |
| 123 output_name = "chrome" | 127 output_name = "chrome" |
| 124 | 128 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 "//chrome/browser/resources:options_resources", | 369 "//chrome/browser/resources:options_resources", |
| 366 "//chrome/browser/resources:quota_internals_resources", | 370 "//chrome/browser/resources:quota_internals_resources", |
| 367 "//chrome/browser/resources:sync_file_system_internals_resources", | 371 "//chrome/browser/resources:sync_file_system_internals_resources", |
| 368 ] | 372 ] |
| 369 } | 373 } |
| 370 if (!is_ios) { | 374 if (!is_ios) { |
| 371 sources += [ | 375 sources += [ |
| 372 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 376 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
| 373 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", | 377 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
| 374 "$root_gen_dir/content/content_resources.pak", | 378 "$root_gen_dir/content/content_resources.pak", |
| 375 "$root_gen_dir/extensions/extensions_renderer_resources.pak", | |
| 376 "$root_gen_dir/extensions/extensions_resources.pak", | |
| 377 ] | 379 ] |
| 378 } | 380 } |
| 379 if (is_chromeos) { | 381 if (is_chromeos) { |
| 380 sources += [ "$root_gen_dir/ui/file_manager/file_manager_resources.pak" ] | 382 sources += [ "$root_gen_dir/ui/file_manager/file_manager_resources.pak" ] |
| 381 deps += [ "//ui/file_manager:resources" ] | 383 deps += [ "//ui/file_manager:resources" ] |
| 382 } | 384 } |
| 383 if (enable_extensions) { | 385 if (enable_extensions) { |
| 384 sources += [ "$root_gen_dir/chrome/extensions_api_resources.pak" ] | 386 sources += [ |
| 387 "$root_gen_dir/chrome/extensions_api_resources.pak", |
| 388 "$root_gen_dir/extensions/extensions_renderer_resources.pak", |
| 389 "$root_gen_dir/extensions/extensions_resources.pak", |
| 390 ] |
| 385 deps += [ "//chrome/common:extensions_api_resources" ] | 391 deps += [ "//chrome/common:extensions_api_resources" ] |
| 386 } | 392 } |
| 387 | 393 |
| 388 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms | 394 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms |
| 389 # it them copies it. This skipes the copy step and writes it to the final | 395 # it them copies it. This skipes the copy step and writes it to the final |
| 390 # location. | 396 # location. |
| 391 if (is_mac || is_ios) { | 397 if (is_mac || is_ios) { |
| 392 output = "$root_gen_dir/repack/resources.pak" | 398 output = "$root_gen_dir/repack/resources.pak" |
| 393 } else { | 399 } else { |
| 394 output = "$root_out_dir/resources.pak" | 400 output = "$root_out_dir/resources.pak" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 | 515 |
| 510 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 516 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
| 511 group("strings") { | 517 group("strings") { |
| 512 deps = [ | 518 deps = [ |
| 513 "//chrome/app:chromium_strings", | 519 "//chrome/app:chromium_strings", |
| 514 "//chrome/app:generated_resources", | 520 "//chrome/app:generated_resources", |
| 515 "//chrome/app:google_chrome_strings", | 521 "//chrome/app:google_chrome_strings", |
| 516 "//chrome/app/resources:locale_settings", | 522 "//chrome/app/resources:locale_settings", |
| 517 ] | 523 ] |
| 518 } | 524 } |
| OLD | NEW |