Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: build/common.gypi

Issue 295044: Changing target_arch selection in nacl to match chrome.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 5 {
6 'variables': { 6 'variables': {
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific
8 # code, as opposed to external code. This variable is used to control 8 # code, as opposed to external code. This variable is used to control
9 # such things as the set of warnings to enable, and whether warnings are 9 # such things as the set of warnings to enable, and whether warnings are
10 # treated as errors. 10 # treated as errors.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 # Once all vsprops settings are migrated into gyp, this can go away. 43 # Once all vsprops settings are migrated into gyp, this can go away.
44 'msvs_use_common_release%': 1, 44 'msvs_use_common_release%': 1,
45 45
46 # TODO(sgk): eliminate this if possible. 46 # TODO(sgk): eliminate this if possible.
47 # It would be nicer to support this via a setting in 'target_defaults' 47 # It would be nicer to support this via a setting in 'target_defaults'
48 # in chrome/app/locales/locales.gypi overriding the setting in the 48 # in chrome/app/locales/locales.gypi overriding the setting in the
49 # 'Debug' configuration in the 'target_defaults' dict below, 49 # 'Debug' configuration in the 'target_defaults' dict below,
50 # but that doesn't work as we'd like. 50 # but that doesn't work as we'd like.
51 'msvs_debug_link_incremental%': '2', 51 'msvs_debug_link_incremental%': '2',
52 52
53 # Doing this in a sub-dict so that it can be referred to below.
53 # The architecture that we're building for (x86, arm). 54 # The architecture that we're building for (x86, arm).
54 'target_arch%': 'ia32', 55 'variables': {
56 # Compute the architecture that we're building for. Default to the
57 # architecture that we're building on.
58 'conditions': [
59 [ 'OS=="linux"', {
60 # This handles the Linux platforms we generally deal with. Anything
61 # else gets passed through, which probably won't work very well; such
62 # hosts should pass an explicit target_arch to gyp.
63 'target_arch%':
64 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")'
gregoryd 2009/10/21 20:15:07 Will it still work with GYP_DEFINES? I think it's
bradn 2009/10/21 20:23:50 Yes it will still work with GYP_DEFINES.
65 }, { # OS!="linux"
66 'target_arch%': 'ia32',
67 }],
68 ],
69 },
70 'target_arch%': '<(target_arch)',
gregoryd 2009/10/21 20:15:07 gyp question: when <(target_arch) is referred belo
bradn 2009/10/21 20:23:50 This will use the one from the variables section a
55 71
56 'linux2%': 0, 72 'linux2%': 0,
57 73
58 # By default we assume that we are building as part of Chrome 74 # By default we assume that we are building as part of Chrome
59 'nacl_standalone%': 0, 75 'nacl_standalone%': 0,
60 }, 76 },
61 'target_defaults': { 77 'target_defaults': {
62 'include_dirs': [ 78 'include_dirs': [
63 '../..', 79 '../..',
64 ], 80 ],
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 # settings in target dicts. SYMROOT is a special case, because many other 673 # settings in target dicts. SYMROOT is a special case, because many other
658 # Xcode variables depend on it, including variables such as 674 # Xcode variables depend on it, including variables such as
659 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 675 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
660 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 676 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
661 # files to appear (when present) in the UI as actual files and not red 677 # files to appear (when present) in the UI as actual files and not red
662 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 678 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
663 # and therefore SYMROOT, needs to be set at the project level. 679 # and therefore SYMROOT, needs to be set at the project level.
664 'SYMROOT': '<(DEPTH)/xcodebuild', 680 'SYMROOT': '<(DEPTH)/xcodebuild',
665 }, 681 },
666 } 682 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698