OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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. |
(...skipping 20 matching lines...) Expand all Loading... |
31 # 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 |
32 # 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 |
33 # build but you can override this with "gyp -Dlibrary=shared_library" | 33 # build but you can override this with "gyp -Dlibrary=shared_library" |
34 # or you can add the following line (without the #) to | 34 # or you can add the following line (without the #) to |
35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
36 # to compile as shared by default | 36 # to compile as shared by default |
37 'library%': 'static_library', | 37 'library%': 'static_library', |
38 | 38 |
39 # Compute the architecture that we're building on. | 39 # Compute the architecture that we're building on. |
40 'conditions': [ | 40 'conditions': [ |
41 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 41 [ 'OS=="win" or OS=="mac", { |
| 42 'host_arch%': 'ia32', |
| 43 }, { |
42 # This handles the Unix platforms for which there is some support. | 44 # This handles the Unix platforms for which there is some support. |
43 # Anything else gets passed through, which probably won't work very | 45 # Anything else gets passed through, which probably won't work very |
44 # well; such hosts should pass an explicit target_arch to gyp. | 46 # well; such hosts should pass an explicit target_arch to gyp. |
45 'host_arch%': | 47 'host_arch%': |
46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 48 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
47 'os_nix%': 1, | |
48 }, { # OS=="win" or OS=="mac" | |
49 'host_arch%': 'ia32', | |
50 'os_nix%': 0, | |
51 }], | 49 }], |
52 | 50 |
53 # Set default value of toolkit_views on for Windows, Chrome OS | 51 # Set default value of toolkit_views on for Windows, Chrome OS |
54 # and the touch UI. | 52 # and the touch UI. |
55 ['OS=="win" or chromeos==1 or touchui==1', { | 53 ['OS=="win" or chromeos==1 or touchui==1', { |
56 'toolkit_views%': 1, | 54 'toolkit_views%': 1, |
57 }, { | 55 }, { |
58 'toolkit_views%': 0, | 56 'toolkit_views%': 0, |
59 }], | 57 }], |
60 ], | 58 ], |
61 }, | 59 }, |
62 | 60 |
63 # Copy conditionally-set variables out one scope. | 61 # Copy conditionally-set variables out one scope. |
64 'chromeos%': '<(chromeos)', | 62 'chromeos%': '<(chromeos)', |
65 'touchui%': '<(touchui)', | 63 'touchui%': '<(touchui)', |
66 'host_arch%': '<(host_arch)', | 64 'host_arch%': '<(host_arch)', |
67 'library%': '<(library)', | 65 'library%': '<(library)', |
68 'toolkit_views%': '<(toolkit_views)', | 66 'toolkit_views%': '<(toolkit_views)', |
69 'os_nix%': '<(os_nix)', | |
70 | 67 |
71 # Override branding to select the desired branding flavor. | 68 # Override branding to select the desired branding flavor. |
72 'branding%': 'Chromium', | 69 'branding%': 'Chromium', |
73 | 70 |
74 # Override buildtype to select the desired build flavor. | 71 # Override buildtype to select the desired build flavor. |
75 # Dev - everyday build for development/testing | 72 # Dev - everyday build for development/testing |
76 # Official - release build (generally implies additional processing) | 73 # Official - release build (generally implies additional processing) |
77 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 74 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
78 # conversion is done), some of the things which are now controlled by | 75 # conversion is done), some of the things which are now controlled by |
79 # 'branding', such as symbol generation, will need to be refactored based | 76 # 'branding', such as symbol generation, will need to be refactored based |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 'p2p_apis%': 1, | 134 'p2p_apis%': 1, |
138 | 135 |
139 # If this is set, the clang plugins used on the buildbot will be used. | 136 # If this is set, the clang plugins used on the buildbot will be used. |
140 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 137 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
141 # This causes 'clang_chrome_plugins_flags' to be set. | 138 # This causes 'clang_chrome_plugins_flags' to be set. |
142 # Has no effect if 'clang' is not set as well. | 139 # Has no effect if 'clang' is not set as well. |
143 'clang_use_chrome_plugins%': 0, | 140 'clang_use_chrome_plugins%': 0, |
144 | 141 |
145 'conditions': [ | 142 'conditions': [ |
146 # A flag for POSIX platforms | 143 # A flag for POSIX platforms |
147 ['os_nix==1 or OS=="mac"', { | 144 ['OS=="win"', { |
| 145 'os_posix%': 0, |
| 146 }, { |
148 'os_posix%': 1, | 147 'os_posix%': 1, |
149 }, { | |
150 'os_posix%': 0, | |
151 }], | 148 }], |
152 | 149 |
153 # Flags to use Gtk and X11 on non-Mac POSIX platforms | 150 # Flags to use Gtk and X11 on non-Mac POSIX platforms |
154 ['os_nix==1', { | 151 ['OS=="win" or OS=="mac"', { |
| 152 'toolkit_uses_gtk%': 0, |
| 153 'use_x11%': 0, |
| 154 }, { |
155 'toolkit_uses_gtk%': 1, | 155 'toolkit_uses_gtk%': 1, |
156 'use_x11%': 1, | 156 'use_x11%': 1, |
157 }, { | |
158 'toolkit_uses_gtk%': 0, | |
159 'use_x11%': 0, | |
160 }], | 157 }], |
161 | 158 |
162 # A flag to enable or disable our compile-time dependency | 159 # A flag to enable or disable our compile-time dependency |
163 # on gnome-keyring. If that dependency is disabled, no gnome-keyring | 160 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
164 # support will be available. This option is useful | 161 # support will be available. This option is useful |
165 # for Linux distributions. | 162 # for Linux distributions. |
166 ['chromeos==1', { | 163 ['chromeos==1', { |
167 'use_gnome_keyring%': 0, | 164 'use_gnome_keyring%': 0, |
168 }, { | 165 }, { |
169 'use_gnome_keyring%': 1, | 166 'use_gnome_keyring%': 1, |
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 # and therefore SYMROOT, needs to be set at the project level. | 1738 # and therefore SYMROOT, needs to be set at the project level. |
1742 'SYMROOT': '<(DEPTH)/xcodebuild', | 1739 'SYMROOT': '<(DEPTH)/xcodebuild', |
1743 }, | 1740 }, |
1744 } | 1741 } |
1745 | 1742 |
1746 # Local Variables: | 1743 # Local Variables: |
1747 # tab-width:2 | 1744 # tab-width:2 |
1748 # indent-tabs-mode:nil | 1745 # indent-tabs-mode:nil |
1749 # End: | 1746 # End: |
1750 # vim: set expandtab tabstop=2 shiftwidth=2: | 1747 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |