| 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 'variables': { | 20 'variables': { |
| 21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
| 22 'chromeos%': 0, | 22 'chromeos%': 0, |
| 23 | 23 |
| 24 # Whether or not we are using the Aura windowing framework. | 24 # Whether or not we are using the Aura windowing framework. |
| 25 'use_aura%': 0, | 25 'use_aura%': 0, |
| 26 | 26 |
| 27 # Whether or not we are building the Ash shell. | 27 # Whether or not we are building the Ash shell. |
| 28 'use_ash%': 0, | 28 'use_ash%': 0, |
| 29 |
| 30 # Whether or not we are building the window manager. |
| 31 'use_wm%': 0, |
| 29 }, | 32 }, |
| 30 # Copy conditionally-set variables out one scope. | 33 # Copy conditionally-set variables out one scope. |
| 31 'chromeos%': '<(chromeos)', | 34 'chromeos%': '<(chromeos)', |
| 32 'use_aura%': '<(use_aura)', | 35 'use_aura%': '<(use_aura)', |
| 33 'use_ash%': '<(use_ash)', | 36 'use_ash%': '<(use_ash)', |
| 37 'use_wm%': '<(use_wm)', |
| 34 | 38 |
| 35 # Whether we are using Views Toolkit | 39 # Whether we are using Views Toolkit |
| 36 'toolkit_views%': 0, | 40 'toolkit_views%': 0, |
| 37 | 41 |
| 38 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 | 42 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/
62803 |
| 39 'use_openssl%': 0, | 43 'use_openssl%': 0, |
| 40 | 44 |
| 41 # Disable viewport meta tag by default. | 45 # Disable viewport meta tag by default. |
| 42 'enable_viewport%': 0, | 46 'enable_viewport%': 0, |
| 43 | 47 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 # non-Official # builds). | 61 # non-Official # builds). |
| 58 'buildtype%': 'Dev', | 62 'buildtype%': 'Dev', |
| 59 | 63 |
| 60 'conditions': [ | 64 'conditions': [ |
| 61 # ChromeOS implies ash. | 65 # ChromeOS implies ash. |
| 62 ['chromeos==1', { | 66 ['chromeos==1', { |
| 63 'use_ash%': 1, | 67 'use_ash%': 1, |
| 64 'use_aura%': 1, | 68 'use_aura%': 1, |
| 65 }], | 69 }], |
| 66 | 70 |
| 71 # Wm implies ash. |
| 72 ['use_wm==1', { |
| 73 'use_ash%': 1, |
| 74 'use_aura%': 1, |
| 75 }], |
| 76 |
| 67 # For now, Windows builds that |use_aura| should also imply using | 77 # For now, Windows builds that |use_aura| should also imply using |
| 68 # ash. This rule should be removed for the future when Windows is | 78 # ash. This rule should be removed for the future when Windows is |
| 69 # using the aura windows without the ash interface. | 79 # using the aura windows without the ash interface. |
| 70 ['use_aura==1 and OS=="win"', { | 80 ['use_aura==1 and OS=="win"', { |
| 71 'use_ash%': 1, | 81 'use_ash%': 1, |
| 72 }], | 82 }], |
| 73 ['use_ash==1', { | 83 ['use_ash==1', { |
| 74 'use_aura%': 1, | 84 'use_aura%': 1, |
| 75 }], | 85 }], |
| 76 | 86 |
| 77 # Compute the architecture that we're building on. | 87 # Compute the architecture that we're building on. |
| 78 ['OS=="win" or OS=="mac" or OS=="ios"', { | 88 ['OS=="win" or OS=="mac" or OS=="ios"', { |
| 79 'host_arch%': 'ia32', | 89 'host_arch%': 'ia32', |
| 80 }, { | 90 }, { |
| 81 # This handles the Unix platforms for which there is some support. | 91 # This handles the Unix platforms for which there is some support. |
| 82 # Anything else gets passed through, which probably won't work | 92 # Anything else gets passed through, which probably won't work |
| 83 # very well; such hosts should pass an explicit target_arch to | 93 # very well; such hosts should pass an explicit target_arch to |
| 84 # gyp. | 94 # gyp. |
| 85 'host_arch%': | 95 'host_arch%': |
| 86 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s
/arm.*/arm/;s/i86pc/ia32/")', | 96 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s
/arm.*/arm/;s/i86pc/ia32/")', |
| 87 }], | 97 }], |
| 88 ], | 98 ], |
| 89 }, | 99 }, |
| 90 # Copy conditionally-set variables out one scope. | 100 # Copy conditionally-set variables out one scope. |
| 91 'chromeos%': '<(chromeos)', | 101 'chromeos%': '<(chromeos)', |
| 92 'use_aura%': '<(use_aura)', | 102 'use_aura%': '<(use_aura)', |
| 93 'use_ash%': '<(use_ash)', | 103 'use_ash%': '<(use_ash)', |
| 104 'use_wm%': '<(use_wm)', |
| 94 'use_openssl%': '<(use_openssl)', | 105 'use_openssl%': '<(use_openssl)', |
| 95 'enable_viewport%': '<(enable_viewport)', | 106 'enable_viewport%': '<(enable_viewport)', |
| 96 'enable_hidpi%': '<(enable_hidpi)', | 107 'enable_hidpi%': '<(enable_hidpi)', |
| 97 'enable_touch_ui%': '<(enable_touch_ui)', | 108 'enable_touch_ui%': '<(enable_touch_ui)', |
| 98 'buildtype%': '<(buildtype)', | 109 'buildtype%': '<(buildtype)', |
| 99 'host_arch%': '<(host_arch)', | 110 'host_arch%': '<(host_arch)', |
| 100 | 111 |
| 101 # Default architecture we're building for is the architecture we're | 112 # Default architecture we're building for is the architecture we're |
| 102 # building on. | 113 # building on. |
| 103 'target_arch%': '<(host_arch)', | 114 'target_arch%': '<(host_arch)', |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 }, | 169 }, |
| 159 | 170 |
| 160 # Copy conditionally-set variables out one scope. | 171 # Copy conditionally-set variables out one scope. |
| 161 'chromeos%': '<(chromeos)', | 172 'chromeos%': '<(chromeos)', |
| 162 'host_arch%': '<(host_arch)', | 173 'host_arch%': '<(host_arch)', |
| 163 'target_arch%': '<(target_arch)', | 174 'target_arch%': '<(target_arch)', |
| 164 'toolkit_views%': '<(toolkit_views)', | 175 'toolkit_views%': '<(toolkit_views)', |
| 165 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 176 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| 166 'use_aura%': '<(use_aura)', | 177 'use_aura%': '<(use_aura)', |
| 167 'use_ash%': '<(use_ash)', | 178 'use_ash%': '<(use_ash)', |
| 179 'use_wm%': '<(use_wm)', |
| 168 'use_openssl%': '<(use_openssl)', | 180 'use_openssl%': '<(use_openssl)', |
| 169 'enable_viewport%': '<(enable_viewport)', | 181 'enable_viewport%': '<(enable_viewport)', |
| 170 'enable_hidpi%': '<(enable_hidpi)', | 182 'enable_hidpi%': '<(enable_hidpi)', |
| 171 'enable_touch_ui%': '<(enable_touch_ui)', | 183 'enable_touch_ui%': '<(enable_touch_ui)', |
| 172 'android_build_type%': '<(android_build_type)', | 184 'android_build_type%': '<(android_build_type)', |
| 173 'google_tv%': '<(google_tv)', | 185 'google_tv%': '<(google_tv)', |
| 174 'enable_app_list%': '<(enable_app_list)', | 186 'enable_app_list%': '<(enable_app_list)', |
| 175 'enable_message_center%': '<(enable_message_center)', | 187 'enable_message_center%': '<(enable_message_center)', |
| 176 'use_default_render_theme%': '<(use_default_render_theme)', | 188 'use_default_render_theme%': '<(use_default_render_theme)', |
| 177 'enable_web_intents%': 0, # TODO(thakis): Remove, http://crbug.com/173194 | 189 'enable_web_intents%': 0, # TODO(thakis): Remove, http://crbug.com/173194 |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 | 680 |
| 669 # Copy conditionally-set variables out one scope. | 681 # Copy conditionally-set variables out one scope. |
| 670 'branding%': '<(branding)', | 682 'branding%': '<(branding)', |
| 671 'buildtype%': '<(buildtype)', | 683 'buildtype%': '<(buildtype)', |
| 672 'target_arch%': '<(target_arch)', | 684 'target_arch%': '<(target_arch)', |
| 673 'host_arch%': '<(host_arch)', | 685 'host_arch%': '<(host_arch)', |
| 674 'toolkit_views%': '<(toolkit_views)', | 686 'toolkit_views%': '<(toolkit_views)', |
| 675 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 687 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
| 676 'use_aura%': '<(use_aura)', | 688 'use_aura%': '<(use_aura)', |
| 677 'use_ash%': '<(use_ash)', | 689 'use_ash%': '<(use_ash)', |
| 690 'use_wm%': '<(use_wm)', |
| 678 'use_openssl%': '<(use_openssl)', | 691 'use_openssl%': '<(use_openssl)', |
| 679 'use_nss%': '<(use_nss)', | 692 'use_nss%': '<(use_nss)', |
| 680 'os_bsd%': '<(os_bsd)', | 693 'os_bsd%': '<(os_bsd)', |
| 681 'os_posix%': '<(os_posix)', | 694 'os_posix%': '<(os_posix)', |
| 682 'use_glib%': '<(use_glib)', | 695 'use_glib%': '<(use_glib)', |
| 683 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 696 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| 684 'use_skia%': '<(use_skia)', | 697 'use_skia%': '<(use_skia)', |
| 685 'use_x11%': '<(use_x11)', | 698 'use_x11%': '<(use_x11)', |
| 686 'use_gnome_keyring%': '<(use_gnome_keyring)', | 699 'use_gnome_keyring%': '<(use_gnome_keyring)', |
| 687 'linux_fpic%': '<(linux_fpic)', | 700 'linux_fpic%': '<(linux_fpic)', |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 }], | 1395 }], |
| 1383 ['toolkit_views==1', { | 1396 ['toolkit_views==1', { |
| 1384 'grit_defines': ['-D', 'toolkit_views'], | 1397 'grit_defines': ['-D', 'toolkit_views'], |
| 1385 }], | 1398 }], |
| 1386 ['use_aura==1', { | 1399 ['use_aura==1', { |
| 1387 'grit_defines': ['-D', 'use_aura'], | 1400 'grit_defines': ['-D', 'use_aura'], |
| 1388 }], | 1401 }], |
| 1389 ['use_ash==1', { | 1402 ['use_ash==1', { |
| 1390 'grit_defines': ['-D', 'use_ash'], | 1403 'grit_defines': ['-D', 'use_ash'], |
| 1391 }], | 1404 }], |
| 1405 ['use_wm==1', { |
| 1406 'grit_defines': ['-D', 'use_wm'], |
| 1407 }], |
| 1392 ['use_nss==1', { | 1408 ['use_nss==1', { |
| 1393 'grit_defines': ['-D', 'use_nss'], | 1409 'grit_defines': ['-D', 'use_nss'], |
| 1394 }], | 1410 }], |
| 1395 ['file_manager_extension==1', { | 1411 ['file_manager_extension==1', { |
| 1396 'grit_defines': ['-D', 'file_manager_extension'], | 1412 'grit_defines': ['-D', 'file_manager_extension'], |
| 1397 }], | 1413 }], |
| 1398 ['image_loader_extension==1', { | 1414 ['image_loader_extension==1', { |
| 1399 'grit_defines': ['-D', 'image_loader_extension'], | 1415 'grit_defines': ['-D', 'image_loader_extension'], |
| 1400 }], | 1416 }], |
| 1401 ['remoting==1', { | 1417 ['remoting==1', { |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 }], | 1725 }], |
| 1710 ['ui_compositor_image_transport==1', { | 1726 ['ui_compositor_image_transport==1', { |
| 1711 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'], | 1727 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'], |
| 1712 }], | 1728 }], |
| 1713 ['use_aura==1', { | 1729 ['use_aura==1', { |
| 1714 'defines': ['USE_AURA=1'], | 1730 'defines': ['USE_AURA=1'], |
| 1715 }], | 1731 }], |
| 1716 ['use_ash==1', { | 1732 ['use_ash==1', { |
| 1717 'defines': ['USE_ASH=1'], | 1733 'defines': ['USE_ASH=1'], |
| 1718 }], | 1734 }], |
| 1735 ['use_wm==1', { |
| 1736 'defines': ['USE_WM=1'], |
| 1737 }], |
| 1719 ['use_default_render_theme==1', { | 1738 ['use_default_render_theme==1', { |
| 1720 'defines': ['USE_DEFAULT_RENDER_THEME=1'], | 1739 'defines': ['USE_DEFAULT_RENDER_THEME=1'], |
| 1721 }], | 1740 }], |
| 1722 ['use_libjpeg_turbo==1', { | 1741 ['use_libjpeg_turbo==1', { |
| 1723 'defines': ['USE_LIBJPEG_TURBO=1'], | 1742 'defines': ['USE_LIBJPEG_TURBO=1'], |
| 1724 }], | 1743 }], |
| 1725 ['use_nss==1', { | 1744 ['use_nss==1', { |
| 1726 'defines': ['USE_NSS=1'], | 1745 'defines': ['USE_NSS=1'], |
| 1727 }], | 1746 }], |
| 1728 ['enable_one_click_signin==1', { | 1747 ['enable_one_click_signin==1', { |
| (...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4101 # settings in target dicts. SYMROOT is a special case, because many other | 4120 # settings in target dicts. SYMROOT is a special case, because many other |
| 4102 # Xcode variables depend on it, including variables such as | 4121 # Xcode variables depend on it, including variables such as |
| 4103 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4122 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4104 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4123 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4105 # files to appear (when present) in the UI as actual files and not red | 4124 # files to appear (when present) in the UI as actual files and not red |
| 4106 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4125 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4107 # and therefore SYMROOT, needs to be set at the project level. | 4126 # and therefore SYMROOT, needs to be set at the project level. |
| 4108 'SYMROOT': '<(DEPTH)/xcodebuild', | 4127 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4109 }, | 4128 }, |
| 4110 } | 4129 } |
| OLD | NEW |