librats 0.3.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp CHANGED
@@ -1,95 +1,95 @@
1
- {
2
- "targets": [
3
- {
4
- "target_name": "librats",
5
- "sources": [
6
- "src/librats_node.cpp"
7
- ],
8
- "include_dirs": [
9
- "<!@(node -p \"require('node-addon-api').include\")",
10
- "../src",
11
- "build-native/src"
12
- ],
13
- "dependencies": [
14
- "<!(node -p \"require('node-addon-api').gyp\")"
15
- ],
16
- "cflags!": [ "-fno-exceptions" ],
17
- "cflags_cc!": [ "-fno-exceptions" ],
18
- "xcode_settings": {
19
- "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
20
- "CLANG_CXX_LIBRARY": "libc++",
21
- "MACOSX_DEPLOYMENT_TARGET": "10.7"
22
- },
23
- "msvs_settings": {
24
- "VCCLCompilerTool": {
25
- "ExceptionHandling": 1,
26
- "RuntimeLibrary": 2
27
- }
28
- },
29
- "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
30
- "conditions": [
31
- ["OS=='win'", {
32
- "configurations": {
33
- "Debug": {
34
- "msvs_settings": {
35
- "VCCLCompilerTool": {
36
- "RuntimeLibrary": 3
37
- },
38
- "VCLinkerTool": {
39
- "AdditionalDependencies": [
40
- "<(module_root_dir)/build-native/lib/Debug/rats.lib",
41
- "ws2_32.lib",
42
- "iphlpapi.lib",
43
- "bcrypt.lib"
44
- ]
45
- }
46
- }
47
- },
48
- "Release": {
49
- "msvs_settings": {
50
- "VCCLCompilerTool": {
51
- "RuntimeLibrary": 2
52
- },
53
- "VCLinkerTool": {
54
- "AdditionalDependencies": [
55
- "<(module_root_dir)/build-native/lib/Release/rats.lib",
56
- "ws2_32.lib",
57
- "iphlpapi.lib",
58
- "bcrypt.lib"
59
- ]
60
- }
61
- }
62
- }
63
- },
64
- "defines": [
65
- "WIN32_LEAN_AND_MEAN",
66
- "_WIN32_WINNT=0x0600"
67
- ]
68
- }],
69
- ["OS=='linux'", {
70
- "libraries": [
71
- "<(module_root_dir)/build-native/lib/librats.a"
72
- ],
73
- "libraries!": [
74
- "-undefined dynamic_lookup"
75
- ],
76
- "link_settings": {
77
- "libraries": [
78
- "-lpthread"
79
- ]
80
- }
81
- }],
82
- ["OS=='mac'", {
83
- "libraries": [
84
- "<(module_root_dir)/build-native/lib/librats.a"
85
- ],
86
- "link_settings": {
87
- "libraries": [
88
- "-lpthread"
89
- ]
90
- }
91
- }]
92
- ]
93
- }
94
- ]
95
- }
1
+ {
2
+ "targets": [
3
+ {
4
+ "target_name": "librats",
5
+ "sources": [
6
+ "src/librats_node.cpp"
7
+ ],
8
+ "include_dirs": [
9
+ "<!@(node -p \"require('node-addon-api').include\")",
10
+ "../src",
11
+ "build-native/src"
12
+ ],
13
+ "dependencies": [
14
+ "<!(node -p \"require('node-addon-api').gyp\")"
15
+ ],
16
+ "cflags!": [ "-fno-exceptions" ],
17
+ "cflags_cc!": [ "-fno-exceptions" ],
18
+ "xcode_settings": {
19
+ "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
20
+ "CLANG_CXX_LIBRARY": "libc++",
21
+ "MACOSX_DEPLOYMENT_TARGET": "10.7"
22
+ },
23
+ "msvs_settings": {
24
+ "VCCLCompilerTool": {
25
+ "ExceptionHandling": 1,
26
+ "RuntimeLibrary": 2
27
+ }
28
+ },
29
+ "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
30
+ "conditions": [
31
+ ["OS=='win'", {
32
+ "configurations": {
33
+ "Debug": {
34
+ "msvs_settings": {
35
+ "VCCLCompilerTool": {
36
+ "RuntimeLibrary": 3
37
+ },
38
+ "VCLinkerTool": {
39
+ "AdditionalDependencies": [
40
+ "<(module_root_dir)/build-native/lib/Debug/rats.lib",
41
+ "ws2_32.lib",
42
+ "iphlpapi.lib",
43
+ "bcrypt.lib"
44
+ ]
45
+ }
46
+ }
47
+ },
48
+ "Release": {
49
+ "msvs_settings": {
50
+ "VCCLCompilerTool": {
51
+ "RuntimeLibrary": 2
52
+ },
53
+ "VCLinkerTool": {
54
+ "AdditionalDependencies": [
55
+ "<(module_root_dir)/build-native/lib/Release/rats.lib",
56
+ "ws2_32.lib",
57
+ "iphlpapi.lib",
58
+ "bcrypt.lib"
59
+ ]
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "defines": [
65
+ "WIN32_LEAN_AND_MEAN",
66
+ "_WIN32_WINNT=0x0600"
67
+ ]
68
+ }],
69
+ ["OS=='linux'", {
70
+ "libraries": [
71
+ "<(module_root_dir)/build-native/lib/librats.a"
72
+ ],
73
+ "libraries!": [
74
+ "-undefined dynamic_lookup"
75
+ ],
76
+ "link_settings": {
77
+ "libraries": [
78
+ "-lpthread"
79
+ ]
80
+ }
81
+ }],
82
+ ["OS=='mac'", {
83
+ "libraries": [
84
+ "<(module_root_dir)/build-native/lib/librats.a"
85
+ ],
86
+ "link_settings": {
87
+ "libraries": [
88
+ "-lpthread"
89
+ ]
90
+ }
91
+ }]
92
+ ]
93
+ }
94
+ ]
95
+ }