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

Side by Side Diff: build/common.gypi

Issue 119057: Adds linux2 variable and change to WidgetGtk to make it compile.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | chrome/chrome.gyp » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 # but that doesn't work as we'd like. 57 # but that doesn't work as we'd like.
58 'msvs_debug_link_incremental%': '2', 58 'msvs_debug_link_incremental%': '2',
59 59
60 # The architecture that we're building on. 60 # The architecture that we're building on.
61 'target_arch%': 'ia32', 61 'target_arch%': 'ia32',
62 62
63 # By default linux does not use views. To turn on views in Linux 63 # By default linux does not use views. To turn on views in Linux
64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify 64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify
65 # ~/.gyp/include.gypi . 65 # ~/.gyp/include.gypi .
66 'toolkit_views%': 0, 66 'toolkit_views%': 0,
67
68 'linux2%': 0,
67 }, 69 },
68 'target_defaults': { 70 'target_defaults': {
69 'conditions': [ 71 'conditions': [
70 ['branding=="Chrome"', { 72 ['branding=="Chrome"', {
71 'defines': ['GOOGLE_CHROME_BUILD'], 73 'defines': ['GOOGLE_CHROME_BUILD'],
72 'conditions': [ 74 'conditions': [
73 ['OS=="linux"', { 75 ['OS=="linux"', {
74 'cflags': [ '-gstabs' ], 76 'cflags': [ '-gstabs' ],
75 }], 77 }],
76 ], 78 ],
77 }, { # else: branding!="Chrome" 79 }, { # else: branding!="Chrome"
78 'defines': ['CHROMIUM_BUILD'], 80 'defines': ['CHROMIUM_BUILD'],
79 }], 81 }],
80 ['toolkit_views==1', { 82 ['toolkit_views==1', {
81 'defines': ['TOOLKIT_VIEWS=1'], 83 'defines': ['TOOLKIT_VIEWS=1'],
82 }], 84 }],
85 ['linux2==1', {
86 'defines': ['LINUX2=1'],
87 }],
83 ['coverage!=0', { 88 ['coverage!=0', {
84 'conditions': [ 89 'conditions': [
85 ['OS=="mac"', { 90 ['OS=="mac"', {
86 'xcode_settings': { 91 'xcode_settings': {
87 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', 92 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES',
88 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', 93 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES',
89 }, 94 },
90 # Add -lgcov for executables, not for static_libraries. 95 # Add -lgcov for executables, not for static_libraries.
91 # This is a delayed conditional. 96 # This is a delayed conditional.
92 'target_conditions': [ 97 'target_conditions': [
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 # settings in target dicts. SYMROOT is a special case, because many other 536 # settings in target dicts. SYMROOT is a special case, because many other
532 # Xcode variables depend on it, including variables such as 537 # Xcode variables depend on it, including variables such as
533 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 538 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
534 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 539 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
535 # files to appear (when present) in the UI as actual files and not red 540 # files to appear (when present) in the UI as actual files and not red
536 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 541 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
537 # and therefore SYMROOT, needs to be set at the project level. 542 # and therefore SYMROOT, needs to be set at the project level.
538 'SYMROOT': '<(DEPTH)/xcodebuild', 543 'SYMROOT': '<(DEPTH)/xcodebuild',
539 }, 544 },
540 } 545 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698