-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.gyp
61 lines (61 loc) · 1.66 KB
/
test.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
{
'variables': {
'gtest_root': '/usr/src/gtest',
'gtest_source': '<(gtest_root)/src',
'gtest_local_root': 'third-party/gtest/',
'gtest_local_source': '<(gtest_local_root)/src',
},
'targets': [{
'target_name': 'googletest',
'type': 'static_library',
'sources': [
'<(gtest_local_source)/gtest-death-test.cc',
'<(gtest_local_source)/gtest-filepath.cc',
'<(gtest_local_source)/gtest-port.cc',
'<(gtest_local_source)/gtest-printers.cc',
'<(gtest_local_source)/gtest-test-part.cc',
'<(gtest_local_source)/gtest-typed-test.cc',
'<(gtest_local_source)/gtest.cc'
],
'copies': [{
'files': [
'<(gtest_source)/gtest-death-test.cc',
'<(gtest_source)/gtest-filepath.cc',
'<(gtest_source)/gtest-port.cc',
'<(gtest_source)/gtest-printers.cc',
'<(gtest_source)/gtest-test-part.cc',
'<(gtest_source)/gtest-typed-test.cc',
'<(gtest_source)/gtest.cc',
],
'destination': '<(gtest_local_source)',
}],
'include_dirs': [
'<(gtest_root)',
'<(gtest_root)/include'
],
'direct_dependent_settings': {
'include_dirs': [
'<(gtest_root)',
'<(gtest_root)/include'
]
},
},
{
'target_name': 'googletest_main',
'type': 'static_library',
'sources': ['<(gtest_local_source)/gtest_main.cc'],
'link_settings': {
'libraries': [
'-lpthread',
]
},
'copies': [{
'files': [
'<(gtest_source)/gtest_main.cc'
],
'destination': '<(gtest_local_source)',
}],
'dependencies': ['googletest'],
'export_dependent_settings': ['googletest']
}]
}