-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkc.gyp
63 lines (63 loc) · 1.32 KB
/
kc.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
{
'targets': [{
'target_name': 'kaleidoscope++',
'type': 'static_library',
'include_dirs': [
'src',
],
'sources': [
'src/lexer.cpp',
],
'cflags': [
'-std=c++11',
'-Werror',
],
'link_settings': {
'libraries': [
'-lstdc++',
]
},
},{
'target_name': 'kc',
'type': 'executable',
'sources': [
'src/main.cc',
],
'cflags': [
'-std=c++11',
'-Werror',
],
'dependencies': [
'test.gyp:googletest_main',
'kaleidoscope++',
],
'link_settings': {
'libraries': [
'-lstdc++',
]
},
}, {
'target_name': 'tests/test',
'type': 'executable',
'cflags': [
'-std=c++11',
'-Werror',
],
'link_settings': {
'libraries': [
'-lstdc++',
]
},
'dependencies': [
'test.gyp:googletest_main',
'kaleidoscope++',
],
'include_dirs': [
'src',
],
'sources': [
'tests/test_main.cc',
'tests/test_lexer.cpp',
]
}]
}