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

Side by Side Diff: build/common.gypi

Issue 3135001: Enable -fPIC by default on x64 (Closed)
Patch Set: . Created 10 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 | chrome/chrome_tests.gypi » ('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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are 98 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
99 # are built under a chromium full build (1) or a webkit.org chromium 99 # are built under a chromium full build (1) or a webkit.org chromium
100 # build (0). 100 # build (0).
101 'inside_chromium_build%': 1, 101 'inside_chromium_build%': 1,
102 102
103 # Set to 1 to enable fast builds. It disables debug info for fastest 103 # Set to 1 to enable fast builds. It disables debug info for fastest
104 # compilation. 104 # compilation.
105 'fastbuild%': 0, 105 'fastbuild%': 0,
106 106
107 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared
108 # libraries on linux x86-64 and arm.
109 'linux_fpic%': 0,
110
111 # Python version. 107 # Python version.
112 'python_ver%': '2.5', 108 'python_ver%': '2.5',
113 109
114 # Set ARM-v7 compilation flags 110 # Set ARM-v7 compilation flags
115 'armv7%': 0, 111 'armv7%': 0,
116 112
117 # Set Neon compilation flags (only meaningful if armv7==1). 113 # Set Neon compilation flags (only meaningful if armv7==1).
118 'arm_neon%': 1, 114 'arm_neon%': 1,
119 115
120 # The system root for cross-compiles. Default: none. 116 # The system root for cross-compiles. Default: none.
(...skipping 19 matching lines...) Expand all
140 # variables sub-dict above, unless overridden. 136 # variables sub-dict above, unless overridden.
141 'branding%': '<(branding)', 137 'branding%': '<(branding)',
142 'buildtype%': '<(buildtype)', 138 'buildtype%': '<(buildtype)',
143 'target_arch%': '<(target_arch)', 139 'target_arch%': '<(target_arch)',
144 'host_arch%': '<(host_arch)', 140 'host_arch%': '<(host_arch)',
145 'toolkit_views%': '<(toolkit_views)', 141 'toolkit_views%': '<(toolkit_views)',
146 'chromeos%': '<(chromeos)', 142 'chromeos%': '<(chromeos)',
147 'touchui%': '<(touchui)', 143 'touchui%': '<(touchui)',
148 'inside_chromium_build%': '<(inside_chromium_build)', 144 'inside_chromium_build%': '<(inside_chromium_build)',
149 'fastbuild%': '<(fastbuild)', 145 'fastbuild%': '<(fastbuild)',
150 'linux_fpic%': '<(linux_fpic)',
151 'python_ver%': '<(python_ver)', 146 'python_ver%': '<(python_ver)',
152 'armv7%': '<(armv7)', 147 'armv7%': '<(armv7)',
153 'arm_neon%': '<(arm_neon)', 148 'arm_neon%': '<(arm_neon)',
154 'sysroot%': '<(sysroot)', 149 'sysroot%': '<(sysroot)',
155 'disable_sse2%': '<(disable_sse2)', 150 'disable_sse2%': '<(disable_sse2)',
156 'remoting%': '<(remoting)', 151 'remoting%': '<(remoting)',
157 'library%': '<(library)', 152 'library%': '<(library)',
158 'component%': '<(component)', 153 'component%': '<(component)',
159 154
160 # The release channel that this build targets. This is used to restrict 155 # The release channel that this build targets. This is used to restrict
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 'cflags': [ '-mfpu=neon', ], 1076 'cflags': [ '-mfpu=neon', ],
1082 }, { 1077 }, {
1083 'cflags': [ '-mfpu=<(arm_fpu)', ], 1078 'cflags': [ '-mfpu=<(arm_fpu)', ],
1084 }] 1079 }]
1085 ], 1080 ],
1086 }], 1081 }],
1087 ], 1082 ],
1088 }], 1083 }],
1089 ], 1084 ],
1090 }], 1085 }],
1091 ['linux_fpic==1', { 1086 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', {
1092 'cflags': [ 1087 'cflags': [
1093 '-fPIC', 1088 '-fPIC',
1094 ], 1089 ],
1095 }], 1090 }],
1096 ['sysroot!=""', { 1091 ['sysroot!=""', {
1097 'target_conditions': [ 1092 'target_conditions': [
1098 ['_toolset=="target"', { 1093 ['_toolset=="target"', {
1099 'cflags': [ 1094 'cflags': [
1100 '--sysroot=<(sysroot)', 1095 '--sysroot=<(sysroot)',
1101 ], 1096 ],
(...skipping 11 matching lines...) Expand all
1113 'cflags': [ '-g' ], 1108 'cflags': [ '-g' ],
1114 'defines': ['USE_LINUX_BREAKPAD'], 1109 'defines': ['USE_LINUX_BREAKPAD'],
1115 }], 1110 }],
1116 ['linux_use_seccomp_sandbox==1 and buildtype!="Official"', { 1111 ['linux_use_seccomp_sandbox==1 and buildtype!="Official"', {
1117 'defines': ['USE_SECCOMP_SANDBOX'], 1112 'defines': ['USE_SECCOMP_SANDBOX'],
1118 }], 1113 }],
1119 ['library=="shared_library"', { 1114 ['library=="shared_library"', {
1120 # When building with shared libraries, remove the visiblity-hiding 1115 # When building with shared libraries, remove the visiblity-hiding
1121 # flag. 1116 # flag.
1122 'cflags!': [ '-fvisibility=hidden' ], 1117 'cflags!': [ '-fvisibility=hidden' ],
1123 'conditions': [
1124 ['target_arch=="x64" or target_arch=="arm"', {
1125 # Shared libraries need -fPIC on x86-64 and arm
1126 'cflags': ['-fPIC']
1127 }]
1128 ],
1129 }], 1118 }],
1130 ['linux_use_heapchecker==1', { 1119 ['linux_use_heapchecker==1', {
1131 'variables': {'linux_use_tcmalloc%': 1}, 1120 'variables': {'linux_use_tcmalloc%': 1},
1132 }], 1121 }],
1133 ['linux_use_tcmalloc==0', { 1122 ['linux_use_tcmalloc==0', {
1134 'defines': ['NO_TCMALLOC'], 1123 'defines': ['NO_TCMALLOC'],
1135 }], 1124 }],
1136 ['linux_use_heapchecker==0', { 1125 ['linux_use_heapchecker==0', {
1137 'defines': ['NO_HEAPCHECKER'], 1126 'defines': ['NO_HEAPCHECKER'],
1138 }], 1127 }],
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 # and therefore SYMROOT, needs to be set at the project level. 1432 # and therefore SYMROOT, needs to be set at the project level.
1444 'SYMROOT': '<(DEPTH)/xcodebuild', 1433 'SYMROOT': '<(DEPTH)/xcodebuild',
1445 }, 1434 },
1446 } 1435 }
1447 1436
1448 # Local Variables: 1437 # Local Variables:
1449 # tab-width:2 1438 # tab-width:2
1450 # indent-tabs-mode:nil 1439 # indent-tabs-mode:nil
1451 # End: 1440 # End:
1452 # vim: set expandtab tabstop=2 shiftwidth=2: 1441 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698