This repository has been archived by the owner on Mar 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
dump_syms.gyp
98 lines (97 loc) · 2.45 KB
/
dump_syms.gyp
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- Mode: python; indent-tabs-mode: nil; -*-
{
'variables': {
'have_tbb': '<!(python wrap-pkg-config.py --atleast-version=2.2 tbb)',
},
'target_defaults': {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x',
'WARNING_CFLAGS': ['-Wall'],
'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
},
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '1',
'WarnAsError': 'true',
'Optimization': '0',
#'AdditionalOptions': ['/MP'],
},
'VCLinkerTool': {
'SubSystem': '1',
},
},
'conditions': [
['OS=="linux"', {
'cflags': [
'-g',
'-Wall',
'-Werror',
'-std=gnu++0x',
],
}],
['<(have_tbb)==1', {
'cflags': [
'<!@(pkg-config --cflags tbb)',
],
'libraries': [
'<!@(pkg-config --libs tbb)',
],
'defines': [
'HAVE_TBB',
],
}],
] # conditions
}, # target_defaults
'targets': [
{
'target_name': 'dump_syms',
'type': 'executable',
'sources': [
'dump_syms.cpp',
],
'dependencies': [
'pdb_parser',
],
},
{
'target_name': 'pdb_parser',
'type': 'static_library',
'sources': [
'PDBParser.cpp',
'utils.cpp',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)',
],
},
},
{
'target_name': 'dump_syms_unittest',
'type': 'executable',
'sources': [
'testing/dump_syms_unittest.cpp',
],
'conditions': [
['OS=="win"', {
'sources': [
'testing/memstream_win.cpp',
],
}],
['OS=="mac"', {
'sources': [
'testing/memstream_mac.c',
],
}],
],
'include_dirs': [
'testing',
],
'dependencies': [
'<(DEPTH)/testing/testing.gyp:gmock',
'<(DEPTH)/testing/testing.gyp:gtest',
'pdb_parser',
],
},
]
}