OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 17 matching lines...) Expand all Loading... |
28 # Override buildtype to select the desired build flavor. | 28 # Override buildtype to select the desired build flavor. |
29 # Dev - everyday build for development/testing | 29 # Dev - everyday build for development/testing |
30 # Official - release build (generally implies additional processing) | 30 # Official - release build (generally implies additional processing) |
31 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 31 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
32 # conversion is done), some of the things which are now controlled by | 32 # conversion is done), some of the things which are now controlled by |
33 # 'branding', such as symbol generation, will need to be refactored based | 33 # 'branding', such as symbol generation, will need to be refactored based |
34 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official | 34 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official |
35 # builds). | 35 # builds). |
36 'buildtype%': 'Dev', | 36 'buildtype%': 'Dev', |
37 | 37 |
38 # The architecture that we're building on. | 38 # Compute the architecture that we're building for. Default to the |
39 'target_arch%': 'ia32', | 39 # architecture that we're building on. |
| 40 'conditions': [ |
| 41 [ 'OS=="linux"', { |
| 42 # This handles the Linux platforms we generally deal with. Anything |
| 43 # else gets passed through, which probably won't work very well; such |
| 44 # hosts should pass an explicit target_arch to gyp. |
| 45 'target_arch%': |
| 46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")' |
| 47 }, { # OS!="linux" |
| 48 'target_arch%': 'ia32', |
| 49 }], |
| 50 ], |
40 | 51 |
41 # We do want to build Chromium with Breakpad support in certain | 52 # We do want to build Chromium with Breakpad support in certain |
42 # situations. I.e. for Chrome bot. | 53 # situations. I.e. for Chrome bot. |
43 'linux_chromium_breakpad%': 0, | 54 'linux_chromium_breakpad%': 0, |
44 # And if we want to dump symbols. | 55 # And if we want to dump symbols. |
45 'linux_chromium_dump_symbols%': 0, | 56 'linux_chromium_dump_symbols%': 0, |
46 # Also see linux_strip_binary below. | 57 # Also see linux_strip_binary below. |
47 | 58 |
48 # By default, Linux does not use views. To turn on views in Linux, | 59 # By default, Linux does not use views. To turn on views in Linux, |
49 # set the variable GYP_DEFINES to "toolkit_views=1", or modify | 60 # set the variable GYP_DEFINES to "toolkit_views=1", or modify |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 # and therefore SYMROOT, needs to be set at the project level. | 929 # and therefore SYMROOT, needs to be set at the project level. |
919 'SYMROOT': '<(DEPTH)/xcodebuild', | 930 'SYMROOT': '<(DEPTH)/xcodebuild', |
920 }, | 931 }, |
921 } | 932 } |
922 | 933 |
923 # Local Variables: | 934 # Local Variables: |
924 # tab-width:2 | 935 # tab-width:2 |
925 # indent-tabs-mode:nil | 936 # indent-tabs-mode:nil |
926 # End: | 937 # End: |
927 # vim: set expandtab tabstop=2 shiftwidth=2: | 938 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |