summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/google-breakpad/src/tools/mac/dump_syms/moz.build
blob: 99ae82aa7ff0ec1a71ab0e23dc3536ba601ea5b6 (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
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

HOST_SOURCES += [
    'dump_syms_tool.cc',
]

HOST_CXXFLAGS += [
    '-O2',
    '-g',
    '-pthread',
    '-stdlib=libc++',
]

# Order matters here, but HOST_USE_LIBS must be sorted.
HOST_USE_LIBS += [
    'host_breakpad_mac_common_s',
]
HOST_USE_LIBS += [
    'host_breakpad_common_s',
    'host_breakpad_dwarf_s',
]

# The HostProgram template may append 'host_stdc++compat' to
# HOST_USE_LIBS, which needs to appear after the entries above.
HostProgram('dump_syms')

LOCAL_INCLUDES += [
    '../../../common/mac',
]

if CONFIG['HOST_OS_ARCH'] != 'Darwin':
    HOST_CXXFLAGS += [
        '-I%s/toolkit/crashreporter/google-breakpad/src/third_party/mac_headers/' % TOPSRCDIR,
    ]

include('/toolkit/crashreporter/crashreporter.mozbuild')