| 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/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("//build/config/win/manifest.gni") | 9 import("//build/config/win/manifest.gni") |
| 10 import("//chrome/chrome_repack_locales.gni") | 10 import("//chrome/chrome_repack_locales.gni") |
| 11 import("//chrome/version.gni") | 11 import("//chrome/version.gni") |
| 12 | 12 |
| 13 if (is_android) { | 13 if (is_android) { |
| 14 import("//build/config/android/rules.gni") | 14 import("//build/config/android/rules.gni") |
| 15 } | 15 } |
| 16 | 16 |
| 17 if (!is_android) { | 17 if (!is_android) { |
| 18 # TODO(GYP) bug 512599: for Windows need to the the reorder-imports step | 18 # TODO(GYP) bug 512599: for Windows need to the the reorder-imports step |
| 19 # which probably means adding another target and renaming this to | 19 # which probably means adding another target and renaming this to |
| 20 # chrome_initial like in GYP. | 20 # chrome_initial like in GYP. |
| 21 executable("chrome") { | 21 executable("chrome") { |
| 22 # Because the sources list varies so significantly per-platform, generally | 22 # Because the sources list varies so significantly per-platform, generally |
| 23 # each platform lists its own files rather than relying on filtering or | 23 # each platform lists its own files rather than relying on filtering or |
| 24 # removing unused files. | 24 # removing unused files. |
| 25 sources = [ | 25 sources = [ |
| 26 "app/chrome_exe_resource.h", | 26 "app/chrome_exe_resource.h", |
| 27 ] | 27 ] |
| 28 defines = [] | 28 defines = [] |
| 29 public_deps = [] | 29 public_deps = [] |
| 30 deps = [] | 30 deps = [ |
| 31 "//build/config/sanitizers:deps", |
| 32 ] |
| 31 | 33 |
| 32 data = [ | 34 data = [ |
| 33 "$root_out_dir/resources.pak", | 35 "$root_out_dir/resources.pak", |
| 34 ] | 36 ] |
| 35 if (is_linux || is_win) { | 37 if (is_linux || is_win) { |
| 36 data += [ | 38 data += [ |
| 37 "$root_out_dir/chrome_100_percent.pak", | 39 "$root_out_dir/chrome_100_percent.pak", |
| 38 "$root_out_dir/locales/en-US.pak", | 40 "$root_out_dir/locales/en-US.pak", |
| 39 "$root_out_dir/locales/fr.pak", | 41 "$root_out_dir/locales/fr.pak", |
| 40 ] | 42 ] |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 196 } |
| 195 } # !is_android | 197 } # !is_android |
| 196 | 198 |
| 197 shared_library("main_dll") { | 199 shared_library("main_dll") { |
| 198 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 200 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 199 defines = [] | 201 defines = [] |
| 200 | 202 |
| 201 deps = [ | 203 deps = [ |
| 202 ":browser_dependencies", | 204 ":browser_dependencies", |
| 203 "//base/allocator", | 205 "//base/allocator", |
| 206 "//build/config/sanitizers:deps", |
| 204 ] | 207 ] |
| 205 if (is_win) { | 208 if (is_win) { |
| 206 output_name = "chrome" | 209 output_name = "chrome" |
| 207 | 210 |
| 208 sources = [ | 211 sources = [ |
| 209 "//base/win/dllmain.cc", | 212 "//base/win/dllmain.cc", |
| 210 "app/chrome_command_ids.h", | 213 "app/chrome_command_ids.h", |
| 211 "app/chrome_dll.rc", | 214 "app/chrome_dll.rc", |
| 212 "app/chrome_dll_resource.h", | 215 "app/chrome_dll_resource.h", |
| 213 "app/chrome_main.cc", | 216 "app/chrome_main.cc", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 ] | 298 ] |
| 296 | 299 |
| 297 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 300 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 298 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 301 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
| 299 | 302 |
| 300 deps = [ | 303 deps = [ |
| 301 ":child_dependencies", | 304 ":child_dependencies", |
| 302 ":chrome_child_manifest", | 305 ":chrome_child_manifest", |
| 303 ":chrome_dll_version", | 306 ":chrome_dll_version", |
| 304 "//base/allocator", | 307 "//base/allocator", |
| 308 "//build/config/sanitizers:deps", |
| 305 "//chrome/browser/policy:path_parser", | 309 "//chrome/browser/policy:path_parser", |
| 306 "//content/public/app:child", | 310 "//content/public/app:child", |
| 307 ] | 311 ] |
| 308 | 312 |
| 309 if (is_win) { | 313 if (is_win) { |
| 310 # TODO(GYP) bug 512851: PGO on Windows. | 314 # TODO(GYP) bug 512851: PGO on Windows. |
| 311 # ['chrome_pgo_phase==1', { | 315 # ['chrome_pgo_phase==1', { |
| 312 # 'msvs_settings': { | 316 # 'msvs_settings': { |
| 313 # 'VCLinkerTool': { | 317 # 'VCLinkerTool': { |
| 314 # 'LinkTimeCodeGeneration': '2', | 318 # 'LinkTimeCodeGeneration': '2', |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 971 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 968 "//chrome/tools/build/linux/chrome-wrapper", | 972 "//chrome/tools/build/linux/chrome-wrapper", |
| 969 "//third_party/xdg-utils/scripts/xdg-mime", | 973 "//third_party/xdg-utils/scripts/xdg-mime", |
| 970 "//third_party/xdg-utils/scripts/xdg-settings", | 974 "//third_party/xdg-utils/scripts/xdg-settings", |
| 971 ] | 975 ] |
| 972 outputs = [ | 976 outputs = [ |
| 973 "$root_out_dir/{{source_file_part}}", | 977 "$root_out_dir/{{source_file_part}}", |
| 974 ] | 978 ] |
| 975 } | 979 } |
| 976 } | 980 } |
| OLD | NEW |