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