bare-exif 1.1.4 → 1.2.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.c CHANGED
@@ -1,5 +1,5 @@
1
1
  #include <assert.h>
2
- #include <bare.h>
2
+ #include <bare/module.h>
3
3
  #include <js.h>
4
4
  #include <libexif/exif-data.h>
5
5
  #include <libexif/exif-tag.h>
@@ -29,6 +29,8 @@ elseif(platform MATCHES "linux|android")
29
29
  set(platform "linux")
30
30
  elseif(platform MATCHES "windows")
31
31
  set(platform "windows")
32
+ elseif(platform MATCHES "wasi")
33
+ set(platform "wasi")
32
34
  else()
33
35
  message(FATAL_ERROR "Unsupported platform '${platform}'")
34
36
  endif()
@@ -55,6 +57,8 @@ elseif(arch MATCHES "x64|x86_64|amd64")
55
57
  set(arch "x86_64")
56
58
  elseif(arch MATCHES "x86|i386|i486|i586|i686")
57
59
  set(arch "i686")
60
+ elseif(arch MATCHES "wasm32")
61
+ set(arch "wasm32")
58
62
  else()
59
63
  message(FATAL_ERROR "Unsupported architecture '${arch}'")
60
64
  endif()
@@ -63,7 +67,7 @@ list(APPEND args --host=${arch}-${platform})
63
67
 
64
68
  if(APPLE)
65
69
  list(APPEND args --with-sysroot=${CMAKE_OSX_SYSROOT})
66
- elseif(ANDROID)
70
+ elseif(ANDROID OR platform STREQUAL "wasi")
67
71
  list(APPEND args --with-sysroot=${CMAKE_SYSROOT})
68
72
  endif()
69
73
 
@@ -75,7 +79,7 @@ if(CMAKE_C_COMPILER)
75
79
 
76
80
  if(APPLE)
77
81
  string(APPEND flags " -isysroot ${CMAKE_OSX_SYSROOT}")
78
- elseif(ANDROID)
82
+ elseif(ANDROID OR platform STREQUAL "wasi")
79
83
  string(APPEND flags " --sysroot=${CMAKE_SYSROOT}")
80
84
  endif()
81
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-exif",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "EXIF support for Bare",
5
5
  "exports": {
6
6
  "./package": "./package.json",
@@ -32,7 +32,7 @@
32
32
  "homepage": "https://github.com/holepunchto/bare-exif#readme",
33
33
  "devDependencies": {
34
34
  "brittle": "^3.4.0",
35
- "cmake-bare": "^1.1.2",
35
+ "cmake-bare": "^1.10.1",
36
36
  "cmake-ports": "^1.6.0",
37
37
  "lunte": "^1.8.0",
38
38
  "prettier": "^3.3.3",
Binary file
Binary file
Binary file
Binary file