| 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 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 'enable_touch_ui%': 0, | 45 'enable_touch_ui%': 0, |
| 46 | 46 |
| 47 # Enable inclusion of touch-optimized resources. | 47 # Enable inclusion of touch-optimized resources. |
| 48 # TODO(joi): Rename to enable_touch_assets. | 48 # TODO(joi): Rename to enable_touch_assets. |
| 49 'enable_metro%': 0, | 49 'enable_metro%': 0, |
| 50 | 50 |
| 51 # Is this change part of the android upstream bringup? | 51 # Is this change part of the android upstream bringup? |
| 52 # Allows us to *temporarily* disable certain things for | 52 # Allows us to *temporarily* disable certain things for |
| 53 # staging. Only set to 1 in a GYP_DEFINES. | 53 # staging. Only set to 1 in a GYP_DEFINES. |
| 54 'android_upstream_bringup%': 0, | 54 'android_upstream_bringup%': 0, |
| 55 | |
| 56 # Override buildtype to select the desired build flavor. | |
| 57 # Dev - everyday build for development/testing | |
| 58 # Official - release build (generally implies additional processing) | |
| 59 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | |
| 60 # conversion is done), some of the things which are now controlled by | |
| 61 # 'branding', such as symbol generation, will need to be refactored | |
| 62 # based on 'buildtype' (i.e. we don't care about saving symbols for | |
| 63 # non-Official # builds). | |
| 64 'buildtype%': 'Dev', | |
| 65 }, | 55 }, |
| 66 # Copy conditionally-set variables out one scope. | 56 # Copy conditionally-set variables out one scope. |
| 67 'chromeos%': '<(chromeos)', | 57 'chromeos%': '<(chromeos)', |
| 68 'use_aura%': '<(use_aura)', | 58 'use_aura%': '<(use_aura)', |
| 69 'use_ash%': '<(use_ash)', | 59 'use_ash%': '<(use_ash)', |
| 70 'use_openssl%': '<(use_openssl)', | 60 'use_openssl%': '<(use_openssl)', |
| 71 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 61 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
| 72 'enable_viewport%': '<(enable_viewport)', | 62 'enable_viewport%': '<(enable_viewport)', |
| 73 'enable_hidpi%': '<(enable_hidpi)', | 63 'enable_hidpi%': '<(enable_hidpi)', |
| 74 'enable_touch_ui%': '<(enable_touch_ui)', | 64 'enable_touch_ui%': '<(enable_touch_ui)', |
| 75 'enable_metro%': '<(enable_metro)', | 65 'enable_metro%': '<(enable_metro)', |
| 76 'android_upstream_bringup%': '<(android_upstream_bringup)', | 66 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 77 'buildtype%': '<(buildtype)', | |
| 78 | 67 |
| 79 # Compute the architecture that we're building on. | 68 # Compute the architecture that we're building on. |
| 80 'conditions': [ | 69 'conditions': [ |
| 81 [ 'OS=="win" or OS=="mac"', { | 70 [ 'OS=="win" or OS=="mac"', { |
| 82 'host_arch%': 'ia32', | 71 'host_arch%': 'ia32', |
| 83 }, { | 72 }, { |
| 84 # This handles the Unix platforms for which there is some support. | 73 # This handles the Unix platforms for which there is some support. |
| 85 # Anything else gets passed through, which probably won't work very | 74 # Anything else gets passed through, which probably won't work very |
| 86 # well; such hosts should pass an explicit target_arch to gyp. | 75 # well; such hosts should pass an explicit target_arch to gyp. |
| 87 'host_arch%': | 76 'host_arch%': |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 'toolkit_views%': '<(toolkit_views)', | 119 'toolkit_views%': '<(toolkit_views)', |
| 131 'use_aura%': '<(use_aura)', | 120 'use_aura%': '<(use_aura)', |
| 132 'use_ash%': '<(use_ash)', | 121 'use_ash%': '<(use_ash)', |
| 133 'use_openssl%': '<(use_openssl)', | 122 'use_openssl%': '<(use_openssl)', |
| 134 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 123 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
| 135 'enable_viewport%': '<(enable_viewport)', | 124 'enable_viewport%': '<(enable_viewport)', |
| 136 'enable_hidpi%': '<(enable_hidpi)', | 125 'enable_hidpi%': '<(enable_hidpi)', |
| 137 'enable_touch_ui%': '<(enable_touch_ui)', | 126 'enable_touch_ui%': '<(enable_touch_ui)', |
| 138 'enable_metro%': '<(enable_metro)', | 127 'enable_metro%': '<(enable_metro)', |
| 139 'android_upstream_bringup%': '<(android_upstream_bringup)', | 128 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 140 'chromium_win_pch%': '<(chromium_win_pch)', | |
| 141 | 129 |
| 142 # We used to provide a variable for changing how libraries were built. | 130 # We used to provide a variable for changing how libraries were built. |
| 143 # This variable remains until we can clean up all the users. | 131 # This variable remains until we can clean up all the users. |
| 144 # This needs to be one nested variables dict in so that dependent | 132 # This needs to be one nested variables dict in so that dependent |
| 145 # gyp files can make use of it in their outer variables. (Yikes!) | 133 # gyp files can make use of it in their outer variables. (Yikes!) |
| 146 # http://code.google.com/p/chromium/issues/detail?id=83308 | 134 # http://code.google.com/p/chromium/issues/detail?id=83308 |
| 147 'library%': 'static_library', | 135 'library%': 'static_library', |
| 148 | 136 |
| 149 # Override branding to select the desired branding flavor. | 137 # Override branding to select the desired branding flavor. |
| 150 'branding%': 'Chromium', | 138 'branding%': 'Chromium', |
| 151 | 139 |
| 152 'buildtype%': '<(buildtype)', | 140 # Override buildtype to select the desired build flavor. |
| 141 # Dev - everyday build for development/testing |
| 142 # Official - release build (generally implies additional processing) |
| 143 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
| 144 # conversion is done), some of the things which are now controlled by |
| 145 # 'branding', such as symbol generation, will need to be refactored based |
| 146 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official |
| 147 # builds). |
| 148 'buildtype%': 'Dev', |
| 153 | 149 |
| 154 # Default architecture we're building for is the architecture we're | 150 # Default architecture we're building for is the architecture we're |
| 155 # building on. | 151 # building on. |
| 156 'target_arch%': '<(host_arch)', | 152 'target_arch%': '<(host_arch)', |
| 157 | 153 |
| 158 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are | 154 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
| 159 # are built under a chromium full build (1) or a webkit.org chromium | 155 # are built under a chromium full build (1) or a webkit.org chromium |
| 160 # build (0). | 156 # build (0). |
| 161 'inside_chromium_build%': 1, | 157 'inside_chromium_build%': 1, |
| 162 | 158 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 276 |
| 281 # Enables support for background apps. | 277 # Enables support for background apps. |
| 282 'enable_background%': 1, | 278 'enable_background%': 1, |
| 283 | 279 |
| 284 # Enable the task manager by default. | 280 # Enable the task manager by default. |
| 285 'enable_task_manager%': 1, | 281 'enable_task_manager%': 1, |
| 286 | 282 |
| 287 # Enables support for promo resource service. | 283 # Enables support for promo resource service. |
| 288 'enable_promo_resource_service%': 1, | 284 'enable_promo_resource_service%': 1, |
| 289 | 285 |
| 286 # XInput2 multitouch support is disabled by default (use_xi2_mt=0). |
| 287 # Setting to non-zero value enables XI2 MT. When XI2 MT is enabled, |
| 288 # the input value also defines the required XI2 minor minimum version. |
| 289 # For example, use_xi2_mt=2 means XI2.2 or above version is required. |
| 290 'use_xi2_mt%': 0, |
| 291 |
| 290 # Use of precompiled headers on Windows. | 292 # Use of precompiled headers on Windows. |
| 291 # | 293 # |
| 292 # This is on by default in VS 2010, but off by default for VS | 294 # This is on by default in VS 2010, but off by default for VS |
| 293 # 2008 because of complications that it can cause with our | 295 # 2008 because of complications that it can cause with our |
| 294 # trybots etc. | 296 # trybots etc. |
| 295 # | 297 # |
| 296 # This variable may be explicitly set to 1 (enabled) or 0 | 298 # This variable may be explicitly set to 1 (enabled) or 0 |
| 297 # (disabled) in ~/.gyp/include.gypi or via the GYP command line. | 299 # (disabled) in ~/.gyp/include.gypi or via the GYP command line. |
| 298 # This setting will override the default. | 300 # This setting will override the default. |
| 299 # | 301 # |
| 300 # Note that a setting of 1 is probably suitable for most or all | 302 # Note that a setting of 1 is probably suitable for most or all |
| 301 # Windows developers using VS 2008, since precompiled headers | 303 # Windows developers using VS 2008, since precompiled headers |
| 302 # provide a build speedup of 20-25%. There are a couple of | 304 # provide a build speedup of 20-25%. There are a couple of |
| 303 # small workarounds you may need to use when using VS 2008 (but | 305 # small workarounds you may need to use when using VS 2008 (but |
| 304 # not 2010), see | 306 # not 2010), see |
| 305 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders | 307 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders |
| 306 # for details. | 308 # for details. |
| 307 'chromium_win_pch%': 0, | 309 'chromium_win_pch%': 0, |
| 308 | 310 |
| 309 # XInput2 multitouch support is disabled by default (use_xi2_mt=0). | |
| 310 # Setting to non-zero value enables XI2 MT. When XI2 MT is enabled, | |
| 311 # the input value also defines the required XI2 minor minimum version. | |
| 312 # For example, use_xi2_mt=2 means XI2.2 or above version is required. | |
| 313 'use_xi2_mt%': 0, | |
| 314 | |
| 315 # Set this to true when building with Clang. | 311 # Set this to true when building with Clang. |
| 316 # See http://code.google.com/p/chromium/wiki/Clang for details. | 312 # See http://code.google.com/p/chromium/wiki/Clang for details. |
| 317 'clang%': 0, | 313 'clang%': 0, |
| 318 | 314 |
| 319 # Enable plug-in installation by default. | 315 # Enable plug-in installation by default. |
| 320 'enable_plugin_installation%': 1, | 316 'enable_plugin_installation%': 1, |
| 321 | 317 |
| 322 # Enable protector service by default. | 318 # Enable protector service by default. |
| 323 'enable_protector_service%': 1, | 319 'enable_protector_service%': 1, |
| 324 | 320 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 434 |
| 439 # Use GPU accelerated cross process image transport by default | 435 # Use GPU accelerated cross process image transport by default |
| 440 # on linux builds with the Aura window manager | 436 # on linux builds with the Aura window manager |
| 441 ['use_aura==1 and OS=="linux"', { | 437 ['use_aura==1 and OS=="linux"', { |
| 442 'ui_compositor_image_transport%': 1, | 438 'ui_compositor_image_transport%': 1, |
| 443 }, { | 439 }, { |
| 444 'ui_compositor_image_transport%': 0, | 440 'ui_compositor_image_transport%': 0, |
| 445 }], | 441 }], |
| 446 | 442 |
| 447 # Turn precompiled headers on by default for VS 2010. | 443 # Turn precompiled headers on by default for VS 2010. |
| 448 ['OS=="win" and MSVS_VERSION=="2010" and buildtype!="Official"', { | 444 ['OS=="win" and MSVS_VERSION=="2010"', { |
| 449 'chromium_win_pch%': 1 | 445 'chromium_win_pch%': 1 |
| 450 }], | 446 }], |
| 451 | 447 |
| 452 ['use_aura==1 or chromeos==1 or OS=="android"', { | 448 ['use_aura==1 or chromeos==1 or OS=="android"', { |
| 453 'enable_plugin_installation%': 0, | 449 'enable_plugin_installation%': 0, |
| 454 }, { | 450 }, { |
| 455 'enable_plugin_installation%': 1, | 451 'enable_plugin_installation%': 1, |
| 456 }], | 452 }], |
| 457 | 453 |
| 458 ['OS=="android"', { | 454 ['OS=="android"', { |
| (...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3064 # settings in target dicts. SYMROOT is a special case, because many other | 3060 # settings in target dicts. SYMROOT is a special case, because many other |
| 3065 # Xcode variables depend on it, including variables such as | 3061 # Xcode variables depend on it, including variables such as |
| 3066 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3062 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3067 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3063 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3068 # files to appear (when present) in the UI as actual files and not red | 3064 # files to appear (when present) in the UI as actual files and not red |
| 3069 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3065 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3070 # and therefore SYMROOT, needs to be set at the project level. | 3066 # and therefore SYMROOT, needs to be set at the project level. |
| 3071 'SYMROOT': '<(DEPTH)/xcodebuild', | 3067 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3072 }, | 3068 }, |
| 3073 } | 3069 } |
| OLD | NEW |