OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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': { | 9 'variables': { |
10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 # To do a shared build on linux we need to be able to choose between | 67 # To do a shared build on linux we need to be able to choose between |
68 # type static_library and shared_library. We default to doing a static | 68 # type static_library and shared_library. We default to doing a static |
69 # build but you can override this with "gyp -Dlibrary=shared_library" | 69 # build but you can override this with "gyp -Dlibrary=shared_library" |
70 # or you can add the following line (without the #) to | 70 # or you can add the following line (without the #) to |
71 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 71 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
72 # to compile as shared by default | 72 # to compile as shared by default |
73 'library%': 'static_library', | 73 'library%': 'static_library', |
74 }, | 74 }, |
75 | 75 |
76 # Set default value of toolkit_views on for Windows, Chrome OS | 76 # We set those at this level of nesting so the values are available for |
77 # and the touch UI. | |
78 # We set it at this level of nesting so the value is available for | |
79 # other conditionals below. | 77 # other conditionals below. |
80 'conditions': [ | 78 'conditions': [ |
| 79 # Set default value of toolkit_views on for Windows, Chrome OS |
| 80 # and the touch UI. |
81 ['OS=="win" or chromeos==1 or touchui==1', { | 81 ['OS=="win" or chromeos==1 or touchui==1', { |
82 'toolkit_views%': 1, | 82 'toolkit_views%': 1, |
83 }, { | 83 }, { |
84 'toolkit_views%': 0, | 84 'toolkit_views%': 0, |
85 }], | 85 }], |
| 86 |
| 87 # A flag to enable or disable our compile-time dependency |
| 88 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
| 89 # support will be available. This option is useful |
| 90 # for Linux distributions. |
| 91 ['chromeos==1', { |
| 92 'use_gnome_keyring%': 0, |
| 93 }, { |
| 94 'use_gnome_keyring%': 1, |
| 95 }], |
86 ], | 96 ], |
87 | 97 |
88 'host_arch%': '<(host_arch)', | 98 'host_arch%': '<(host_arch)', |
89 | 99 |
90 # Default architecture we're building for is the architecture we're | 100 # Default architecture we're building for is the architecture we're |
91 # building on. | 101 # building on. |
92 'target_arch%': '<(host_arch)', | 102 'target_arch%': '<(host_arch)', |
93 | 103 |
94 # Copy conditionally-set chromeos and touchui variables out one scope. | 104 # Copy conditionally-set chromeos and touchui variables out one scope. |
95 'chromeos%': '<(chromeos)', | 105 'chromeos%': '<(chromeos)', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 'component%': '<(library)', | 146 'component%': '<(library)', |
137 }, | 147 }, |
138 | 148 |
139 # Define branding and buildtype on the basis of their settings within the | 149 # Define branding and buildtype on the basis of their settings within the |
140 # variables sub-dict above, unless overridden. | 150 # variables sub-dict above, unless overridden. |
141 'branding%': '<(branding)', | 151 'branding%': '<(branding)', |
142 'buildtype%': '<(buildtype)', | 152 'buildtype%': '<(buildtype)', |
143 'target_arch%': '<(target_arch)', | 153 'target_arch%': '<(target_arch)', |
144 'host_arch%': '<(host_arch)', | 154 'host_arch%': '<(host_arch)', |
145 'toolkit_views%': '<(toolkit_views)', | 155 'toolkit_views%': '<(toolkit_views)', |
| 156 'use_gnome_keyring%': '<(use_gnome_keyring)', |
146 'chromeos%': '<(chromeos)', | 157 'chromeos%': '<(chromeos)', |
147 'touchui%': '<(touchui)', | 158 'touchui%': '<(touchui)', |
148 'inside_chromium_build%': '<(inside_chromium_build)', | 159 'inside_chromium_build%': '<(inside_chromium_build)', |
149 'fastbuild%': '<(fastbuild)', | 160 'fastbuild%': '<(fastbuild)', |
150 'linux_fpic%': '<(linux_fpic)', | 161 'linux_fpic%': '<(linux_fpic)', |
151 'python_ver%': '<(python_ver)', | 162 'python_ver%': '<(python_ver)', |
152 'armv7%': '<(armv7)', | 163 'armv7%': '<(armv7)', |
153 'arm_neon%': '<(arm_neon)', | 164 'arm_neon%': '<(arm_neon)', |
154 'sysroot%': '<(sysroot)', | 165 'sysroot%': '<(sysroot)', |
155 'disable_sse2%': '<(disable_sse2)', | 166 'disable_sse2%': '<(disable_sse2)', |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 # and therefore SYMROOT, needs to be set at the project level. | 1453 # and therefore SYMROOT, needs to be set at the project level. |
1443 'SYMROOT': '<(DEPTH)/xcodebuild', | 1454 'SYMROOT': '<(DEPTH)/xcodebuild', |
1444 }, | 1455 }, |
1445 } | 1456 } |
1446 | 1457 |
1447 # Local Variables: | 1458 # Local Variables: |
1448 # tab-width:2 | 1459 # tab-width:2 |
1449 # indent-tabs-mode:nil | 1460 # indent-tabs-mode:nil |
1450 # End: | 1461 # End: |
1451 # vim: set expandtab tabstop=2 shiftwidth=2: | 1462 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |