Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'conditions': [ | 5 'conditions': [ |
| 6 ['OS=="mac" or OS=="win"', { | 6 ['OS=="mac" or OS=="win"', { |
| 7 'targets': [ | 7 'targets': [ |
| 8 { | 8 { |
| 9 'target_name': 'chrome_dll', | 9 'target_name': 'chrome_dll', |
| 10 'type': 'none', | 10 'type': 'none', |
| 11 'dependencies': [ | 11 'dependencies': [ |
| 12 'chrome_main_dll', | 12 'chrome_main_dll', |
| 13 ], | 13 ], |
| 14 'conditions': [ | 14 'conditions': [ |
| 15 ['OS=="mac" and component=="shared_library"', { | 15 ['OS=="mac" and component=="shared_library"', { |
| 16 'type': 'shared_library', | 16 'type': 'shared_library', |
| 17 'includes': [ 'chrome_dll_bundle.gypi' ], | 17 'includes': [ 'chrome_dll_bundle.gypi' ], |
| 18 'xcode_settings': { | 18 'xcode_settings': { |
| 19 'OTHER_LDFLAGS': [ | 19 'OTHER_LDFLAGS': [ |
| 20 '-Wl,-reexport_library,<(PRODUCT_DIR)/libchrome_main_dll.dylib ', | 20 '-Wl,-reexport_library,<(PRODUCT_DIR)/libchrome_main_dll.dylib ', |
| 21 ], | 21 ], |
| 22 }, | 22 }, |
| 23 }], # OS=="mac" | 23 }], # OS=="mac" |
| 24 ['chrome_multiple_dll==1', { | |
| 25 'dependencies': [ | |
| 26 'chrome_child_dll', | |
| 27 ], | |
| 28 }], | |
| 24 ['incremental_chrome_dll==1', { | 29 ['incremental_chrome_dll==1', { |
| 25 # Linking to a different directory and then hardlinking back | 30 # Linking to a different directory and then hardlinking back |
| 26 # to OutDir is a workaround to avoid having the .ilk for | 31 # to OutDir is a workaround to avoid having the .ilk for |
| 27 # chrome.exe and chrome.dll conflicting. See crbug.com/92528 | 32 # chrome.exe and chrome.dll conflicting. See crbug.com/92528 |
| 28 # for more information. Done on the dll instead of the exe so | 33 # for more information. Done on the dll instead of the exe so |
| 29 # that people launching from VS don't need to modify | 34 # that people launching from VS don't need to modify |
| 30 # $(TargetPath) for the exe. | 35 # $(TargetPath) for the exe. |
| 31 'actions': [ | 36 'actions': [ |
| 32 { | 37 { |
| 33 'action_name': 'hardlink_to_output', | 38 'action_name': 'hardlink_to_output', |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 ] | 73 ] |
| 69 }, | 74 }, |
| 70 { | 75 { |
| 71 'target_name': 'chrome_main_dll', | 76 'target_name': 'chrome_main_dll', |
| 72 'type': 'shared_library', | 77 'type': 'shared_library', |
| 73 'variables': { | 78 'variables': { |
| 74 'enable_wexit_time_destructors': 1, | 79 'enable_wexit_time_destructors': 1, |
| 75 }, | 80 }, |
| 76 'dependencies': [ | 81 'dependencies': [ |
| 77 '<@(chromium_browser_dependencies)', | 82 '<@(chromium_browser_dependencies)', |
| 78 '<@(chromium_child_dependencies)', | |
| 79 '../content/content.gyp:content_worker', | |
| 80 'app/policy/cloud_policy_codegen.gyp:policy', | 83 'app/policy/cloud_policy_codegen.gyp:policy', |
| 81 ], | 84 ], |
| 82 'conditions': [ | 85 'conditions': [ |
| 83 ['use_aura==1', { | 86 ['use_aura==1', { |
| 84 'dependencies': [ | 87 'dependencies': [ |
| 85 '../ui/compositor/compositor.gyp:compositor', | 88 '../ui/compositor/compositor.gyp:compositor', |
| 86 ], | 89 ], |
| 87 }], | 90 }], |
| 88 ['use_ash==1', { | 91 ['use_ash==1', { |
| 89 'sources': [ | 92 'sources': [ |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 'wininet.dll', | 222 'wininet.dll', |
| 220 'winspool.drv', | 223 'winspool.drv', |
| 221 'ws2_32.dll', | 224 'ws2_32.dll', |
| 222 'wsock32.dll', | 225 'wsock32.dll', |
| 223 ], | 226 ], |
| 224 }, | 227 }, |
| 225 'VCManifestTool': { | 228 'VCManifestTool': { |
| 226 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest', | 229 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest', |
| 227 }, | 230 }, |
| 228 }, | 231 }, |
| 229 }], # OS=="win" | 232 }], |
| 233 ['chrome_multiple_dll!=1', { | |
|
jam
2013/07/17 16:23:37
nit: I think this would be readable the other way
scottmg
2013/07/17 16:49:35
Done.
| |
| 234 'dependencies': [ | |
| 235 '<@(chromium_child_dependencies)', | |
| 236 '../content/content.gyp:content_worker', | |
| 237 ], | |
| 238 }, { | |
| 239 'defines': [ | |
| 240 'CHROME_MULTIPLE_DLL_BROWSER', | |
| 241 ], | |
| 242 }], | |
| 230 ['OS=="mac" and component!="shared_library"', { | 243 ['OS=="mac" and component!="shared_library"', { |
| 231 'includes': [ 'chrome_dll_bundle.gypi' ], | 244 'includes': [ 'chrome_dll_bundle.gypi' ], |
| 232 }], | 245 }], |
| 233 ['OS=="mac" and component=="shared_library"', { | 246 ['OS=="mac" and component=="shared_library"', { |
| 234 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, | 247 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, |
| 235 }], | 248 }], |
| 236 ['chrome_split_dll', { | |
| 237 'sources': [ | |
| 238 # See comment in .cc for explanation. | |
| 239 'split_dll_fake_entry.cc', | |
| 240 ], | |
| 241 'msvs_settings': { | |
| 242 'VCLinkerTool': { | |
| 243 'AdditionalOptions': ['/splitlink'], | |
| 244 }, | |
| 245 } | |
| 246 }], | |
| 247 ['OS=="mac"', { | 249 ['OS=="mac"', { |
| 248 'xcode_settings': { | 250 'xcode_settings': { |
| 249 # Define the order of symbols within the framework. This | 251 # Define the order of symbols within the framework. This |
| 250 # sets -order_file. | 252 # sets -order_file. |
| 251 'ORDER_FILE': 'app/framework.order', | 253 'ORDER_FILE': 'app/framework.order', |
| 252 }, | 254 }, |
| 253 'sources': [ | 255 'sources': [ |
| 254 'app/chrome_command_ids.h', | 256 'app/chrome_command_ids.h', |
| 255 'app/chrome_dll_resource.h', | 257 'app/chrome_dll_resource.h', |
| 256 'app/chrome_main.cc', | 258 'app/chrome_main.cc', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 303 }], # mac_breakpad_compiled_in | 305 }], # mac_breakpad_compiled_in |
| 304 ['internal_pdf', { | 306 ['internal_pdf', { |
| 305 'dependencies': [ | 307 'dependencies': [ |
| 306 '../pdf/pdf.gyp:pdf', | 308 '../pdf/pdf.gyp:pdf', |
| 307 ], | 309 ], |
| 308 }], | 310 }], |
| 309 ], # conditions | 311 ], # conditions |
| 310 }], # OS=="mac" | 312 }], # OS=="mac" |
| 311 ], # conditions | 313 ], # conditions |
| 312 }, # target chrome_main_dll | 314 }, # target chrome_main_dll |
| 315 { | |
| 316 'target_name': 'chrome_child_dll', | |
| 317 'type': 'shared_library', | |
| 318 'product_name': 'chrome_child', | |
| 319 'variables': { | |
| 320 'enable_wexit_time_destructors': 1, | |
| 321 }, | |
| 322 'dependencies': [ | |
| 323 '<@(chromium_child_dependencies)', | |
| 324 '../content/content.gyp:content_worker', | |
| 325 'policy_path_parser', | |
| 326 ], | |
| 327 'defines': [ | |
| 328 'CHROME_MULTIPLE_DLL_CHILD', | |
| 329 ], | |
| 330 'sources': [ | |
| 331 'app/child_stubs.cc', | |
| 332 'app/chrome_main.cc', | |
| 333 'app/chrome_main_delegate.cc', | |
| 334 'app/chrome_main_delegate.h', | |
| 335 ], | |
| 336 }, # target chrome_child_dll | |
| 313 ], # targets | 337 ], # targets |
| 314 }], # OS=="mac" or OS=="win" | 338 }], # OS=="mac" or OS=="win" |
| 315 ['OS=="win"', { | 339 ['OS=="win"', { |
| 316 'targets': [ | 340 'targets': [ |
| 317 { | 341 { |
| 318 # This target is only depended upon on Windows. | 342 # This target is only depended upon on Windows. |
| 319 'target_name': 'chrome_dll_pdb_workaround', | 343 'target_name': 'chrome_dll_pdb_workaround', |
| 320 'type': 'static_library', | 344 'type': 'static_library', |
| 321 'sources': [ 'empty_pdb_workaround.cc' ], | 345 'sources': [ 'empty_pdb_workaround.cc' ], |
| 322 'conditions': [ | 346 'conditions': [ |
| 323 ['fastbuild==0 or win_z7!=0', { | 347 ['fastbuild==0 or win_z7!=0', { |
| 324 'msvs_settings': { | 348 'msvs_settings': { |
| 325 'VCCLCompilerTool': { | 349 'VCCLCompilerTool': { |
| 326 # This *in the compile phase* must match the pdb name that's | 350 # This *in the compile phase* must match the pdb name that's |
| 327 # output by the final link. See empty_pdb_workaround.cc for | 351 # output by the final link. See empty_pdb_workaround.cc for |
| 328 # more details. | 352 # more details. |
| 329 'DebugInformationFormat': '3', | 353 'DebugInformationFormat': '3', |
| 330 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', | 354 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', |
| 331 }, | 355 }, |
| 332 }, | 356 }, |
| 333 }], | 357 }], |
| 334 ], | 358 ], |
| 335 }, | 359 }, |
| 336 ], | 360 ], |
| 337 }], | 361 }], |
| 338 ], | 362 ], |
| 339 } | 363 } |
| OLD | NEW |