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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
| 8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine. | 8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine. |
| 9 'directxsdk_exists': '<!pymod_do_main(dir_exists ../third_party/directxsdk)' , | 9 'directxsdk_exists': '<!pymod_do_main(dir_exists ../third_party/directxsdk)' , |
| 10 }, | 10 }, |
| 11 'target_defaults': { | 11 'target_defaults': { |
| 12 'defines': ['CONTENT_IMPLEMENTATION'], | 12 'defines': ['CONTENT_IMPLEMENTATION'], |
| 13 'conditions': [ | 13 'conditions': [ |
| 14 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. | 14 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. |
| 15 ['OS=="win" and target_arch=="x64"', { | 15 ['OS=="win" and target_arch=="x64"', { |
| 16 'msvs_settings': { | 16 'msvs_settings': { |
| 17 'VCCLCompilerTool': { | 17 'VCCLCompilerTool': { |
| 18 'AdditionalOptions': ['/bigobj'], | 18 'AdditionalOptions': ['/bigobj'], |
| 19 }, | 19 }, |
| 20 }, | 20 }, |
| 21 }], | 21 }], |
| 22 ], | 22 ], |
| 23 }, | 23 }, |
| 24 'targets': [ | |
| 25 { | |
| 26 # GN version: //content/renderer:renderer_features | |
| 27 'target_name': 'renderer_features', | |
| 28 'includes': [ | |
| 29 '../build/buildflag_header.gypi', | |
| 30 '../third_party/webrtc/build/common.gypi', | |
| 31 ], | |
| 32 'conditions': [ | |
| 33 # This conditional looks insane, but without it |rtc_use_h264| is not | |
|
brettw
2016/02/03 22:19:55
I don't really care about this too much, but I *th
hbos_chromium
2016/02/04 10:47:32
I tried that (including 'var': '<(var)' in the out
| |
| 34 # recognized as defined. Might have something to do with scopes. Moving | |
| 35 # the inclusion of third_party/webrtc/build/common.gypi to outside of | |
| 36 # 'targets' is not an option, then we get compile errors. | |
| 37 ['1==1', { | |
| 38 'variables': { | |
| 39 'buildflag_header_path': 'content/renderer/renderer_features.h', | |
| 40 'buildflag_flags': [ | |
| 41 'RTC_USE_H264=<(rtc_use_h264)', | |
| 42 ], | |
| 43 }, | |
| 44 }], | |
| 45 ], | |
| 46 }, | |
| 47 ], | |
| 24 'conditions': [ | 48 'conditions': [ |
| 25 ['OS != "ios"', { | 49 ['OS != "ios"', { |
| 26 'includes': [ | 50 'includes': [ |
| 27 '../build/win_precompile.gypi', | 51 '../build/win_precompile.gypi', |
| 28 'content_resources.gypi', | 52 'content_resources.gypi', |
| 29 ], | 53 ], |
| 30 }], | 54 }], |
| 31 ['OS == "win"', { | 55 ['OS == "win"', { |
| 32 'targets': [ | 56 'targets': [ |
| 33 { | 57 { |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 'target_name': 'content_renderer', | 279 'target_name': 'content_renderer', |
| 256 'type': 'static_library', | 280 'type': 'static_library', |
| 257 'variables': { 'enable_wexit_time_destructors': 1, }, | 281 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 258 'includes': [ | 282 'includes': [ |
| 259 'content_renderer.gypi', | 283 'content_renderer.gypi', |
| 260 ], | 284 ], |
| 261 'dependencies': [ | 285 'dependencies': [ |
| 262 'content_child', | 286 'content_child', |
| 263 'content_common', | 287 'content_common', |
| 264 'content_resources', | 288 'content_resources', |
| 289 'renderer_features', | |
| 265 ], | 290 ], |
| 266 'export_dependent_settings': [ | 291 'export_dependent_settings': [ |
| 267 'content_common', | 292 'content_common', |
| 268 ], | 293 ], |
| 269 'conditions': [ | 294 'conditions': [ |
| 270 ['chromium_enable_vtune_jit_for_v8==1', { | 295 ['chromium_enable_vtune_jit_for_v8==1', { |
| 271 'dependencies': [ | 296 'dependencies': [ |
| 272 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', | 297 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', |
| 273 ], | 298 ], |
| 274 }], | 299 }], |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 294 }, | 319 }, |
| 295 { # component != static_library | 320 { # component != static_library |
| 296 'targets': [ | 321 'targets': [ |
| 297 { | 322 { |
| 298 # GN version: //content | 323 # GN version: //content |
| 299 'target_name': 'content', | 324 'target_name': 'content', |
| 300 'type': 'shared_library', | 325 'type': 'shared_library', |
| 301 'variables': { 'enable_wexit_time_destructors': 1, }, | 326 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 302 'dependencies': [ | 327 'dependencies': [ |
| 303 'content_resources', | 328 'content_resources', |
| 329 'renderer_features', | |
| 304 ], | 330 ], |
| 305 'conditions': [ | 331 'conditions': [ |
| 306 ['chromium_enable_vtune_jit_for_v8==1', { | 332 ['chromium_enable_vtune_jit_for_v8==1', { |
| 307 'dependencies': [ | 333 'dependencies': [ |
| 308 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', | 334 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', |
| 309 ], | 335 ], |
| 310 }], | 336 }], |
| 311 ], | 337 ], |
| 312 'includes': [ | 338 'includes': [ |
| 313 'content_app.gypi', | 339 'content_app.gypi', |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 648 }, | 674 }, |
| 649 'includes': [ | 675 'includes': [ |
| 650 '../build/android/copy_ex.gypi', | 676 '../build/android/copy_ex.gypi', |
| 651 '../build/android/v8_external_startup_data_arch_suffix.gypi', | 677 '../build/android/v8_external_startup_data_arch_suffix.gypi', |
| 652 ], | 678 ], |
| 653 }, | 679 }, |
| 654 ], | 680 ], |
| 655 }], # OS == "android" | 681 }], # OS == "android" |
| 656 ], | 682 ], |
| 657 } | 683 } |
| OLD | NEW |