Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 '-Wl,--icf=safe', | 153 '-Wl,--icf=safe', |
| 154 ], | 154 ], |
| 155 }], | 155 }], |
| 156 ['target_arch=="arm" and armv7==1', { | 156 ['target_arch=="arm" and armv7==1', { |
| 157 'cflags': [ | 157 'cflags': [ |
| 158 '-march=armv7-a', | 158 '-march=armv7-a', |
| 159 '-mtune=cortex-a8', | 159 '-mtune=cortex-a8', |
| 160 '-mfpu=vfp3', | 160 '-mfpu=vfp3', |
| 161 ], | 161 ], |
| 162 }], | 162 }], |
| 163 ['target_arch=="mipsel"', { | |
|
Jakob Kummerow
2013/02/12 11:59:39
Are you sure this block of changes is necessary? W
Paul Lind
2013/02/25 16:23:22
Duplicated block was removed.
| |
| 164 'cflags': [ | |
| 165 '-EL', | |
| 166 ], | |
| 167 'conditions': [ | |
| 168 ['mips_arch_variant=="mips32r2"', { | |
| 169 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | |
| 170 }], | |
| 171 ['mips_arch_variant=="loongson"', { | |
| 172 'cflags': ['-mips3', '-Wa,-mips3'], | |
| 173 }, { | |
| 174 'cflags': ['-mips32', '-Wa,-mips32'], | |
| 175 }], | |
| 176 ], | |
| 177 'ldflags': [ | |
| 178 '-EL', | |
| 179 ], | |
| 180 }], | |
| 163 # NOTE: The stlport header include paths below are specified in | 181 # NOTE: The stlport header include paths below are specified in |
| 164 # cflags rather than include_dirs because they need to come | 182 # cflags rather than include_dirs because they need to come |
| 165 # after include_dirs. Think of them like system headers, but | 183 # after include_dirs. Think of them like system headers, but |
| 166 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 | 184 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
| 167 # toolchain (circa Gingerbread) will exhibit strange errors. | 185 # toolchain (circa Gingerbread) will exhibit strange errors. |
| 168 # The include ordering here is important; change with caution. | 186 # The include ordering here is important; change with caution. |
| 169 ['use_system_stlport==0', { | 187 ['use_system_stlport==0', { |
| 170 'cflags': [ | 188 'cflags': [ |
| 171 '-I<(android_stlport_include)', | 189 '-I<(android_stlport_include)', |
| 172 ], | 190 ], |
| 173 'conditions': [ | 191 'conditions': [ |
| 174 ['target_arch=="arm" and armv7==1', { | 192 ['target_arch=="arm" and armv7==1', { |
| 175 'ldflags': [ | 193 'ldflags': [ |
| 176 '-L<(android_stlport_libs)/armeabi-v7a', | 194 '-L<(android_stlport_libs)/armeabi-v7a', |
| 177 ], | 195 ], |
| 178 }], | 196 }], |
| 179 ['target_arch=="arm" and armv7==0', { | 197 ['target_arch=="arm" and armv7==0', { |
| 180 'ldflags': [ | 198 'ldflags': [ |
| 181 '-L<(android_stlport_libs)/armeabi', | 199 '-L<(android_stlport_libs)/armeabi', |
| 182 ], | 200 ], |
| 183 }], | 201 }], |
| 202 ['target_arch=="mipsel"', { | |
| 203 'ldflags': [ | |
| 204 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/mips', | |
| 205 ], | |
| 206 }], | |
| 184 ['target_arch=="ia32"', { | 207 ['target_arch=="ia32"', { |
| 185 'ldflags': [ | 208 'ldflags': [ |
| 186 '-L<(android_stlport_libs)/x86', | 209 '-L<(android_stlport_libs)/x86', |
| 187 ], | 210 ], |
| 188 }], | 211 }], |
| 189 ], | 212 ], |
| 190 }], | 213 }], |
| 191 ['target_arch=="ia32"', { | 214 ['target_arch=="ia32"', { |
| 192 # The x86 toolchain currently has problems with stack-protector. | 215 # The x86 toolchain currently has problems with stack-protector. |
| 193 'cflags!': [ | 216 'cflags!': [ |
| 194 '-fstack-protector', | 217 '-fstack-protector', |
| 195 ], | 218 ], |
| 196 'cflags': [ | 219 'cflags': [ |
| 197 '-fno-stack-protector', | 220 '-fno-stack-protector', |
| 198 ], | 221 ], |
| 199 }], | 222 }], |
| 223 ['target_arch=="mipsel"', { | |
| 224 # The mips toolchain currently has problems with stack-protector. | |
| 225 'cflags!': [ | |
| 226 '-fstack-protector', | |
| 227 '-U__linux__' | |
| 228 ], | |
| 229 'cflags': [ | |
| 230 '-fno-stack-protector', | |
| 231 ], | |
| 232 }], | |
| 200 ], | 233 ], |
| 201 'target_conditions': [ | 234 'target_conditions': [ |
| 202 ['_type=="executable"', { | 235 ['_type=="executable"', { |
| 203 'ldflags': [ | 236 'ldflags': [ |
| 204 '-Bdynamic', | 237 '-Bdynamic', |
| 205 '-Wl,-dynamic-linker,/system/bin/linker', | 238 '-Wl,-dynamic-linker,/system/bin/linker', |
| 206 '-Wl,--gc-sections', | 239 '-Wl,--gc-sections', |
| 207 '-Wl,-z,nocopyreloc', | 240 '-Wl,-z,nocopyreloc', |
| 208 # crtbegin_dynamic.o should be the last item in ldflags. | 241 # crtbegin_dynamic.o should be the last item in ldflags. |
| 209 '<(android_lib)/crtbegin_dynamic.o', | 242 '<(android_lib)/crtbegin_dynamic.o', |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 235 'ldflags!': [ | 268 'ldflags!': [ |
| 236 '-Wl,-z,noexecstack', | 269 '-Wl,-z,noexecstack', |
| 237 '-Wl,--gc-sections', | 270 '-Wl,--gc-sections', |
| 238 '-Wl,-O1', | 271 '-Wl,-O1', |
| 239 '-Wl,--as-needed', | 272 '-Wl,--as-needed', |
| 240 ], | 273 ], |
| 241 }], | 274 }], |
| 242 ], # target_conditions | 275 ], # target_conditions |
| 243 }, # target_defaults | 276 }, # target_defaults |
| 244 } | 277 } |
| OLD | NEW |