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 30 matching lines...) Expand all Loading... | |
41 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 41 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
42 # This handles the Linux platforms we generally deal with. Anything | 42 # This handles the Linux platforms we generally deal with. Anything |
43 # else gets passed through, which probably won't work very well; suc h | 43 # else gets passed through, which probably won't work very well; suc h |
44 # hosts should pass an explicit target_arch to gyp. | 44 # hosts should pass an explicit target_arch to gyp. |
45 'host_arch%': | 45 'host_arch%': |
46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/")', | 46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/")', |
47 }, { # OS!="linux" | 47 }, { # OS!="linux" |
48 'host_arch%': 'ia32', | 48 'host_arch%': 'ia32', |
49 }], | 49 }], |
50 ], | 50 ], |
51 | |
52 # Whether we're building a ChromeOS build. | |
53 # We set the initial value at this level of nesting so it's available fo r | |
Evan Martin
2010/04/26 22:06:59
will fix before landing
| |
54 # the toolkit_views test below. | |
55 'chromeos%': '0', | |
51 }, | 56 }, |
57 | |
58 # Set default value of toolkit_views on for Windows and Chrome OS. | |
59 # We set it at this level of nesting so the value is available for | |
60 # other conditionals below. | |
61 'conditions': [ | |
62 ['OS=="win" or chromeos==1', { | |
63 'toolkit_views%': 1, | |
64 }, { | |
65 'toolkit_views%': 0, | |
66 }], | |
67 ], | |
68 | |
52 'host_arch%': '<(host_arch)', | 69 'host_arch%': '<(host_arch)', |
53 | 70 |
54 # Default architecture we're building for is the architecture we're | 71 # Default architecture we're building for is the architecture we're |
55 # building on. | 72 # building on. |
56 'target_arch%': '<(host_arch)', | 73 'target_arch%': '<(host_arch)', |
57 | 74 |
58 # We do want to build Chromium with Breakpad support in certain | 75 # We do want to build Chromium with Breakpad support in certain |
59 # situations. I.e. for Chrome bot. | 76 # situations. I.e. for Chrome bot. |
60 'linux_chromium_breakpad%': 0, | 77 'linux_chromium_breakpad%': 0, |
61 # And if we want to dump symbols. | 78 # And if we want to dump symbols. |
62 'linux_chromium_dump_symbols%': 0, | 79 'linux_chromium_dump_symbols%': 0, |
63 # Also see linux_strip_binary below. | 80 # Also see linux_strip_binary below. |
64 | 81 |
65 # By default, Linux does not use views. To turn on views in Linux, | 82 # Copy conditionally-set chromeos variable out one scope. |
66 # set the variable GYP_DEFINES to "toolkit_views=1", or modify | 83 'chromeos%': '<(chromeos)', |
67 # ~/.gyp/include.gypi . | |
68 'toolkit_views%': 0, | |
69 | |
70 # Defaults to a desktop build, overridden via command line/env. | |
71 'chromeos%': 0, | |
72 | 84 |
73 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are | 85 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
74 # 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 |
75 # build (0). | 87 # build (0). |
76 'inside_chromium_build%': 1, | 88 'inside_chromium_build%': 1, |
77 | 89 |
78 # 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 |
79 # compilation. | 91 # compilation. |
80 'fastbuild%': 0, | 92 'fastbuild%': 0, |
81 | 93 |
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1279 # and therefore SYMROOT, needs to be set at the project level. | 1291 # and therefore SYMROOT, needs to be set at the project level. |
1280 'SYMROOT': '<(DEPTH)/xcodebuild', | 1292 'SYMROOT': '<(DEPTH)/xcodebuild', |
1281 }, | 1293 }, |
1282 } | 1294 } |
1283 | 1295 |
1284 # Local Variables: | 1296 # Local Variables: |
1285 # tab-width:2 | 1297 # tab-width:2 |
1286 # indent-tabs-mode:nil | 1298 # indent-tabs-mode:nil |
1287 # End: | 1299 # End: |
1288 # vim: set expandtab tabstop=2 shiftwidth=2: | 1300 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |