forked from fivdi/i2c-bus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
74 lines (73 loc) · 2.17 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
{
"targets": [{
"target_name": "i2c",
"conditions": [[
"OS == \"linux\"", {
"cflags": [
"-Wno-unused-local-typedefs"
]
}]
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"conditions": [
["OS == \"linux\"", {
"sources": [
"./src/i2c.cc"
]
}],
["OS == \"win\"", {
"sources": [
"./src/win/readPartial.cc",
"./src/win/writePartial.cc",
"./src/win/writeReadPartial.cc",
"./src/win/i2c.cc",
"./src/win/i2c.h"
],
'msvs_windows_sdk_version': 'v10.0',
'win_delay_load_hook': 'false',
'msvs_onecore_vcpp_libs': 1,
'msvs_settings': {
'VCLinkerTool': {
'IgnoreDefaultLibraryNames' : ['kernel32.lib','advapi32.lib', 'ole32.lib' ],
'conditions': [
[ 'target_arch=="ia32"', {
'AdditionalLibraryDirectories' : [ '$(VCInstallDir)lib\onecore;$(WindowsSDK_LibraryPath_x86);$(UniversalCRT_LibraryPath_x86)' ],
} ],
[ 'target_arch=="x64"', {
'AdditionalLibraryDirectories' : [ '$(VCInstallDir)lib\onecore\\amd64;$(WindowsSDK_LibraryPath_x64);$(UniversalCRT_LibraryPath_x64)' ],
} ],
[ 'target_arch=="arm"', {
'AdditionalLibraryDirectories' : [ '$(VCInstallDir)lib\onecore\\arm;$(WindowsSDK_LibraryPath_arm);$(UniversalCRT_LibraryPath_arm)' ],
} ],
],
},
'VCCLCompilerTool': {
'AdditionalUsingDirectories': [ '$(VCInstallDir)vcpackages;$(WindowsSdkDir)UnionMetadata;%(AdditionalUsingDirectories)' ],
'CompileAsWinRT': 'true',
}
},
'libraries': [
'-lonecore.lib',
],
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '2',
}
},
},
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '3',
}
},
}
}
}]
]
}]
}