-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
108 lines (108 loc) · 3.3 KB
/
binding.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
99
100
101
102
103
104
105
106
107
108
# type: ignore
{
"target_defaults": {
"cflags": [
"-std=c++20",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-fexceptions",
"-O3",
"-Werror",
"-Wpedantic",
],
"cflags_cc": [
"-std=c++20",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-fexceptions",
"-O3",
"-Werror",
"-Wpedantic",
],
"defines": ["V8_DEPRECATION_WARNINGS=1"],
"include_dirs": ["<!(node -e \"require('nan')\")"],
"target_conditions": [
[
'OS=="linux"',
{
"cflags": [
"-std=c++20",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-fexceptions",
"-O3",
"-Werror",
"-Wpedantic",
],
"cflags_cc": [
"-std=c++20",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-fexceptions",
"-O3",
"-Werror",
"-Wpedantic",
"-fno-omit-frame-pointer",
],
"ldflags": ["-pthread", "-fuse-ld=mold"],
},
],
],
},
"targets": [
{
"target_name": "imdb-dataset-parser",
"cflags_cc": [
"-Wno-cast-function-type" # since nan.h -> node.h has some warnings regarding that
],
"sources": [
"src/cpp/TSVParser.cpp",
"src/cpp/ParserStructure.cpp",
"src/cpp/InternalParsers.cpp",
"src/cpp/Models.cpp",
"src/cpp/EventEmitter.cpp",
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"submodules/expected/include/tl/",
"src/cpp/",
],
"dependencies": ["csvlib", "eventemitterlib"],
},
{
"target_name": "csvlib",
"type": "<(library)",
"sources": [
"submodules/tsvlib/csvlib/csv/parser.cpp",
"submodules/tsvlib/csvlib/csv/datasource/utf8/DataSource.cpp",
],
"include_dirs": [
"submodules/tsvlib/csvlib/",
],
"direct_dependent_settings": {
"include_dirs": ["submodules/tsvlib/csvlib/"]
},
},
{
"target_name": "eventemitterlib",
"type": "<(library)",
"sources": [
"submodules/eventemitter/constructable.cpp",
"submodules/eventemitter/eventemitter_impl.cpp",
"submodules/eventemitter/uv_rwlock_adaptor.cpp",
],
"include_dirs": [
"submodules/eventemitter/",
],
"direct_dependent_settings": {
"include_dirs": [
"submodules/eventemitter/",
]
},
},
],
}