@xframes/node 0.0.19 → 0.0.21

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(DEFINED ENV{ARM64_LINUX})
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,22 @@ 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 ARM64_LINUX=1`
34
+
35
+ We could not work out how to detect the correct architecture so, for convenience, in CMakeLists.txt we check for this ENV variable to be set.
36
+
37
+ `export VCPKG_FORCE_SYSTEM_BINARIES=1`
38
+
39
+ 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.21",
4
4
  "description": "DOM-less, GPU-accelerated GUI development for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -10,9 +10,9 @@
10
10
  ],
11
11
  "repository": {
12
12
  "type": "https",
13
- "url": "https://github.com/andreamancuso/xframes.git"
13
+ "url": "https://github.com/xframes-project/xframes.git"
14
14
  },
15
- "homepage": "https://github.com/andreamancuso/xframes",
15
+ "homepage": "https://github.com/xframes-project/xframes",
16
16
  "license": "MIT",
17
17
  "author": {
18
18
  "name": "Andrea Mancuso",
@@ -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
@@ -1,9 +1,10 @@
1
1
  {
2
- "name": "reactdearimgui",
2
+ "name": "xframesnodemodule",
3
3
  "version-string": "1.0.0",
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