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 # 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. |
| 11 'variables': { | 11 'variables': { |
| 12 # Putting a variables dict inside another variables dict looks kind of | 12 # Putting a variables dict inside another variables dict looks kind of |
| 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as | 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as |
| 14 # variables within the outer variables dict here. This is necessary | 14 # variables within the outer variables dict here. This is necessary |
| 15 # to get these variables defined for the conditions within this variables | 15 # to get these variables defined for the conditions within this variables |
| 16 # dict that operate on these variables. | 16 # dict that operate on these variables. |
| 17 'variables': { | 17 'variables': { |
| 18 'variables': { | 18 'variables': { |
| 19 'variables': { | 19 'variables': { |
| 20 # Whether we're building a ChromeOS build. | 20 'variables': { |
| 21 'chromeos%': 0, | 21 # Whether we're building a ChromeOS build. |
| 22 'chromeos%': 0, | |
| 23 | |
| 24 # Whether or not we are using the Aura windowing framework. | |
| 25 'use_aura%': 0, | |
| 26 | |
| 27 # Whether or not we are building the Ash shell. | |
| 28 'use_ash%': 0, | |
| 29 }, | |
| 30 # Copy conditionally-set variables out one scope. | |
| 31 'chromeos%': '<(chromeos)', | |
| 32 'use_aura%': '<(use_aura)', | |
| 33 'use_ash%': '<(use_ash)', | |
| 22 | 34 |
| 23 # Whether we are using Views Toolkit | 35 # Whether we are using Views Toolkit |
| 24 'toolkit_views%': 0, | 36 'toolkit_views%': 0, |
| 25 | 37 |
| 26 # Whether or not we are using the Aura windowing framework. | |
| 27 'use_aura%': 0, | |
| 28 | |
| 29 # Whether or not we are building the Ash shell. | |
| 30 'use_ash%': 0, | |
| 31 | |
| 32 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 | 38 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/ 62803 |
| 33 'use_openssl%': 0, | 39 'use_openssl%': 0, |
| 34 | 40 |
| 35 'use_ibus%': 0, | 41 'use_ibus%': 0, |
| 36 | 42 |
| 37 # Disable viewport meta tag by default. | 43 # Disable viewport meta tag by default. |
| 38 'enable_viewport%': 0, | 44 'enable_viewport%': 0, |
| 39 | 45 |
| 40 # Enable HiDPI support. | 46 # Enable HiDPI support. |
| 41 'enable_hidpi%': 0, | 47 'enable_hidpi%': 0, |
| 42 | 48 |
| 43 # Enable touch optimized art assets and metrics. | 49 # Enable touch optimized art assets and metrics. |
| 44 'enable_touch_ui%': 0, | 50 'enable_touch_ui%': 0, |
| 45 | 51 |
| 46 # Is this change part of the android upstream bringup? | 52 # Is this change part of the android upstream bringup? |
| 47 # Allows us to *temporarily* disable certain things for | 53 # Allows us to *temporarily* disable certain things for |
| 48 # staging. Only set to 1 in a GYP_DEFINES. | 54 # staging. Only set to 1 in a GYP_DEFINES. |
| 49 'android_upstream_bringup%': 0, | 55 'android_upstream_bringup%': 0, |
| 50 | 56 |
| 51 # Override buildtype to select the desired build flavor. | 57 # Override buildtype to select the desired build flavor. |
| 52 # Dev - everyday build for development/testing | 58 # Dev - everyday build for development/testing |
| 53 # Official - release build (generally implies additional processing) | 59 # Official - release build (generally implies additional processing) |
| 54 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 60 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
| 55 # conversion is done), some of the things which are now controlled by | 61 # conversion is done), some of the things which are now controlled by |
| 56 # 'branding', such as symbol generation, will need to be refactored | 62 # 'branding', such as symbol generation, will need to be refactored |
| 57 # based on 'buildtype' (i.e. we don't care about saving symbols for | 63 # based on 'buildtype' (i.e. we don't care about saving symbols for |
| 58 # non-Official # builds). | 64 # non-Official # builds). |
| 59 'buildtype%': 'Dev', | 65 'buildtype%': 'Dev', |
| 66 | |
| 67 'conditions': [ | |
| 68 # Chromeos implies ash. | |
|
Mark Mentovai
2012/08/06 13:13:28
Isn’t ChromeOS spelled with more capital letters t
newt (away)
2012/08/06 18:23:55
Done.
| |
| 69 ['chromeos==1', { | |
| 70 'use_ash%': 1, | |
| 71 'use_aura%': 1, | |
| 72 }], | |
| 73 | |
| 74 # For now, Windows *AND* Linux builds that |use_aura| should also | |
| 75 # imply using ash. This rule should be removed for the future when | |
| 76 # both Linux and Windows are using the aura windows without the ash | |
| 77 # interface. | |
| 78 ['use_aura==1 and OS=="win"', { | |
| 79 'use_ash%': 1, | |
| 80 }], | |
| 81 ['use_ash==1', { | |
| 82 'use_aura%': 1, | |
| 83 }], | |
| 84 ], | |
| 60 }, | 85 }, |
| 61 # Copy conditionally-set variables out one scope. | 86 # Copy conditionally-set variables out one scope. |
| 62 'chromeos%': '<(chromeos)', | 87 'chromeos%': '<(chromeos)', |
| 63 'use_aura%': '<(use_aura)', | 88 'use_aura%': '<(use_aura)', |
| 64 'use_ash%': '<(use_ash)', | 89 'use_ash%': '<(use_ash)', |
| 65 'use_openssl%': '<(use_openssl)', | 90 'use_openssl%': '<(use_openssl)', |
| 66 'use_ibus%': '<(use_ibus)', | 91 'use_ibus%': '<(use_ibus)', |
| 67 'enable_viewport%': '<(enable_viewport)', | 92 'enable_viewport%': '<(enable_viewport)', |
| 68 'enable_hidpi%': '<(enable_hidpi)', | 93 'enable_hidpi%': '<(enable_hidpi)', |
| 69 'enable_touch_ui%': '<(enable_touch_ui)', | 94 'enable_touch_ui%': '<(enable_touch_ui)', |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 80 ['OS=="win" or OS=="mac" or OS=="ios"', { | 105 ['OS=="win" or OS=="mac" or OS=="ios"', { |
| 81 'host_arch%': 'ia32', | 106 'host_arch%': 'ia32', |
| 82 }, { | 107 }, { |
| 83 # This handles the Unix platforms for which there is some support. | 108 # This handles the Unix platforms for which there is some support. |
| 84 # Anything else gets passed through, which probably won't work very | 109 # Anything else gets passed through, which probably won't work very |
| 85 # well; such hosts should pass an explicit target_arch to gyp. | 110 # well; such hosts should pass an explicit target_arch to gyp. |
| 86 'host_arch%': | 111 'host_arch%': |
| 87 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', | 112 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/;s/i86pc/ia32/")', |
| 88 }], | 113 }], |
| 89 | 114 |
| 90 # Chromeos implies ash. | |
| 91 ['chromeos==1', { | |
| 92 'use_ash%': 1, | |
| 93 'use_aura%': 1, | |
| 94 }], | |
| 95 | |
| 96 # For now, Windows *AND* Linux builds that |use_aura| should also | |
| 97 # imply using ash. This rule should be removed for the future when | |
| 98 # both Linux and Windows are using the aura windows without the ash | |
| 99 # interface. | |
| 100 ['use_aura==1 and OS=="win"', { | |
| 101 'use_ash%': 1, | |
| 102 }], | |
| 103 ['use_ash==1', { | |
| 104 'use_aura%': 1, | |
| 105 }], | |
| 106 | |
| 107 # Set default value of toolkit_views based on OS. | 115 # Set default value of toolkit_views based on OS. |
| 108 ['OS=="win" or chromeos==1 or use_aura==1', { | 116 ['OS=="win" or chromeos==1 or use_aura==1', { |
| 109 'toolkit_views%': 1, | 117 'toolkit_views%': 1, |
| 110 }, { | 118 }, { |
| 111 'toolkit_views%': 0, | 119 'toolkit_views%': 0, |
| 112 }], | 120 }], |
| 113 | 121 |
| 122 # Set toolkit_uses_gtk for the Chromium browser on Linux. | |
| 123 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_aura==0', { | |
| 124 'toolkit_uses_gtk%': 1, | |
| 125 }, { | |
| 126 'toolkit_uses_gtk%': 0, | |
| 127 }], | |
| 128 | |
| 114 # Enable HiDPI on Mac OS. | 129 # Enable HiDPI on Mac OS. |
| 115 ['OS=="mac"', { | 130 ['OS=="mac"', { |
| 116 'enable_hidpi%': 1, | 131 'enable_hidpi%': 1, |
| 117 }], | 132 }], |
| 118 | 133 |
| 119 # Enable touch UI on Metro and Chrome OS. | 134 # Enable touch UI on Metro and Chrome OS. |
| 120 ['OS=="win" or chromeos==1', { | 135 ['OS=="win" or chromeos==1', { |
| 121 'enable_touch_ui%': 1, | 136 'enable_touch_ui%': 1, |
| 122 }], | 137 }], |
| 123 ], | 138 ], |
| 124 }, | 139 }, |
| 125 | 140 |
| 126 # Copy conditionally-set variables out one scope. | 141 # Copy conditionally-set variables out one scope. |
| 127 'chromeos%': '<(chromeos)', | 142 'chromeos%': '<(chromeos)', |
| 128 'host_arch%': '<(host_arch)', | 143 'host_arch%': '<(host_arch)', |
| 129 'toolkit_views%': '<(toolkit_views)', | 144 'toolkit_views%': '<(toolkit_views)', |
| 145 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | |
| 130 'use_aura%': '<(use_aura)', | 146 'use_aura%': '<(use_aura)', |
| 131 'use_ash%': '<(use_ash)', | 147 'use_ash%': '<(use_ash)', |
| 132 'use_openssl%': '<(use_openssl)', | 148 'use_openssl%': '<(use_openssl)', |
| 133 'use_ibus%': '<(use_ibus)', | 149 'use_ibus%': '<(use_ibus)', |
| 134 'enable_viewport%': '<(enable_viewport)', | 150 'enable_viewport%': '<(enable_viewport)', |
| 135 'enable_hidpi%': '<(enable_hidpi)', | 151 'enable_hidpi%': '<(enable_hidpi)', |
| 136 'enable_touch_ui%': '<(enable_touch_ui)', | 152 'enable_touch_ui%': '<(enable_touch_ui)', |
| 137 'android_upstream_bringup%': '<(android_upstream_bringup)', | 153 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 138 'android_build_type%': '<(android_build_type)', | 154 'android_build_type%': '<(android_build_type)', |
| 139 | 155 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 | 421 |
| 406 # Flags to use X11 on non-Mac POSIX platforms | 422 # Flags to use X11 on non-Mac POSIX platforms |
| 407 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { | 423 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { |
| 408 'use_glib%': 0, | 424 'use_glib%': 0, |
| 409 'use_x11%': 0, | 425 'use_x11%': 0, |
| 410 }, { | 426 }, { |
| 411 'use_glib%': 1, | 427 'use_glib%': 1, |
| 412 'use_x11%': 1, | 428 'use_x11%': 1, |
| 413 }], | 429 }], |
| 414 | 430 |
| 415 # Set toolkit_uses_gtk for the Chromium browser on Linux. | |
| 416 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_aura==0', { | |
| 417 'toolkit_uses_gtk%': 1, | |
| 418 }, { | |
| 419 'toolkit_uses_gtk%': 0, | |
| 420 }], | |
| 421 | |
| 422 # We always use skia text rendering in Aura on Windows, since GDI | 431 # We always use skia text rendering in Aura on Windows, since GDI |
| 423 # doesn't agree with our BackingStore. | 432 # doesn't agree with our BackingStore. |
| 424 # TODO(beng): remove once skia text rendering is on by default. | 433 # TODO(beng): remove once skia text rendering is on by default. |
| 425 ['use_aura==1 and OS=="win"', { | 434 ['use_aura==1 and OS=="win"', { |
| 426 'enable_skia_text%': 1, | 435 'enable_skia_text%': 1, |
| 427 }], | 436 }], |
| 428 | 437 |
| 429 # A flag to enable or disable our compile-time dependency | 438 # A flag to enable or disable our compile-time dependency |
| 430 # on gnome-keyring. If that dependency is disabled, no gnome-keyring | 439 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
| 431 # support will be available. This option is useful | 440 # support will be available. This option is useful |
| 432 # for Linux distributions and for Aura. | 441 # for Linux distributions and for Aura. |
| 433 ['chromeos==1 or use_aura==1', { | 442 ['chromeos==1 or use_aura==1', { |
| 434 'use_gnome_keyring%': 0, | 443 'use_gnome_keyring%': 0, |
| 435 }, { | 444 }, { |
| 436 'use_gnome_keyring%': 1, | 445 'use_gnome_keyring%': 1, |
| 437 }], | 446 }], |
| 438 | 447 |
| 439 ['toolkit_views==0 or OS=="mac" or OS=="ios"', { | 448 ['toolkit_uses_gtk==1 or OS=="mac" or OS=="ios"', { |
| 440 # GTK+, Mac and iOS want Title Case strings | 449 # GTK+, Mac and iOS want Title Case strings |
| 441 'use_titlecase_in_grd_files%': 1, | 450 'use_titlecase_in_grd_files%': 1, |
| 442 }], | 451 }], |
| 443 | 452 |
| 444 # Enable file manager extension on Chrome OS. | 453 # Enable file manager extension on Chrome OS. |
| 445 ['chromeos==1', { | 454 ['chromeos==1', { |
| 446 'file_manager_extension%': 1, | 455 'file_manager_extension%': 1, |
| 447 }, { | 456 }, { |
| 448 'file_manager_extension%': 0, | 457 'file_manager_extension%': 0, |
| 449 }], | 458 }], |
| (...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3341 # settings in target dicts. SYMROOT is a special case, because many other | 3350 # settings in target dicts. SYMROOT is a special case, because many other |
| 3342 # Xcode variables depend on it, including variables such as | 3351 # Xcode variables depend on it, including variables such as |
| 3343 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3352 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3344 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3353 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3345 # files to appear (when present) in the UI as actual files and not red | 3354 # files to appear (when present) in the UI as actual files and not red |
| 3346 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3355 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3347 # and therefore SYMROOT, needs to be set at the project level. | 3356 # and therefore SYMROOT, needs to be set at the project level. |
| 3348 'SYMROOT': '<(DEPTH)/xcodebuild', | 3357 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3349 }, | 3358 }, |
| 3350 } | 3359 } |
| OLD | NEW |