@cpp.js/package-geotiff 2.0.0-beta.1 → 2.0.0-beta.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpp.js/package-geotiff",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.4",
4
4
  "nativeVersion": "1.7.4",
5
5
  "description": "This package provides the precompiled geotiff library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. Designed for working with GeoTIFF files, offering robust support for geospatial metadata handling, ensuring high performance and cross-platform compatibility. Ideal for use in web and mobile applications.",
6
6
  "homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-package-geotiff#readme",
@@ -14,10 +14,12 @@
14
14
  "webassembly",
15
15
  "react-native"
16
16
  ],
17
+ "dependencies": {
18
+ "@cpp.js/package-geotiff-wasm": "^2.0.0-beta.4",
19
+ "@cpp.js/package-geotiff-android": "^2.0.0-beta.4",
20
+ "@cpp.js/package-geotiff-ios": "^2.0.0-beta.4"
21
+ },
17
22
  "devDependencies": {
18
- "@cpp.js/package-geotiff-wasm": "^2.0.0-beta.1",
19
- "@cpp.js/package-geotiff-ios": "^2.0.0-beta.1",
20
- "cpp.js": "^2.0.0-beta.1",
21
- "@cpp.js/package-geotiff-android": "^2.0.0-beta.1"
23
+ "cpp.js": "^2.0.0-beta.4"
22
24
  }
23
25
  }
@@ -1,13 +0,0 @@
1
- require "json"
2
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
3
-
4
- Pod::Spec.new do |s|
5
- s.module_name = "geotiff"
6
- s.name = "cppjs-package-geotiff"
7
- s.version = package["nativeVersion"]
8
- s.summary = "This library is designed to permit the extraction and parsing of the 'GeoTIFF' Key directories, as well as definition and installation of GeoTIFF keys in new files."
9
- s.homepage = "https://github.com/OSGeo/libgeotiff"
10
- s.author = "GeoTiff Authors"
11
- s.source = { :http => "https://cpp.js.org" }
12
- s.vendored_frameworks = 'geotiff.xcframework', 'proj.xcframework', 'tiff.xcframework', 'z.xcframework'
13
- end
package/cppjs.build.js DELETED
@@ -1,32 +0,0 @@
1
- const platformBuild = {
2
- 'Emscripten-x86_64': ['--enable-shared=no', '--host=x86_64-pc-linux-gnu'],
3
- 'Android-arm64-v8a': ['--enable-static=no', '--host=aarch64-linux-android'],
4
- 'Android-x86_64': ['--enable-static=no', '--host=x86_64-linux-android'],
5
- 'iOS-iphoneos': ['--enable-shared=no', '--host=arm-apple-darwin'],
6
- 'iOS-iphonesimulator': ['--enable-shared=no', '--host=x86_64-apple-darwin'],
7
- };
8
-
9
- const platformExtraLibs = {
10
- 'Emscripten-x86_64': ['-lsqlite3'],
11
- 'Android-arm64-v8a': ['-lstdc++'],
12
- 'Android-x86_64': ['-lstdc++'],
13
- 'iOS-iphoneos': ['-lstdc++'],
14
- 'iOS-iphonesimulator': ['-lstdc++'],
15
- };
16
-
17
- export default {
18
- getURL: (version) => `https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-${version}.tar.gz`,
19
- buildType: 'configure',
20
- getBuildParams: (platform, depPaths) => [
21
- ...(platformBuild[platform] || []),
22
- `--with-proj=${depPaths.proj.root}`, `--with-libtiff=${depPaths.tiff.root}`, `--with-zlib=${depPaths.z.root}`,
23
- ],
24
- getExtraLibs: (platform) => platformExtraLibs[platform] || [],
25
- replaceList: [
26
- {
27
- regex: 'double GTIFAtof\\(const char',
28
- replacement: 'double GTIFAtof2(const char',
29
- paths: ['geo_strtod.c'],
30
- },
31
- ],
32
- };