-
Notifications
You must be signed in to change notification settings - Fork 16
/
candor.gyp
88 lines (86 loc) · 1.99 KB
/
candor.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
{
'target_defaults': {
'defines': [ 'CANDOR_ARCH_<(target_arch)' ],
'conditions': [
['OS == "mac"', {
'defines': [ 'CANDOR_PLATFORM_DARWIN' ],
}, {
'defines': [ 'CANDOR_PLATFORM_LINUX' ]
}]
]
},
'targets': [{
'target_name': 'candor',
'type': 'static_library',
'include_dirs': [
'include',
'src'
],
'direct_dependent_settings': {
'include_dirs': [ 'include' ],
'link_settings': {
'ldflags': [ '-pthread' ],
},
'cflags': [ '-pthread', '-fno-strict-aliasing' ],
},
'sources': [
'src/zone.cc',
'src/isolate.cc',
'src/api.cc',
'src/code-space.cc',
'src/cpu.cc',
'src/gc.cc',
'src/heap.cc',
'src/lexer.cc',
'src/parser.cc',
'src/scope.cc',
'src/root.cc',
'src/visitor.cc',
'src/source-map.cc',
'src/fullgen.cc',
'src/fullgen-instructions.cc',
'src/hir.cc',
'src/hir-instructions.cc',
'src/lir.cc',
'src/lir-instructions.cc',
'src/pic.cc',
'src/macroassembler.cc',
'src/runtime.cc',
],
'conditions': [
['target_arch == "x64"', {
'sources': [
'src/x64/assembler-x64.cc',
'src/x64/macroassembler-x64.cc',
'src/x64/stubs-x64.cc',
'src/x64/fullgen-x64.cc',
'src/x64/lir-builder-x64.cc',
'src/x64/lir-x64.cc',
'src/x64/pic-x64.cc',
]
}],
['target_arch == "ia32"', {
'sources': [
'src/ia32/assembler-ia32.cc',
'src/ia32/macroassembler-ia32.cc',
'src/ia32/stubs-ia32.cc',
'src/ia32/fullgen-ia32.cc',
'src/ia32/lir-builder-ia32.cc',
'src/ia32/lir-ia32.cc',
'src/ia32/pic-ia32.cc',
]
}],
]
}, {
'target_name': 'can',
'type': 'executable',
'dependencies': ['candor'],
'include_dirs': [
'include',
'src'
],
'sources': [
'src/can.cc'
]
}]
}