| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'conditions': [ | 6 'conditions': [ |
| 7 ['OS=="linux" or OS=="android"', { | |
| 8 'variables': { | |
| 9 'host_arch': '<!pymod_do_main(detect_host_arch)', | |
| 10 }, | |
| 11 'conditions': [ | |
| 12 ['host_arch=="x86_64"', { | |
| 13 'cflags!': ['-m32', '-march=pentium4', '-msse2', '-mfpmath=sse'], | |
| 14 'ldflags!': ['-m32'], | |
| 15 'cflags': ['-O2'], | |
| 16 'include_dirs!': ['/usr/include32'], | |
| 17 'conditions': [ | |
| 18 ['target_arch=="ia32" and sysroot!=""', { | |
| 19 'cflags!': ['--sysroot=<(sysroot)'], | |
| 20 }], | |
| 21 ], | |
| 22 }], | |
| 23 ], | |
| 24 }], | |
| 25 ['OS=="android"', { | 7 ['OS=="android"', { |
| 26 'toolsets': ['host'], | 8 'toolsets': ['host'], |
| 27 'defines': ['__ANDROID__'], | |
| 28 }], | 9 }], |
| 29 ['clang==1', { | 10 ['clang==1', { |
| 30 'cflags': ['-Wno-tautological-constant-out-of-range-compare'], | 11 'cflags': ['-Wno-tautological-constant-out-of-range-compare'], |
| 31 'xcode_settings': { | 12 'xcode_settings': { |
| 32 'WARNING_CFLAGS': ['-Wno-tautological-constant-out-of-range-compare'], | 13 'WARNING_CFLAGS': ['-Wno-tautological-constant-out-of-range-compare'], |
| 33 }, | 14 }, |
| 34 }], | 15 }], |
| 35 ], | 16 ], |
| 36 'include_dirs': [ | 17 'include_dirs': [ |
| 37 'src', | 18 'src', |
| 38 'src/third_party', | 19 'src/third_party', |
| 39 ], | 20 ], |
| 40 } | 21 } |
| OLD | NEW |