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/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//build/config/win/manifest.gni") | 10 import("//build/config/win/manifest.gni") |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 if (is_multi_dll_chrome) { | 269 if (is_multi_dll_chrome) { |
270 data_deps += [ ":chrome_child" ] | 270 data_deps += [ ":chrome_child" ] |
271 } | 271 } |
272 } | 272 } |
273 } | 273 } |
274 | 274 |
275 if (is_mac || is_win) { | 275 if (is_mac || is_win) { |
276 shared_library("main_dll") { | 276 shared_library("main_dll") { |
277 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 277 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
278 defines = [] | 278 defines = [] |
| 279 ldflags = [] |
| 280 |
| 281 sources = [ |
| 282 "//base/win/dllmain.cc", |
| 283 "app/chrome_command_ids.h", |
| 284 "app/chrome_dll.rc", |
| 285 "app/chrome_dll_resource.h", |
| 286 "app/chrome_main.cc", |
| 287 "app/chrome_main_delegate.cc", |
| 288 "app/chrome_main_delegate.h", |
| 289 "app/chrome_main_mac.h", |
| 290 "app/chrome_main_mac.mm", |
| 291 "app/close_handle_hook_win.cc", |
| 292 "app/close_handle_hook_win.h", |
| 293 "app/delay_load_hook_win.cc", |
| 294 "app/delay_load_hook_win.h", |
| 295 ] |
279 | 296 |
280 deps = [ | 297 deps = [ |
281 ":browser_dependencies", | 298 ":browser_dependencies", |
282 "//base/allocator", | 299 "//base/allocator", |
283 "//build/config/sanitizers:deps", | 300 "//build/config/sanitizers:deps", |
284 ] | 301 ] |
285 if (is_win) { | 302 if (is_win) { |
286 output_name = "chrome" | 303 output_name = "chrome" |
287 | 304 |
288 sources = [ | |
289 "//base/win/dllmain.cc", | |
290 "app/chrome_command_ids.h", | |
291 "app/chrome_dll.rc", | |
292 "app/chrome_dll_resource.h", | |
293 "app/chrome_main.cc", | |
294 "app/chrome_main_delegate.cc", | |
295 "app/chrome_main_delegate.h", | |
296 "app/close_handle_hook_win.cc", | |
297 "app/close_handle_hook_win.h", | |
298 "app/delay_load_hook_win.cc", | |
299 "app/delay_load_hook_win.h", | |
300 ] | |
301 | |
302 deps += [ | 305 deps += [ |
303 ":chrome_dll_manifest", | 306 ":chrome_dll_manifest", |
304 ":chrome_dll_version", | 307 ":chrome_dll_version", |
305 "//base/trace_event/etw_manifest:chrome_events_win", | 308 "//base/trace_event/etw_manifest:chrome_events_win", |
306 "//chrome/app/theme:chrome_unscaled_resources", | 309 "//chrome/app/theme:chrome_unscaled_resources", |
307 "//chrome_elf", | 310 "//chrome_elf", |
308 "//content/app/resources", | 311 "//content/app/resources", |
309 "//crypto", | 312 "//crypto", |
310 "//net:net_resources", | 313 "//net:net_resources", |
311 "//third_party/wtl", | 314 "//third_party/wtl", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 346 |
344 if (cld_version == 2) { | 347 if (cld_version == 2) { |
345 deps += [ "//third_party/cld_2" ] | 348 deps += [ "//third_party/cld_2" ] |
346 } | 349 } |
347 | 350 |
348 if (is_mac) { | 351 if (is_mac) { |
349 #['OS=="mac" and component!="shared_library"', { TODO(GYP) | 352 #['OS=="mac" and component!="shared_library"', { TODO(GYP) |
350 # 'includes': [ 'chrome_dll_bundle.gypi' ], | 353 # 'includes': [ 'chrome_dll_bundle.gypi' ], |
351 #}], | 354 #}], |
352 # TODO(GYP) Lots of other stuff in the OS=="mac" block. | 355 # TODO(GYP) Lots of other stuff in the OS=="mac" block. |
| 356 sources += [ |
| 357 "app/chrome_crash_reporter_client.cc", |
| 358 "app/chrome_crash_reporter_client.h", |
| 359 "app/chrome_crash_reporter_client_mac.mm", |
| 360 ] |
| 361 deps += [ |
| 362 "//components/crash/content/app", |
| 363 "//components/policy", |
| 364 ] |
| 365 |
| 366 # Define the order of symbols within the framework. |
| 367 ldflags += [ |
| 368 "-Wl,-order_file", |
| 369 "-Wl," + rebase_path("app/framework.order", root_build_dir), |
| 370 ] |
353 } | 371 } |
354 | 372 |
355 if (enable_plugins && !is_multi_dll_chrome) { | 373 if (enable_plugins && !is_multi_dll_chrome) { |
356 deps += [ "//pdf" ] | 374 deps += [ "//pdf" ] |
357 } | 375 } |
358 } | 376 } |
359 | 377 |
360 if (is_multi_dll_chrome) { | 378 if (is_multi_dll_chrome) { |
361 # This manifest matches what GYP produces. It may not even be necessary. | 379 # This manifest matches what GYP produces. It may not even be necessary. |
362 windows_manifest("chrome_child_manifest") { | 380 windows_manifest("chrome_child_manifest") { |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1052 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1035 "//chrome/tools/build/linux/chrome-wrapper", | 1053 "//chrome/tools/build/linux/chrome-wrapper", |
1036 "//third_party/xdg-utils/scripts/xdg-mime", | 1054 "//third_party/xdg-utils/scripts/xdg-mime", |
1037 "//third_party/xdg-utils/scripts/xdg-settings", | 1055 "//third_party/xdg-utils/scripts/xdg-settings", |
1038 ] | 1056 ] |
1039 outputs = [ | 1057 outputs = [ |
1040 "$root_out_dir/{{source_file_part}}", | 1058 "$root_out_dir/{{source_file_part}}", |
1041 ] | 1059 ] |
1042 } | 1060 } |
1043 } | 1061 } |
OLD | NEW |