@xframes/node 0.0.19 → 0.0.20

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/CMakeLists.txt CHANGED
@@ -13,6 +13,8 @@ if(NOT VCPKG_TARGET_TRIPLET)
13
13
  set(VCPKG_TARGET_TRIPLET "x64-windows")
14
14
  elseif(APPLE)
15
15
  set(VCPKG_TARGET_TRIPLET "x64-osx")
16
+ elseif(__ARM_ARCH OR __TARGET_ARCH_ARM OR __TARGET_ARCH_THUMB OR _M_ARM OR __arm__ OR __arm64 OR _M_ARM64 OR __aarch64__ OR __AARCH64EL__)
17
+ set(VCPKG_TARGET_TRIPLET "arm64-linux")
16
18
  else()
17
19
  set(VCPKG_TARGET_TRIPLET "x64-linux")
18
20
  endif()
@@ -29,6 +31,7 @@ find_package(OpenGL REQUIRED)
29
31
  find_package(glfw3 CONFIG REQUIRED)
30
32
  find_package(ada CONFIG REQUIRED)
31
33
  find_package(Stb REQUIRED)
34
+ find_package(fmt CONFIG REQUIRED)
32
35
 
33
36
  include_directories(${CMAKE_JS_INC})
34
37
 
@@ -100,6 +103,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
100
103
  target_link_libraries(${PROJECT_NAME}
101
104
  ${CMAKE_JS_LIB}
102
105
  ada::ada
106
+ fmt::fmt
103
107
 
104
108
  glfw
105
109
  OpenGL::GL
package/README.md CHANGED
@@ -18,8 +18,18 @@ If a prebuilt module isn't found then you will need gcc 13+ to build the project
18
18
 
19
19
  Ubuntu 24.04 dependencies:
20
20
 
21
- `sudo apt install build-essential cmake libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config`
21
+ `sudo apt install curl zip unzip tar build-essential cmake libglfw3 libglfw3-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config`
22
22
 
23
23
  Fedora 41 dependencies:
24
24
 
25
- `sudo dnf install @development-tools gcc-c++ cmake glfw-devel`
25
+ `sudo dnf install @development-tools gcc-c++ cmake glfw-devel`
26
+
27
+ Raspberry Pi OS
28
+
29
+ `sudo apt install curl zip unzip tar build-essential cmake libglfw3 libglfw3-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config`
30
+
31
+ You must set:
32
+
33
+ `export VCPKG_FORCE_SYSTEM_BINARIES=1`
34
+
35
+ It suppresses the downloading of CMake and Ninja and forces the use of the system binaries.
package/dist/fmt.dll ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xframes/node",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "DOM-less, GPU-accelerated GUI development for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  "tsc": "rimraf ./dist && tsc --project ./tsconfig-build.json",
26
26
  "tsup": "tsup --format cjs --external react",
27
27
  "copy-artifacts-to-lib-folder": "cpy --flat ./build/Release/*.* ./src/lib",
28
- "copy-artifacts-to-dist-folder": "cpy --flat ./build/Release/*.* ./dist",
28
+ "copy-artifacts-to-dist-folder": "cpy --flat ./build/Release/*.dll ./dist",
29
29
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
30
30
  "cpp:compile": "cmake-js compile && npm run copy-artifacts-to-lib-folder",
31
31
  "cpp:generate-module": "prebuild --strip --backend cmake-js -t 9 -r napi --include-regex \"\\.(node|dll|o)$\" --tag-prefix xframes-node- --verbose",
package/vcpkg.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "dependencies": [
5
5
  "stb",
6
6
  "ada-url",
7
+ "fmt",
7
8
  "opengl-registry",
8
9
  "glfw3"
9
10
  ]
package/dist/xframes.exp DELETED
Binary file
package/dist/xframes.lib DELETED
Binary file
package/dist/xframes.node DELETED
Binary file