summaryrefslogtreecommitdiff
path: root/chromium/breakpad/breakpad_tools.gypi
blob: 4d7736060d8f668edcf9823b15cafee78fc02d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'conditions': [
    ['OS=="linux" or OS=="android"', {
      'variables': {
        'host_arch': '<!(uname -m)',
      },
      'conditions': [
        ['host_arch=="x86_64"', {
          'cflags!': ['-m32', '-march=pentium4', '-msse2', '-mfpmath=sse'],
          'ldflags!': ['-m32'],
          'cflags': ['-O2'],
          'include_dirs!': ['/usr/include32'],
          'conditions': [
            ['target_arch=="ia32" and sysroot!=""', {
              'cflags!': ['--sysroot=<(sysroot)'],
            }],
          ],
        }],
      ],
    }],
    ['OS=="android"', {
      'toolsets': ['host'],
      'defines': ['__ANDROID__'],
    }],
    ['clang==1', {
      'cflags': ['-Wno-tautological-constant-out-of-range-compare'],
      'xcode_settings': {
        'WARNING_CFLAGS': ['-Wno-tautological-constant-out-of-range-compare'],
      },
    }],
  ],
  'include_dirs': [
    'src',
    'src/third_party',
  ],
}