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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 # A flag to enable or disable our compile-time dependency | 87 # A flag to enable or disable our compile-time dependency |
88 # on gnome-keyring. If that dependency is disabled, no gnome-keyring | 88 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
89 # support will be available. This option is useful | 89 # support will be available. This option is useful |
90 # for Linux distributions. | 90 # for Linux distributions. |
91 ['chromeos==1', { | 91 ['chromeos==1', { |
92 'use_gnome_keyring%': 0, | 92 'use_gnome_keyring%': 0, |
93 }, { | 93 }, { |
94 'use_gnome_keyring%': 1, | 94 'use_gnome_keyring%': 1, |
95 }], | 95 }], |
| 96 |
| 97 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
| 98 # libraries on linux x86-64 and arm. |
| 99 ['host_arch=="ia32"', { |
| 100 'linux_fpic%': 0, |
| 101 }, { |
| 102 'linux_fpic%': 1, |
| 103 }], |
96 ], | 104 ], |
97 | 105 |
98 'host_arch%': '<(host_arch)', | 106 'host_arch%': '<(host_arch)', |
99 | 107 |
100 # Default architecture we're building for is the architecture we're | 108 # Default architecture we're building for is the architecture we're |
101 # building on. | 109 # building on. |
102 'target_arch%': '<(host_arch)', | 110 'target_arch%': '<(host_arch)', |
103 | 111 |
104 # Copy conditionally-set chromeos and touchui variables out one scope. | 112 # Copy conditionally-set chromeos and touchui variables out one scope. |
105 'chromeos%': '<(chromeos)', | 113 'chromeos%': '<(chromeos)', |
106 'touchui%': '<(touchui)', | 114 'touchui%': '<(touchui)', |
107 | 115 |
108 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are | 116 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
109 # are built under a chromium full build (1) or a webkit.org chromium | 117 # are built under a chromium full build (1) or a webkit.org chromium |
110 # build (0). | 118 # build (0). |
111 'inside_chromium_build%': 1, | 119 'inside_chromium_build%': 1, |
112 | 120 |
113 # Set to 1 to enable fast builds. It disables debug info for fastest | 121 # Set to 1 to enable fast builds. It disables debug info for fastest |
114 # compilation. | 122 # compilation. |
115 'fastbuild%': 0, | 123 'fastbuild%': 0, |
116 | 124 |
117 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared | |
118 # libraries on linux x86-64 and arm. | |
119 'linux_fpic%': 0, | |
120 | |
121 # Python version. | 125 # Python version. |
122 'python_ver%': '2.5', | 126 'python_ver%': '2.5', |
123 | 127 |
124 # Set ARM-v7 compilation flags | 128 # Set ARM-v7 compilation flags |
125 'armv7%': 0, | 129 'armv7%': 0, |
126 | 130 |
127 # Set Neon compilation flags (only meaningful if armv7==1). | 131 # Set Neon compilation flags (only meaningful if armv7==1). |
128 'arm_neon%': 1, | 132 'arm_neon%': 1, |
129 | 133 |
130 # The system root for cross-compiles. Default: none. | 134 # The system root for cross-compiles. Default: none. |
(...skipping 16 matching lines...) Expand all Loading... |
147 }, | 151 }, |
148 | 152 |
149 # Define branding and buildtype on the basis of their settings within the | 153 # Define branding and buildtype on the basis of their settings within the |
150 # variables sub-dict above, unless overridden. | 154 # variables sub-dict above, unless overridden. |
151 'branding%': '<(branding)', | 155 'branding%': '<(branding)', |
152 'buildtype%': '<(buildtype)', | 156 'buildtype%': '<(buildtype)', |
153 'target_arch%': '<(target_arch)', | 157 'target_arch%': '<(target_arch)', |
154 'host_arch%': '<(host_arch)', | 158 'host_arch%': '<(host_arch)', |
155 'toolkit_views%': '<(toolkit_views)', | 159 'toolkit_views%': '<(toolkit_views)', |
156 'use_gnome_keyring%': '<(use_gnome_keyring)', | 160 'use_gnome_keyring%': '<(use_gnome_keyring)', |
| 161 'linux_fpic%': '<(linux_fpic)', |
157 'chromeos%': '<(chromeos)', | 162 'chromeos%': '<(chromeos)', |
158 'touchui%': '<(touchui)', | 163 'touchui%': '<(touchui)', |
159 'inside_chromium_build%': '<(inside_chromium_build)', | 164 'inside_chromium_build%': '<(inside_chromium_build)', |
160 'fastbuild%': '<(fastbuild)', | 165 'fastbuild%': '<(fastbuild)', |
161 'linux_fpic%': '<(linux_fpic)', | 166 'linux_fpic%': '<(linux_fpic)', |
162 'python_ver%': '<(python_ver)', | 167 'python_ver%': '<(python_ver)', |
163 'armv7%': '<(armv7)', | 168 'armv7%': '<(armv7)', |
164 'arm_neon%': '<(arm_neon)', | 169 'arm_neon%': '<(arm_neon)', |
165 'sysroot%': '<(sysroot)', | 170 'sysroot%': '<(sysroot)', |
166 'disable_sse2%': '<(disable_sse2)', | 171 'disable_sse2%': '<(disable_sse2)', |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 # and therefore SYMROOT, needs to be set at the project level. | 1491 # and therefore SYMROOT, needs to be set at the project level. |
1487 'SYMROOT': '<(DEPTH)/xcodebuild', | 1492 'SYMROOT': '<(DEPTH)/xcodebuild', |
1488 }, | 1493 }, |
1489 } | 1494 } |
1490 | 1495 |
1491 # Local Variables: | 1496 # Local Variables: |
1492 # tab-width:2 | 1497 # tab-width:2 |
1493 # indent-tabs-mode:nil | 1498 # indent-tabs-mode:nil |
1494 # End: | 1499 # End: |
1495 # vim: set expandtab tabstop=2 shiftwidth=2: | 1500 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |