-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
86 lines (86 loc) · 3.07 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
{
'targets': [
{
'target_name': 'genshin-impact-auto-track',
'sources': ['src/main.cc', 'src/unsafe.cc'],
'include_dirs': [
"<!@(node -p \"require('node-addon-api').include\")",
"../cvAutoTrack"
],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions'],
'defines': [
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
},
"conditions": [
["OS==\"win\"", {
"defines": [
"_HAS_EXCEPTIONS=1"
],
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
},
},
"libraries": ["<(module_root_dir)/cvAutoTrack/CVAUTOTRACK.lib"],
"copies": [
{
"destination": "<(PRODUCT_DIR)/",
"files": ["<(module_root_dir)/cvAutoTrack/CVAUTOTRACK.dll"]
}
]
}]
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": ["<(module_name)"],
"copies": [
{
"files": ["<(PRODUCT_DIR)/<(module_name).node"],
"destination": "<(module_path)"
},
{
"files": ["<(PRODUCT_DIR)/CVAUTOTRACK.dll"],
"destination": "<(module_path)"
}
]
}
# {
# "target_name": "merge_binaries",
# "type": 'none',
# # test is built before this target is built
# "dependencies": ['genshin-impact-auto-track'],
# "copies":[
# {
# "destination": "<(module_root_dir)/build/release/<(arch)",
# "files": [
# "../<(arch)/release/CVAUTOTRACK.dll.dll"
# ]
# }
# ]
# },
# {
# "target_name": "copy_binaries",
# "type": 'none',
# # target merge_binaries is built before this target is built
# "dependencies": ['merge_binaries'],
# "copies":[
# {
# "destination": "<(module_root_dir)/../../../../ExpressApp",
# "files": [
# "<(module_root_dir)/build/release/<(arch)/Extention.dll.dll",
# "<(module_root_dir)/build/release/test.node"
# ]
# }
# ]
# }
]
}