@oxmc/node-smbios 1.0.2 → 1.0.3
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 +64 -0
- package/package.json +3 -2
package/binding.gyp
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": [
|
|
3
|
+
{
|
|
4
|
+
"target_name": "smbios",
|
|
5
|
+
"cflags!": [ "-fno-exceptions" ],
|
|
6
|
+
"cflags_cc!": [ "-fno-exceptions" ],
|
|
7
|
+
"cflags_cc": [ "-std=c++17" ],
|
|
8
|
+
"sources": [
|
|
9
|
+
"src/binding.cpp",
|
|
10
|
+
"src/smbios_common.cpp"
|
|
11
|
+
],
|
|
12
|
+
"include_dirs": [
|
|
13
|
+
"<!@(node -p \"require('node-addon-api').include\")"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": [
|
|
16
|
+
"<!(node -p \"require('node-addon-api').gyp\")"
|
|
17
|
+
],
|
|
18
|
+
"defines": [
|
|
19
|
+
"NAPI_DISABLE_CPP_EXCEPTIONS"
|
|
20
|
+
],
|
|
21
|
+
"conditions": [
|
|
22
|
+
["OS=='win'", {
|
|
23
|
+
"sources": [ "src/windows/smbios_windows.cpp" ],
|
|
24
|
+
"libraries": [],
|
|
25
|
+
"msvs_settings": {
|
|
26
|
+
"VCCLCompilerTool": {
|
|
27
|
+
"ExceptionHandling": 1,
|
|
28
|
+
"AdditionalOptions": [ "/std:c++17" ]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}],
|
|
32
|
+
["OS=='mac'", {
|
|
33
|
+
"sources": [ "src/mac/smbios_macos.cpp" ],
|
|
34
|
+
"xcode_settings": {
|
|
35
|
+
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
|
36
|
+
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
|
|
37
|
+
"CLANG_CXX_LIBRARY": "libc++",
|
|
38
|
+
"MACOSX_DEPLOYMENT_TARGET": "10.13"
|
|
39
|
+
},
|
|
40
|
+
"link_settings": {
|
|
41
|
+
"libraries": [
|
|
42
|
+
"-framework IOKit",
|
|
43
|
+
"-framework CoreFoundation"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}],
|
|
47
|
+
["OS=='linux'", {
|
|
48
|
+
"sources": [ "src/linux/smbios_linux.cpp" ]
|
|
49
|
+
}]
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"target_name": "action_after_build",
|
|
54
|
+
"type": "none",
|
|
55
|
+
"dependencies": [ "smbios" ],
|
|
56
|
+
"copies": [
|
|
57
|
+
{
|
|
58
|
+
"files": [ "<(PRODUCT_DIR)/smbios.node" ],
|
|
59
|
+
"destination": "<(module_path)"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxmc/node-smbios",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A Node.js module designed to retrieve detailed system and hardware information from SMBIOS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"index.js",
|
|
24
24
|
"lib/**/*",
|
|
25
|
-
"src/**/*"
|
|
25
|
+
"src/**/*",
|
|
26
|
+
"binding.gyp"
|
|
26
27
|
],
|
|
27
28
|
"keywords": [
|
|
28
29
|
"smbios",
|