bare-jpeg 1.1.4 → 1.1.5

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.
@@ -0,0 +1,30 @@
1
+ include_guard(GLOBAL)
2
+
3
+ if(WIN32)
4
+ set(lib lib/jpeg-static.lib)
5
+ else()
6
+ set(lib lib/libjpeg.a)
7
+ endif()
8
+
9
+ declare_port(
10
+ "github:libjpeg-turbo/libjpeg-turbo#3.2.0"
11
+ jpeg
12
+ BYPRODUCTS ${lib}
13
+ )
14
+
15
+ add_library(jpeg STATIC IMPORTED GLOBAL)
16
+
17
+ add_dependencies(jpeg ${jpeg})
18
+
19
+ set_target_properties(
20
+ jpeg
21
+ PROPERTIES
22
+ IMPORTED_LOCATION "${jpeg_PREFIX}/${lib}"
23
+ )
24
+
25
+ file(MAKE_DIRECTORY "${jpeg_PREFIX}/include")
26
+
27
+ target_include_directories(
28
+ jpeg
29
+ INTERFACE "${jpeg_PREFIX}/include"
30
+ )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-jpeg",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "JPEG support for Bare",
5
5
  "exports": {
6
6
  "./package": "./package.json",
@@ -11,6 +11,7 @@
11
11
  "binding.c",
12
12
  "binding.js",
13
13
  "CMakeLists.txt",
14
+ "cmake",
14
15
  "prebuilds"
15
16
  ],
16
17
  "addon": true,
Binary file
Binary file
Binary file
Binary file