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

Side by Side Diff: build/common.gypi

Issue 199016: linux: improve support for cross-compiling (Closed)
Patch Set: Address review comments Created 11 years, 3 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
« no previous file with comments | « no previous file | build/linux/pkg-config-wrapper » ('j') | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 # The architecture that we're building on. 94 # The architecture that we're building on.
95 'target_arch%': 'ia32', 95 'target_arch%': 'ia32',
96 96
97 # By default linux does not use views. To turn on views in Linux 97 # By default linux does not use views. To turn on views in Linux
98 # set the variable GYP_DEFINES to "toolkit_views=1", or modify 98 # set the variable GYP_DEFINES to "toolkit_views=1", or modify
99 # ~/.gyp/include.gypi . 99 # ~/.gyp/include.gypi .
100 'toolkit_views%': 0, 100 'toolkit_views%': 0,
101 101
102 'chromeos%': 0, 102 'chromeos%': 0,
103 103
104 # The system root for cross-compiles. Default: none.
105 'sysroot%': '',
106
104 # This is the location of the sandbox binary. Chrome looks for this before 107 # This is the location of the sandbox binary. Chrome looks for this before
105 # running the zygote process. If found, and SUID, it will be used to 108 # running the zygote process. If found, and SUID, it will be used to
106 # sandbox the zygote process and, thus, all renderer processes. 109 # sandbox the zygote process and, thus, all renderer processes.
107 'linux_sandbox_path%': '', 110 'linux_sandbox_path%': '',
108 111
109 'conditions': [ 112 'conditions': [
110 ['OS=="linux"', { 113 ['OS=="linux"', {
111 'conditions': [ 114 'conditions': [
112 ['branding=="Chrome" or linux_chromium_breakpad==1', { 115 ['branding=="Chrome" or linux_chromium_breakpad==1', {
113 'linux_breakpad%': 1, 116 'linux_breakpad%': 1,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 ['chromeos==1', { 528 ['chromeos==1', {
526 'cflags': [ 529 'cflags': [
527 '-march=armv7-a', 530 '-march=armv7-a',
528 '-mtune=cortex-a8', 531 '-mtune=cortex-a8',
529 '-mfpu=vfp', 532 '-mfpu=vfp',
530 '-mfloat-abi=softfp', 533 '-mfloat-abi=softfp',
531 ], 534 ],
532 }], 535 }],
533 ], 536 ],
534 }], 537 }],
538 ['sysroot!=""', {
539 'cflags': [
540 '--sysroot=<(sysroot)',
541 ],
542 'ldflags': [
543 '--sysroot=<(sysroot)',
544 ],
545 }],
535 ['no_strict_aliasing==1', { 546 ['no_strict_aliasing==1', {
536 'cflags': [ 547 'cflags': [
537 '-fno-strict-aliasing', 548 '-fno-strict-aliasing',
538 ], 549 ],
539 }], 550 }],
540 ['linux_breakpad==1', { 551 ['linux_breakpad==1', {
541 'cflags': [ '-gstabs' ], 552 'cflags': [ '-gstabs' ],
542 'defines': ['USE_LINUX_BREAKPAD'], 553 'defines': ['USE_LINUX_BREAKPAD'],
543 }], 554 }],
544 ], 555 ],
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 # xcode_settings sections, or better yet, should use non-Xcode-specific 770 # xcode_settings sections, or better yet, should use non-Xcode-specific
760 # settings in target dicts. SYMROOT is a special case, because many other 771 # settings in target dicts. SYMROOT is a special case, because many other
761 # Xcode variables depend on it, including variables such as 772 # Xcode variables depend on it, including variables such as
762 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 773 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
763 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 774 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
764 # files to appear (when present) in the UI as actual files and not red 775 # files to appear (when present) in the UI as actual files and not red
765 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 776 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
766 # and therefore SYMROOT, needs to be set at the project level. 777 # and therefore SYMROOT, needs to be set at the project level.
767 'SYMROOT': '<(DEPTH)/xcodebuild', 778 'SYMROOT': '<(DEPTH)/xcodebuild',
768 }, 779 },
769 } 780 }
OLDNEW
« no previous file with comments | « no previous file | build/linux/pkg-config-wrapper » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698