Skip to content

Commit 5defa93

Browse files
committed
release: v1.0.1
1 parent 7af63e3 commit 5defa93

File tree

6 files changed

+6795
-0
lines changed

6 files changed

+6795
-0
lines changed

common.gypi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
'target_defaults': {
3+
'default_configuration': 'Debug',
4+
'configurations': {
5+
# TODO: hoist these out and put them somewhere common, because
6+
# RuntimeLibrary MUST MATCH across the entire project
7+
'Debug': {
8+
'defines': [ 'DEBUG', '_DEBUG' ],
9+
'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
10+
'msvs_settings': {
11+
'VCCLCompilerTool': {
12+
'RuntimeLibrary': 1, # static debug
13+
},
14+
},
15+
},
16+
'Release': {
17+
'defines': [ 'NDEBUG' ],
18+
'cflags': [ '-Wall', '-Wextra', '-O3' ],
19+
'msvs_settings': {
20+
'VCCLCompilerTool': {
21+
'RuntimeLibrary': 0, # static release
22+
},
23+
},
24+
}
25+
},
26+
'msvs_settings': {
27+
'VCCLCompilerTool': {
28+
# Compile as C++. llhttp.c is actually C99, but C++ is
29+
# close enough in this case.
30+
'CompileAs': 2,
31+
},
32+
'VCLibrarianTool': {
33+
},
34+
'VCLinkerTool': {
35+
'GenerateDebugInformation': 'true',
36+
},
37+
},
38+
'conditions': [
39+
['OS == "win"', {
40+
'defines': [
41+
'WIN32'
42+
],
43+
}]
44+
],
45+
},
46+
}

0 commit comments

Comments
 (0)