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 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 (e.g., for setting 'toolkit_views', | 16 # dict that operate on these variables (e.g., for setting 'toolkit_views', |
17 # we need to have 'chromeos' already set). | 17 # we need to have 'chromeos' already set). |
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 # Disable touch support by default. | 24 # Disable touch support by default. |
25 'touchui%': 0, | 25 'touchui%': 0, |
26 | |
27 # Disable file manager component extension by default. | |
28 'file_manager_extension%': 0, | |
29 }, | 26 }, |
30 # Copy conditionally-set variables out one scope. | 27 # Copy conditionally-set variables out one scope. |
31 'chromeos%': '<(chromeos)', | 28 'chromeos%': '<(chromeos)', |
32 'touchui%': '<(touchui)', | 29 'touchui%': '<(touchui)', |
33 'file_manager_extension%': '<(file_manager_extension)', | |
34 | 30 |
35 # To do a shared build on linux we need to be able to choose between | 31 # To do a shared build on linux we need to be able to choose between |
36 # type static_library and shared_library. We default to doing a static | 32 # type static_library and shared_library. We default to doing a static |
37 # build but you can override this with "gyp -Dlibrary=shared_library" | 33 # build but you can override this with "gyp -Dlibrary=shared_library" |
38 # or you can add the following line (without the #) to | 34 # or you can add the following line (without the #) to |
39 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
40 # to compile as shared by default | 36 # to compile as shared by default |
41 'library%': 'static_library', | 37 'library%': 'static_library', |
42 | 38 |
43 # Compute the architecture that we're building on. | 39 # Compute the architecture that we're building on. |
(...skipping 14 matching lines...) Expand all Loading... |
58 'toolkit_views%': 1, | 54 'toolkit_views%': 1, |
59 }, { | 55 }, { |
60 'toolkit_views%': 0, | 56 'toolkit_views%': 0, |
61 }], | 57 }], |
62 ], | 58 ], |
63 }, | 59 }, |
64 | 60 |
65 # Copy conditionally-set variables out one scope. | 61 # Copy conditionally-set variables out one scope. |
66 'chromeos%': '<(chromeos)', | 62 'chromeos%': '<(chromeos)', |
67 'touchui%': '<(touchui)', | 63 'touchui%': '<(touchui)', |
68 'file_manager_extension%': '<(file_manager_extension)', | |
69 'host_arch%': '<(host_arch)', | 64 'host_arch%': '<(host_arch)', |
70 'library%': '<(library)', | 65 'library%': '<(library)', |
71 'toolkit_views%': '<(toolkit_views)', | 66 'toolkit_views%': '<(toolkit_views)', |
72 | 67 |
73 # Override branding to select the desired branding flavor. | 68 # Override branding to select the desired branding flavor. |
74 'branding%': 'Chromium', | 69 'branding%': 'Chromium', |
75 | 70 |
76 # Override buildtype to select the desired build flavor. | 71 # Override buildtype to select the desired build flavor. |
77 # Dev - everyday build for development/testing | 72 # Dev - everyday build for development/testing |
78 # Official - release build (generally implies additional processing) | 73 # Official - release build (generally implies additional processing) |
(...skipping 10 matching lines...) Expand all Loading... |
89 | 84 |
90 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are | 85 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
91 # are built under a chromium full build (1) or a webkit.org chromium | 86 # are built under a chromium full build (1) or a webkit.org chromium |
92 # build (0). | 87 # build (0). |
93 'inside_chromium_build%': 1, | 88 'inside_chromium_build%': 1, |
94 | 89 |
95 # Set to 1 to enable fast builds. It disables debug info for fastest | 90 # Set to 1 to enable fast builds. It disables debug info for fastest |
96 # compilation. | 91 # compilation. |
97 'fastbuild%': 0, | 92 'fastbuild%': 0, |
98 | 93 |
| 94 # Disable file manager component extension by default. |
| 95 'file_manager_extension%': 0, |
| 96 |
99 # Python version. | 97 # Python version. |
100 'python_ver%': '2.5', | 98 'python_ver%': '2.5', |
101 | 99 |
102 # Set ARM-v7 compilation flags | 100 # Set ARM-v7 compilation flags |
103 'armv7%': 0, | 101 'armv7%': 0, |
104 | 102 |
105 # Set Neon compilation flags (only meaningful if armv7==1). | 103 # Set Neon compilation flags (only meaningful if armv7==1). |
106 'arm_neon%': 1, | 104 'arm_neon%': 1, |
107 | 105 |
108 # The system root for cross-compiles. Default: none. | 106 # The system root for cross-compiles. Default: none. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 # GTK+ and Mac wants Title Case strings | 158 # GTK+ and Mac wants Title Case strings |
161 'use_titlecase_in_grd_files%': 1, | 159 'use_titlecase_in_grd_files%': 1, |
162 }], | 160 }], |
163 | 161 |
164 # Enable some hacks to support Flapper only on Chrome OS. | 162 # Enable some hacks to support Flapper only on Chrome OS. |
165 ['chromeos==1', { | 163 ['chromeos==1', { |
166 'enable_flapper_hacks%': 1, | 164 'enable_flapper_hacks%': 1, |
167 }, { | 165 }, { |
168 'enable_flapper_hacks%': 0, | 166 'enable_flapper_hacks%': 0, |
169 }], | 167 }], |
| 168 |
| 169 # Enable file manager extension by default on Chrome OS. |
| 170 ['chromeos==1', { |
| 171 'file_manager_extension%': 1, |
| 172 }, { |
| 173 'file_manager_extension%': 0, |
| 174 }], |
170 ], | 175 ], |
171 }, | 176 }, |
172 | 177 |
173 # Copy conditionally-set variables out one scope. | 178 # Copy conditionally-set variables out one scope. |
174 'branding%': '<(branding)', | 179 'branding%': '<(branding)', |
175 'buildtype%': '<(buildtype)', | 180 'buildtype%': '<(buildtype)', |
176 'target_arch%': '<(target_arch)', | 181 'target_arch%': '<(target_arch)', |
177 'host_arch%': '<(host_arch)', | 182 'host_arch%': '<(host_arch)', |
178 'toolkit_views%': '<(toolkit_views)', | 183 'toolkit_views%': '<(toolkit_views)', |
179 'use_gnome_keyring%': '<(use_gnome_keyring)', | 184 'use_gnome_keyring%': '<(use_gnome_keyring)', |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1677 # and therefore SYMROOT, needs to be set at the project level. | 1682 # and therefore SYMROOT, needs to be set at the project level. |
1678 'SYMROOT': '<(DEPTH)/xcodebuild', | 1683 'SYMROOT': '<(DEPTH)/xcodebuild', |
1679 }, | 1684 }, |
1680 } | 1685 } |
1681 | 1686 |
1682 # Local Variables: | 1687 # Local Variables: |
1683 # tab-width:2 | 1688 # tab-width:2 |
1684 # indent-tabs-mode:nil | 1689 # indent-tabs-mode:nil |
1685 # End: | 1690 # End: |
1686 # vim: set expandtab tabstop=2 shiftwidth=2: | 1691 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |