koffi 2.8.10 → 2.8.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "2.8.10",
4
- "stable": "2.8.10",
3
+ "version": "2.8.11",
4
+ "stable": "2.8.11",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",
@@ -30,9 +30,9 @@
30
30
  "license": "MIT",
31
31
  "cnoke": {
32
32
  "api": "../../vendor/node-api-headers",
33
- "output": "../../bin/Koffi/{{ platform }}_{{ arch }}",
33
+ "output": "build/koffi/{{ platform }}_{{ arch }}",
34
34
  "node": 16,
35
35
  "napi": 8,
36
36
  "require": "./index.js"
37
37
  }
38
- }
38
+ }
@@ -50,17 +50,7 @@ endif()
50
50
 
51
51
  # ---- Koffi ----
52
52
 
53
- # Recompute the version string after each commit
54
- if(EXISTS "${CMAKE_SOURCE_DIR}/../../.git/logs/HEAD")
55
- configure_file("${CMAKE_SOURCE_DIR}/../../.git/logs/HEAD" git_logs_HEAD COPYONLY)
56
- endif()
57
- if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/package.json)
58
- file(READ ${CMAKE_CURRENT_SOURCE_DIR}/package.json PKG)
59
- else()
60
- file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../../package.json PKG)
61
- endif()
62
- string(REGEX MATCH "\"version\": \"([^\"]+)\"" XX "${PKG}")
63
- set(KOFFI_VERSION ${CMAKE_MATCH_1})
53
+ set(KOFFI_VERSION 2.8.10)
64
54
 
65
55
  set_source_files_properties(src/ffi.cc PROPERTIES COMPILE_DEFINITIONS VERSION=${KOFFI_VERSION})
66
56