forked from intel/inference-engine-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
62 lines (62 loc) · 1.88 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
{
'variables':{
'INTEL_OPENVINO_DIR' : '<!@(node -p \"process.env.INTEL_OPENVINO_DIR\")>',
},
'conditions': [
['OS=="linux"', {
'variables' : {
'IE_INCLUDE_DIR' : '$(INTEL_OPENVINO_DIR)/deployment_tools/inference_engine/include',
'IE_LIBRARY_DIR' : '$(INTEL_OPENVINO_DIR)/deployment_tools/inference_engine/lib/intel64/'
},
}],
['OS=="win"', {
'variables' : {
'IE_INCLUDE_DIR' : '$(INTEL_OPENVINO_DIR)\\deployment_tools\\inference_engine\\include',
'IE_LIBRARY_DIR' : '$(INTEL_OPENVINO_DIR)\\deployment_tools\\inference_engine\\lib\\intel64\\Release',
'IE_PLUGIN_DIR' : '$(INTEL_OPENVINO_DIR)\\deployment_tools\\inference_engine\\include'
},
}],
],
'targets': [
{
'target_name': 'inference_engine_node',
'sources': [
"<!@(node -p \"require('fs').readdirSync('./src').map(f=>'src/'+f).join(' ')\")"
],
'cflags!': [ '-fno-exceptions', '-fno-rtti'],
'cflags_cc!': [ '-fno-exceptions', '-fno-rtti'],
'default_configuration': 'Release',
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
'RuntimeTypeInfo': 'true',
'RuntimeLibrary': 3 # MultiThreadedDebugDLL (/MDd)
},
},
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
'RuntimeTypeInfo': 'true',
'RuntimeLibrary': 2 # MultiThreadedDLL (/MD)
},
},
}
},
'include_dirs' : [
'<!@(node -p "require(\'node-addon-api\').include")',
'<(IE_INCLUDE_DIR)'
],
'library_dirs' : [
'<(IE_LIBRARY_DIR)'
],
'libraries' : [
'-linference_engine',
'-linference_engine_legacy'
]
}
]
}