@seekskyworld/ai-modeling 0.1.0 → 0.1.2
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/CHANGELOG.md +23 -1
- package/README.md +24 -6
- package/README.zh-CN.md +24 -6
- package/dist/cli/artifacts/glb-jpeg.js +1 -1
- package/dist/cli/artifacts/glb-jpeg.js.map +1 -1
- package/dist/cli/artifacts/image-background-output.js +4 -2
- package/dist/cli/artifacts/image-background-output.js.map +1 -1
- package/dist/cli/artifacts/image-encoding.js +4 -2
- package/dist/cli/artifacts/image-encoding.js.map +1 -1
- package/dist/cli/artifacts/image-size-output.js +4 -2
- package/dist/cli/artifacts/image-size-output.js.map +1 -1
- package/dist/cli/artifacts/studio-fbx-texture.js +5 -2
- package/dist/cli/artifacts/studio-fbx-texture.js.map +1 -1
- package/dist/cli/auth/coordinator.js +3 -0
- package/dist/cli/auth/coordinator.js.map +1 -1
- package/dist/cli/auth/state.js +3 -0
- package/dist/cli/auth/state.js.map +1 -1
- package/dist/cli/auth/tools.js +2 -2
- package/dist/cli/auth/tools.js.map +1 -1
- package/dist/cli/auth/types.d.ts +4 -0
- package/dist/cli/auth/types.js.map +1 -1
- package/dist/cli/compat/frontend-convert-validation.js +1 -1
- package/dist/cli/compat/frontend-convert-validation.js.map +1 -1
- package/dist/cli/compat/frontend-static-convert-validation.js +1 -1
- package/dist/cli/compat/frontend-static-convert-validation.js.map +1 -1
- package/dist/cli/compat/lab-projected-segment-geometry.js +1 -1
- package/dist/cli/compat/lab-projected-segment-geometry.js.map +1 -1
- package/dist/cli/local/brush-model.js +1 -1
- package/dist/cli/local/brush-model.js.map +1 -1
- package/dist/cli/local/brush-paint.js +1 -1
- package/dist/cli/local/brush-paint.js.map +1 -1
- package/dist/cli/local/brush.js +1 -1
- package/dist/cli/local/brush.js.map +1 -1
- package/dist/cli/local/operations.js +1 -1
- package/dist/cli/local/operations.js.map +1 -1
- package/dist/cli/local/preview-render.js +1 -1
- package/dist/cli/local/preview-render.js.map +1 -1
- package/dist/cli/local/uv-raster.js +1 -1
- package/dist/cli/local/uv-raster.js.map +1 -1
- package/dist/cli/runtime/sharp.d.ts +5 -0
- package/dist/cli/runtime/sharp.js +21 -0
- package/dist/cli/runtime/sharp.js.map +1 -0
- package/dist/mcp/server.js +2 -2
- package/dist/mcp/server.js.map +1 -1
- package/docs/commands.md +5 -3
- package/docs/development.md +6 -4
- package/docs/usage.md +13 -9
- package/examples/README.md +2 -2
- package/examples/mcp-npx.json +1 -1
- package/npm-shrinkwrap.json +8 -4
- package/package.json +7 -3
- package/skills/ai-modeling/SKILL.md +1 -1
- package/skills/ai-modeling/references/pipelines.md +2 -2
- package/skills/ai-modeling/references/usage.md +6 -4
- package/node_modules/@napi-rs/keyring/LICENSE +0 -21
- package/node_modules/@napi-rs/keyring/README.md +0 -70
- package/node_modules/@napi-rs/keyring/index.d.ts +0 -232
- package/node_modules/@napi-rs/keyring/index.js +0 -706
- package/node_modules/@napi-rs/keyring/keytar.d.ts +0 -53
- package/node_modules/@napi-rs/keyring/keytar.js +0 -26
- package/node_modules/@napi-rs/keyring/package.json +0 -127
- package/node_modules/sharp/LICENSE +0 -191
- package/node_modules/sharp/README.md +0 -112
- package/node_modules/sharp/dist/channel.cjs +0 -177
- package/node_modules/sharp/dist/channel.mjs +0 -177
- package/node_modules/sharp/dist/colour.cjs +0 -199
- package/node_modules/sharp/dist/colour.mjs +0 -199
- package/node_modules/sharp/dist/composite.cjs +0 -213
- package/node_modules/sharp/dist/composite.mjs +0 -213
- package/node_modules/sharp/dist/constructor.cjs +0 -511
- package/node_modules/sharp/dist/constructor.mjs +0 -511
- package/node_modules/sharp/dist/index.cjs +0 -25
- package/node_modules/sharp/dist/index.d.cts +0 -1999
- package/node_modules/sharp/dist/index.d.mts +0 -2046
- package/node_modules/sharp/dist/index.mjs +0 -25
- package/node_modules/sharp/dist/input.cjs +0 -819
- package/node_modules/sharp/dist/input.mjs +0 -819
- package/node_modules/sharp/dist/is.cjs +0 -149
- package/node_modules/sharp/dist/is.mjs +0 -149
- package/node_modules/sharp/dist/libvips.cjs +0 -212
- package/node_modules/sharp/dist/libvips.mjs +0 -212
- package/node_modules/sharp/dist/operation.cjs +0 -1002
- package/node_modules/sharp/dist/operation.mjs +0 -1002
- package/node_modules/sharp/dist/output.cjs +0 -1786
- package/node_modules/sharp/dist/output.mjs +0 -1786
- package/node_modules/sharp/dist/resize.cjs +0 -617
- package/node_modules/sharp/dist/resize.mjs +0 -617
- package/node_modules/sharp/dist/sharp.cjs +0 -174
- package/node_modules/sharp/dist/sharp.mjs +0 -174
- package/node_modules/sharp/dist/utility.cjs +0 -301
- package/node_modules/sharp/dist/utility.mjs +0 -301
- package/node_modules/sharp/install/build.js +0 -38
- package/node_modules/sharp/lib/index.d.ts +0 -1999
- package/node_modules/sharp/package.json +0 -227
- package/node_modules/sharp/src/binding.gyp +0 -303
- package/node_modules/sharp/src/common.cc +0 -1186
- package/node_modules/sharp/src/common.h +0 -421
- package/node_modules/sharp/src/metadata.cc +0 -404
- package/node_modules/sharp/src/metadata.h +0 -95
- package/node_modules/sharp/src/operations.cc +0 -516
- package/node_modules/sharp/src/operations.h +0 -137
- package/node_modules/sharp/src/pipeline.cc +0 -1973
- package/node_modules/sharp/src/pipeline.h +0 -422
- package/node_modules/sharp/src/sharp.cc +0 -43
- package/node_modules/sharp/src/stats.cc +0 -186
- package/node_modules/sharp/src/stats.h +0 -62
- package/node_modules/sharp/src/utilities.cc +0 -289
- package/node_modules/sharp/src/utilities.h +0 -22
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sharp",
|
|
3
|
-
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
4
|
-
"version": "0.35.5",
|
|
5
|
-
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
|
-
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
|
-
"contributors": [
|
|
8
|
-
"Pierre Inglebert <pierre.inglebert@gmail.com>",
|
|
9
|
-
"Jonathan Ong <jonathanrichardong@gmail.com>",
|
|
10
|
-
"Chanon Sajjamanochai <chanon.s@gmail.com>",
|
|
11
|
-
"Juliano Julio <julianojulio@gmail.com>",
|
|
12
|
-
"Daniel Gasienica <daniel@gasienica.ch>",
|
|
13
|
-
"Julian Walker <julian@fiftythree.com>",
|
|
14
|
-
"Amit Pitaru <pitaru.amit@gmail.com>",
|
|
15
|
-
"Brandon Aaron <hello.brandon@aaron.sh>",
|
|
16
|
-
"Andreas Lind <andreas@one.com>",
|
|
17
|
-
"Maurus Cuelenaere <mcuelenaere@gmail.com>",
|
|
18
|
-
"Linus Unnebäck <linus@folkdatorn.se>",
|
|
19
|
-
"Victor Mateevitsi <mvictoras@gmail.com>",
|
|
20
|
-
"Alaric Holloway <alaric.holloway@gmail.com>",
|
|
21
|
-
"Bernhard K. Weisshuhn <bkw@codingforce.com>",
|
|
22
|
-
"Chris Riley <criley@primedia.com>",
|
|
23
|
-
"David Carley <dacarley@gmail.com>",
|
|
24
|
-
"John Tobin <john@limelightmobileinc.com>",
|
|
25
|
-
"Kenton Gray <kentongray@gmail.com>",
|
|
26
|
-
"Felix Bünemann <Felix.Buenemann@gmail.com>",
|
|
27
|
-
"Samy Al Zahrani <samyalzahrany@gmail.com>",
|
|
28
|
-
"Chintan Thakkar <lemnisk8@gmail.com>",
|
|
29
|
-
"F. Orlando Galashan <frulo@gmx.de>",
|
|
30
|
-
"Kleis Auke Wolthuizen <info@kleisauke.nl>",
|
|
31
|
-
"Matt Hirsch <mhirsch@media.mit.edu>",
|
|
32
|
-
"Matthias Thoemmes <thoemmes@gmail.com>",
|
|
33
|
-
"Patrick Paskaris <patrick@paskaris.gr>",
|
|
34
|
-
"Jérémy Lal <kapouer@melix.org>",
|
|
35
|
-
"Rahul Nanwani <r.nanwani@gmail.com>",
|
|
36
|
-
"Alice Monday <alice0meta@gmail.com>",
|
|
37
|
-
"Kristo Jorgenson <kristo.jorgenson@gmail.com>",
|
|
38
|
-
"YvesBos <yves_bos@outlook.com>",
|
|
39
|
-
"Guy Maliar <guy@tailorbrands.com>",
|
|
40
|
-
"Nicolas Coden <nicolas@ncoden.fr>",
|
|
41
|
-
"Matt Parrish <matt.r.parrish@gmail.com>",
|
|
42
|
-
"Marcel Bretschneider <marcel.bretschneider@gmail.com>",
|
|
43
|
-
"Matthew McEachen <matthew+github@mceachen.org>",
|
|
44
|
-
"Jarda Kotěšovec <jarda.kotesovec@gmail.com>",
|
|
45
|
-
"Kenric D'Souza <kenric.dsouza@gmail.com>",
|
|
46
|
-
"Oleh Aleinyk <oleg.aleynik@gmail.com>",
|
|
47
|
-
"Marcel Bretschneider <marcel.bretschneider@gmail.com>",
|
|
48
|
-
"Andrea Bianco <andrea.bianco@unibas.ch>",
|
|
49
|
-
"Rik Heywood <rik@rik.org>",
|
|
50
|
-
"Thomas Parisot <hi@oncletom.io>",
|
|
51
|
-
"Nathan Graves <nathanrgraves+github@gmail.com>",
|
|
52
|
-
"Tom Lokhorst <tom@lokhorst.eu>",
|
|
53
|
-
"Espen Hovlandsdal <espen@hovlandsdal.com>",
|
|
54
|
-
"Sylvain Dumont <sylvain.dumont35@gmail.com>",
|
|
55
|
-
"Alun Davies <alun.owain.davies@googlemail.com>",
|
|
56
|
-
"Aidan Hoolachan <ajhoolachan21@gmail.com>",
|
|
57
|
-
"Axel Eirola <axel.eirola@iki.fi>",
|
|
58
|
-
"Freezy <freezy@xbmc.org>",
|
|
59
|
-
"Daiz <taneli.vatanen@gmail.com>",
|
|
60
|
-
"Julian Aubourg <j@ubourg.net>",
|
|
61
|
-
"Keith Belovay <keith@picthrive.com>",
|
|
62
|
-
"Michael B. Klein <mbklein@gmail.com>",
|
|
63
|
-
"Jordan Prudhomme <jordan@raboland.fr>",
|
|
64
|
-
"Ilya Ovdin <iovdin@gmail.com>",
|
|
65
|
-
"Andargor <andargor@yahoo.com>",
|
|
66
|
-
"Paul Neave <paul.neave@gmail.com>",
|
|
67
|
-
"Brendan Kennedy <brenwken@gmail.com>",
|
|
68
|
-
"Brychan Bennett-Odlum <git@brychan.io>",
|
|
69
|
-
"Edward Silverton <e.silverton@gmail.com>",
|
|
70
|
-
"Roman Malieiev <aromaleev@gmail.com>",
|
|
71
|
-
"Tomas Szabo <tomas.szabo@deftomat.com>",
|
|
72
|
-
"Robert O'Rourke <robert@o-rourke.org>",
|
|
73
|
-
"Guillermo Alfonso Varela Chouciño <guillevch@gmail.com>",
|
|
74
|
-
"Christian Flintrup <chr@gigahost.dk>",
|
|
75
|
-
"Manan Jadhav <manan@motionden.com>",
|
|
76
|
-
"Leon Radley <leon@radley.se>",
|
|
77
|
-
"alza54 <alza54@thiocod.in>",
|
|
78
|
-
"Jacob Smith <jacob@frende.me>",
|
|
79
|
-
"Michael Nutt <michael@nutt.im>",
|
|
80
|
-
"Brad Parham <baparham@gmail.com>",
|
|
81
|
-
"Taneli Vatanen <taneli.vatanen@gmail.com>",
|
|
82
|
-
"Joris Dugué <zaruike10@gmail.com>",
|
|
83
|
-
"Chris Banks <christopher.bradley.banks@gmail.com>",
|
|
84
|
-
"Ompal Singh <ompal.hitm09@gmail.com>",
|
|
85
|
-
"Brodan <christopher.hranj@gmail.com>",
|
|
86
|
-
"Ankur Parihar <ankur.github@gmail.com>",
|
|
87
|
-
"Brahim Ait elhaj <brahima@gmail.com>",
|
|
88
|
-
"Mart Jansink <m.jansink@gmail.com>",
|
|
89
|
-
"Lachlan Newman <lachnewman007@gmail.com>",
|
|
90
|
-
"Dennis Beatty <dennis@dcbeatty.com>",
|
|
91
|
-
"Ingvar Stepanyan <me@rreverser.com>",
|
|
92
|
-
"Don Denton <don@happycollision.com>",
|
|
93
|
-
"Dmytro Tiapukhin <cool.gegeg@gmail.com>",
|
|
94
|
-
"Florian Lefebvre <contact@florian-lefebvre.dev>"
|
|
95
|
-
],
|
|
96
|
-
"scripts": {
|
|
97
|
-
"build": "node install/build.js",
|
|
98
|
-
"build:dist": "node scripts/build.mjs",
|
|
99
|
-
"clean": "rm -rf src/build/ test/fixtures/output.*",
|
|
100
|
-
"test": "npm run lint && npm run test-unit",
|
|
101
|
-
"lint": "npm run lint-cpp && npm run lint-js && npm run lint-types && npm run lint-publish",
|
|
102
|
-
"lint-cpp": "cpplint --quiet src/*.h src/*.cc",
|
|
103
|
-
"lint-js": "biome lint",
|
|
104
|
-
"lint-publish": "publint --strict",
|
|
105
|
-
"lint-types": "tsd --files ./test/types/sharp.test-d.{cts,mts}",
|
|
106
|
-
"test-leak": "./test/leak/leak.sh",
|
|
107
|
-
"test-unit": "node --experimental-test-coverage test/unit.mjs",
|
|
108
|
-
"package-from-local-build": "node npm/from-local-build.js",
|
|
109
|
-
"package-wasm-wrappers": "node npm/wasm-wrappers.js",
|
|
110
|
-
"package-release-notes": "node npm/release-notes.js",
|
|
111
|
-
"docs-build": "node docs/build.mjs",
|
|
112
|
-
"docs-serve": "cd docs && npm start",
|
|
113
|
-
"docs-publish": "cd docs && npm run build && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp"
|
|
114
|
-
},
|
|
115
|
-
"type": "commonjs",
|
|
116
|
-
"files": [
|
|
117
|
-
"dist",
|
|
118
|
-
"install",
|
|
119
|
-
"lib/index.d.ts",
|
|
120
|
-
"src/*.{cc,h,gyp}"
|
|
121
|
-
],
|
|
122
|
-
"main": "./dist/index.cjs",
|
|
123
|
-
"module": "./dist/index.mjs",
|
|
124
|
-
"types": "./dist/index.d.mts",
|
|
125
|
-
"exports": {
|
|
126
|
-
".": {
|
|
127
|
-
"import": {
|
|
128
|
-
"types": "./dist/index.d.mts",
|
|
129
|
-
"default": "./dist/index.mjs"
|
|
130
|
-
},
|
|
131
|
-
"require": {
|
|
132
|
-
"types": "./dist/index.d.cts",
|
|
133
|
-
"default": "./dist/index.cjs"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"sideEffects": true,
|
|
138
|
-
"repository": {
|
|
139
|
-
"type": "git",
|
|
140
|
-
"url": "git+https://github.com/lovell/sharp.git"
|
|
141
|
-
},
|
|
142
|
-
"keywords": [
|
|
143
|
-
"jpeg",
|
|
144
|
-
"png",
|
|
145
|
-
"webp",
|
|
146
|
-
"avif",
|
|
147
|
-
"tiff",
|
|
148
|
-
"gif",
|
|
149
|
-
"svg",
|
|
150
|
-
"jp2",
|
|
151
|
-
"dzi",
|
|
152
|
-
"image",
|
|
153
|
-
"resize",
|
|
154
|
-
"thumbnail",
|
|
155
|
-
"crop",
|
|
156
|
-
"embed",
|
|
157
|
-
"libvips",
|
|
158
|
-
"vips"
|
|
159
|
-
],
|
|
160
|
-
"dependencies": {
|
|
161
|
-
"@img/colour": "^1.1.0",
|
|
162
|
-
"detect-libc": "^2.1.2",
|
|
163
|
-
"semver": "^7.8.5"
|
|
164
|
-
},
|
|
165
|
-
"optionalDependencies": {
|
|
166
|
-
"@img/sharp-darwin-arm64": "0.35.5",
|
|
167
|
-
"@img/sharp-darwin-x64": "0.35.5",
|
|
168
|
-
"@img/sharp-freebsd-wasm32": "0.35.5",
|
|
169
|
-
"@img/sharp-libvips-darwin-arm64": "1.3.4",
|
|
170
|
-
"@img/sharp-libvips-darwin-x64": "1.3.4",
|
|
171
|
-
"@img/sharp-libvips-linux-arm": "1.3.4",
|
|
172
|
-
"@img/sharp-libvips-linux-arm64": "1.3.4",
|
|
173
|
-
"@img/sharp-libvips-linux-ppc64": "1.3.4",
|
|
174
|
-
"@img/sharp-libvips-linux-riscv64": "1.3.4",
|
|
175
|
-
"@img/sharp-libvips-linux-s390x": "1.3.4",
|
|
176
|
-
"@img/sharp-libvips-linux-x64": "1.3.4",
|
|
177
|
-
"@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
|
|
178
|
-
"@img/sharp-libvips-linuxmusl-x64": "1.3.4",
|
|
179
|
-
"@img/sharp-linux-arm": "0.35.5",
|
|
180
|
-
"@img/sharp-linux-arm64": "0.35.5",
|
|
181
|
-
"@img/sharp-linux-ppc64": "0.35.5",
|
|
182
|
-
"@img/sharp-linux-riscv64": "0.35.5",
|
|
183
|
-
"@img/sharp-linux-s390x": "0.35.5",
|
|
184
|
-
"@img/sharp-linux-x64": "0.35.5",
|
|
185
|
-
"@img/sharp-linuxmusl-arm64": "0.35.5",
|
|
186
|
-
"@img/sharp-linuxmusl-x64": "0.35.5",
|
|
187
|
-
"@img/sharp-webcontainers-wasm32": "0.35.5",
|
|
188
|
-
"@img/sharp-win32-arm64": "0.35.5",
|
|
189
|
-
"@img/sharp-win32-ia32": "0.35.5",
|
|
190
|
-
"@img/sharp-win32-x64": "0.35.5"
|
|
191
|
-
},
|
|
192
|
-
"peerDependenciesMeta": {
|
|
193
|
-
"@types/node": {
|
|
194
|
-
"optional": true
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"devDependencies": {
|
|
198
|
-
"@biomejs/biome": "^2.5.14",
|
|
199
|
-
"@cpplint/cli": "^0.1.0",
|
|
200
|
-
"@emnapi/runtime": "^1.11.3",
|
|
201
|
-
"@img/sharp-libvips-dev": "1.3.4",
|
|
202
|
-
"@img/sharp-libvips-dev-wasm32": "1.3.4",
|
|
203
|
-
"@img/sharp-libvips-win32-arm64": "1.3.4",
|
|
204
|
-
"@img/sharp-libvips-win32-ia32": "1.3.4",
|
|
205
|
-
"@img/sharp-libvips-win32-x64": "1.3.4",
|
|
206
|
-
"@types/node": "*",
|
|
207
|
-
"emnapi": "^1.11.3",
|
|
208
|
-
"exif-reader": "^2.0.3",
|
|
209
|
-
"icc": "^4.0.0",
|
|
210
|
-
"node-addon-api": "^8.9.2",
|
|
211
|
-
"node-gyp": "^12.4.0",
|
|
212
|
-
"publint": "^0.3.24",
|
|
213
|
-
"tar-fs": "^3.1.3",
|
|
214
|
-
"tsd": "^0.33.0",
|
|
215
|
-
"yauzl": "^3.4.0"
|
|
216
|
-
},
|
|
217
|
-
"license": "Apache-2.0",
|
|
218
|
-
"engines": {
|
|
219
|
-
"node": ">=20.9.0"
|
|
220
|
-
},
|
|
221
|
-
"config": {
|
|
222
|
-
"libvips": ">=8.18.7"
|
|
223
|
-
},
|
|
224
|
-
"funding": {
|
|
225
|
-
"url": "https://opencollective.com/libvips"
|
|
226
|
-
}
|
|
227
|
-
}
|
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
# Copyright 2013 Lovell Fuller and others.
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
{ # noqa: B018
|
|
5
|
-
'variables': {
|
|
6
|
-
'vips_version': '<!(node -p "require(\'../dist/libvips.cjs\').minimumLibvipsVersion")',
|
|
7
|
-
'platform_and_arch': '<!(node -p "require(\'../dist/libvips.cjs\').buildPlatformArch()")',
|
|
8
|
-
'sharp_version': '<!(node -p "require(\'../package.json\').version")',
|
|
9
|
-
'sharp_libvips_version': '<!(node -p "require(\'../package.json\').optionalDependencies[\'@img/sharp-libvips-<(platform_and_arch)\']")',
|
|
10
|
-
'sharp_libvips_yarn_locator': '<!(node -p "require(\'../dist/libvips.cjs\').yarnLocator()")',
|
|
11
|
-
'sharp_libvips_include_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsIncludeDir()")',
|
|
12
|
-
'sharp_libvips_cplusplus_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsCPlusPlusDir()")',
|
|
13
|
-
'sharp_libvips_lib_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsLibDir()")'
|
|
14
|
-
},
|
|
15
|
-
'targets': [{
|
|
16
|
-
'target_name': 'libvips-cpp-<(vips_version)',
|
|
17
|
-
'conditions': [
|
|
18
|
-
['OS == "win"', {
|
|
19
|
-
# Build libvips C++ binding for Windows due to MSVC std library ABI changes
|
|
20
|
-
'type': 'shared_library',
|
|
21
|
-
'defines': [
|
|
22
|
-
'_VIPS_PUBLIC=__declspec(dllexport)',
|
|
23
|
-
'_ALLOW_KEYWORD_MACROS',
|
|
24
|
-
'_HAS_EXCEPTIONS=1',
|
|
25
|
-
'G_DISABLE_ASSERT',
|
|
26
|
-
'G_DISABLE_CAST_CHECKS',
|
|
27
|
-
'G_DISABLE_CHECKS'
|
|
28
|
-
],
|
|
29
|
-
'sources': [
|
|
30
|
-
'<(sharp_libvips_cplusplus_dir)/VConnection.cpp',
|
|
31
|
-
'<(sharp_libvips_cplusplus_dir)/VError.cpp',
|
|
32
|
-
'<(sharp_libvips_cplusplus_dir)/VImage.cpp',
|
|
33
|
-
'<(sharp_libvips_cplusplus_dir)/VInterpolate.cpp',
|
|
34
|
-
'<(sharp_libvips_cplusplus_dir)/VRegion.cpp'
|
|
35
|
-
],
|
|
36
|
-
'include_dirs': [
|
|
37
|
-
'<(sharp_libvips_include_dir)',
|
|
38
|
-
'<(sharp_libvips_include_dir)/glib-2.0',
|
|
39
|
-
'<(sharp_libvips_lib_dir)/glib-2.0/include'
|
|
40
|
-
],
|
|
41
|
-
'link_settings': {
|
|
42
|
-
'library_dirs': [
|
|
43
|
-
'<(sharp_libvips_lib_dir)'
|
|
44
|
-
],
|
|
45
|
-
'libraries': [
|
|
46
|
-
'libvips.lib'
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
'configurations': {
|
|
50
|
-
'Release': {
|
|
51
|
-
'msvs_settings': {
|
|
52
|
-
'VCCLCompilerTool': {
|
|
53
|
-
"AdditionalOptions": [
|
|
54
|
-
"/std:c++17"
|
|
55
|
-
],
|
|
56
|
-
'ExceptionHandling': 1,
|
|
57
|
-
'Optimization': 1,
|
|
58
|
-
'WholeProgramOptimization': 'true'
|
|
59
|
-
},
|
|
60
|
-
'VCLibrarianTool': {
|
|
61
|
-
'AdditionalOptions': [
|
|
62
|
-
'/LTCG:INCREMENTAL'
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
'VCLinkerTool': {
|
|
66
|
-
'ImageHasSafeExceptionHandlers': 'false',
|
|
67
|
-
'OptimizeReferences': 2,
|
|
68
|
-
'EnableCOMDATFolding': 2,
|
|
69
|
-
'LinkIncremental': 1,
|
|
70
|
-
'AdditionalOptions': [
|
|
71
|
-
'/LTCG:INCREMENTAL'
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
'msvs_disabled_warnings': [
|
|
76
|
-
4275
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
# Ignore this target for non-Windows
|
|
82
|
-
'type': 'none'
|
|
83
|
-
}]
|
|
84
|
-
]
|
|
85
|
-
}, {
|
|
86
|
-
'target_name': 'sharp-<(platform_and_arch)-<(sharp_version)',
|
|
87
|
-
'defines': [
|
|
88
|
-
'G_DISABLE_ASSERT',
|
|
89
|
-
'G_DISABLE_CAST_CHECKS',
|
|
90
|
-
'G_DISABLE_CHECKS',
|
|
91
|
-
'NAPI_VERSION=9',
|
|
92
|
-
'NODE_ADDON_API_DISABLE_DEPRECATED',
|
|
93
|
-
'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'
|
|
94
|
-
],
|
|
95
|
-
'dependencies': [
|
|
96
|
-
'<!(node -p "require(\'node-addon-api\').gyp")',
|
|
97
|
-
'libvips-cpp-<(vips_version)'
|
|
98
|
-
],
|
|
99
|
-
'variables': {
|
|
100
|
-
'conditions': [
|
|
101
|
-
['OS != "win"', {
|
|
102
|
-
'pkg_config_path': '<!(node -p "require(\'../dist/libvips.cjs\').pkgConfigPath()")',
|
|
103
|
-
'use_global_libvips': '<!(node -p "Boolean(require(\'../dist/libvips.cjs\').useGlobalLibvips()).toString()")'
|
|
104
|
-
}, {
|
|
105
|
-
'pkg_config_path': '',
|
|
106
|
-
'use_global_libvips': ''
|
|
107
|
-
}]
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
'sources': [
|
|
111
|
-
'common.cc',
|
|
112
|
-
'metadata.cc',
|
|
113
|
-
'stats.cc',
|
|
114
|
-
'operations.cc',
|
|
115
|
-
'pipeline.cc',
|
|
116
|
-
'utilities.cc',
|
|
117
|
-
'sharp.cc'
|
|
118
|
-
],
|
|
119
|
-
'include_dirs': [
|
|
120
|
-
'<!(node -p "require(\'node-addon-api\').include_dir")',
|
|
121
|
-
],
|
|
122
|
-
'conditions': [
|
|
123
|
-
['use_global_libvips == "true"', {
|
|
124
|
-
# Use pkg-config for include and lib
|
|
125
|
-
'include_dirs': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s/-I//g)'],
|
|
126
|
-
'libraries': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --libs vips-cpp)'],
|
|
127
|
-
'defines': [
|
|
128
|
-
'SHARP_USE_GLOBAL_LIBVIPS'
|
|
129
|
-
],
|
|
130
|
-
'conditions': [
|
|
131
|
-
['OS == "linux"', {
|
|
132
|
-
'defines': [
|
|
133
|
-
# Inspect libvips-cpp.so to determine which C++11 ABI version was used and set _GLIBCXX_USE_CXX11_ABI accordingly. This is quite horrible.
|
|
134
|
-
'_GLIBCXX_USE_CXX11_ABI=<!(if readelf -Ws "$(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --variable libdir vips-cpp)/libvips-cpp.so" | c++filt | grep -qF __cxx11;then echo "1";else echo "0";fi)'
|
|
135
|
-
]
|
|
136
|
-
}]
|
|
137
|
-
]
|
|
138
|
-
}, {
|
|
139
|
-
# Use pre-built libvips stored locally within node_modules
|
|
140
|
-
'include_dirs': [
|
|
141
|
-
'<(sharp_libvips_include_dir)',
|
|
142
|
-
'<(sharp_libvips_include_dir)/glib-2.0',
|
|
143
|
-
'<(sharp_libvips_lib_dir)/glib-2.0/include'
|
|
144
|
-
],
|
|
145
|
-
'library_dirs': [
|
|
146
|
-
'<(sharp_libvips_lib_dir)'
|
|
147
|
-
],
|
|
148
|
-
'conditions': [
|
|
149
|
-
['OS == "win"', {
|
|
150
|
-
'defines': [
|
|
151
|
-
'_ALLOW_KEYWORD_MACROS',
|
|
152
|
-
'_FILE_OFFSET_BITS=64',
|
|
153
|
-
'_HAS_EXCEPTIONS=1'
|
|
154
|
-
],
|
|
155
|
-
'link_settings': {
|
|
156
|
-
'libraries': [
|
|
157
|
-
'libvips.lib'
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
}],
|
|
161
|
-
['OS == "mac"', {
|
|
162
|
-
'link_settings': {
|
|
163
|
-
'libraries': [
|
|
164
|
-
'libvips-cpp.<(vips_version).dylib'
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
'xcode_settings': {
|
|
168
|
-
'OTHER_LDFLAGS': [
|
|
169
|
-
'-Wl,-s',
|
|
170
|
-
'-Wl,-dead_strip',
|
|
171
|
-
# Ensure runtime linking is relative to sharp.node
|
|
172
|
-
'-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'',
|
|
173
|
-
'-Wl,-rpath,\'@loader_path/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
|
|
174
|
-
'-Wl,-rpath,\'@loader_path/../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
175
|
-
'-Wl,-rpath,\'@loader_path/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
176
|
-
'-Wl,-rpath,\'@loader_path/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
177
|
-
'-Wl,-rpath,\'@loader_path/../../../../../@img-sharp-libvips-<(platform_and_arch)-npm-<(sharp_libvips_version)-<(sharp_libvips_yarn_locator)/node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
}],
|
|
181
|
-
['OS == "linux"', {
|
|
182
|
-
'defines': [
|
|
183
|
-
'_GLIBCXX_USE_CXX11_ABI=1'
|
|
184
|
-
],
|
|
185
|
-
'cflags_cc': [
|
|
186
|
-
'<!(node -p "require(\'detect-libc\').isNonGlibcLinuxSync() ? \'\' : \'-flto=auto\'")'
|
|
187
|
-
],
|
|
188
|
-
'link_settings': {
|
|
189
|
-
'libraries': [
|
|
190
|
-
'-l:libvips-cpp.so.<(vips_version)'
|
|
191
|
-
],
|
|
192
|
-
'ldflags': [
|
|
193
|
-
'-lstdc++fs',
|
|
194
|
-
'-Wl,-s',
|
|
195
|
-
'-Wl,--disable-new-dtags',
|
|
196
|
-
'-Wl,-z,nodelete',
|
|
197
|
-
'-Wl,-Bsymbolic-functions',
|
|
198
|
-
'-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',
|
|
199
|
-
'-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
|
|
200
|
-
'-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
201
|
-
'-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
202
|
-
'-Wl,-rpath,\'$$ORIGIN/../../../../../@img-sharp-libvips-<(platform_and_arch)-npm-<(sharp_libvips_version)-<(sharp_libvips_yarn_locator)/node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
}],
|
|
206
|
-
['OS == "emscripten"', {
|
|
207
|
-
'product_extension': 'node.js',
|
|
208
|
-
'cflags_cc': [
|
|
209
|
-
'-fwasm-exceptions'
|
|
210
|
-
],
|
|
211
|
-
'link_settings': {
|
|
212
|
-
'ldflags': [
|
|
213
|
-
'-fwasm-exceptions',
|
|
214
|
-
'--pre-js=<!(node -p "require.resolve(\'./emscripten/pre.js\')")',
|
|
215
|
-
'-Oz',
|
|
216
|
-
'-sALLOW_MEMORY_GROWTH',
|
|
217
|
-
'-sENVIRONMENT=node',
|
|
218
|
-
'-sNODERAWFS',
|
|
219
|
-
'-sWASM_ASYNC_COMPILATION=0'
|
|
220
|
-
],
|
|
221
|
-
'libraries': [
|
|
222
|
-
'<!@(PKG_CONFIG_PATH="<!(node -p "require(\'@img/sharp-libvips-dev-wasm32/lib\')")/pkgconfig" pkg-config --static --libs vips-cpp)'
|
|
223
|
-
],
|
|
224
|
-
}
|
|
225
|
-
}]
|
|
226
|
-
]
|
|
227
|
-
}]
|
|
228
|
-
],
|
|
229
|
-
'cflags_cc': [
|
|
230
|
-
'-std=c++17',
|
|
231
|
-
'-fexceptions',
|
|
232
|
-
'-Wall',
|
|
233
|
-
'-Os'
|
|
234
|
-
],
|
|
235
|
-
'xcode_settings': {
|
|
236
|
-
'CLANG_CXX_LANGUAGE_STANDARD': 'c++17',
|
|
237
|
-
'MACOSX_DEPLOYMENT_TARGET': '10.15',
|
|
238
|
-
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
239
|
-
'GCC_ENABLE_CPP_RTTI': 'YES',
|
|
240
|
-
'OTHER_CPLUSPLUSFLAGS': [
|
|
241
|
-
'-fexceptions',
|
|
242
|
-
'-Wall',
|
|
243
|
-
'-Oz'
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
'configurations': {
|
|
247
|
-
'Release': {
|
|
248
|
-
'conditions': [
|
|
249
|
-
['target_arch == "arm"', {
|
|
250
|
-
'cflags_cc': [
|
|
251
|
-
'-Wno-psabi'
|
|
252
|
-
]
|
|
253
|
-
}],
|
|
254
|
-
['OS == "win"', {
|
|
255
|
-
'msvs_settings': {
|
|
256
|
-
'VCCLCompilerTool': {
|
|
257
|
-
"AdditionalOptions": [
|
|
258
|
-
"/std:c++17"
|
|
259
|
-
],
|
|
260
|
-
'ExceptionHandling': 1,
|
|
261
|
-
'Optimization': 1,
|
|
262
|
-
'WholeProgramOptimization': 'true'
|
|
263
|
-
},
|
|
264
|
-
'VCLibrarianTool': {
|
|
265
|
-
'AdditionalOptions': [
|
|
266
|
-
'/LTCG:INCREMENTAL'
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
'VCLinkerTool': {
|
|
270
|
-
'ImageHasSafeExceptionHandlers': 'false',
|
|
271
|
-
'OptimizeReferences': 2,
|
|
272
|
-
'EnableCOMDATFolding': 2,
|
|
273
|
-
'LinkIncremental': 1,
|
|
274
|
-
'AdditionalOptions': [
|
|
275
|
-
'/LTCG:INCREMENTAL'
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
'msvs_disabled_warnings': [
|
|
280
|
-
4275
|
|
281
|
-
]
|
|
282
|
-
}]
|
|
283
|
-
]
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
}, {
|
|
287
|
-
'target_name': 'copy-dll',
|
|
288
|
-
'type': 'none',
|
|
289
|
-
'dependencies': [
|
|
290
|
-
'sharp-<(platform_and_arch)-<(sharp_version)'
|
|
291
|
-
],
|
|
292
|
-
'conditions': [
|
|
293
|
-
['OS == "win"', {
|
|
294
|
-
'copies': [{
|
|
295
|
-
'destination': 'build/Release',
|
|
296
|
-
'files': [
|
|
297
|
-
'<(sharp_libvips_lib_dir)/libvips-42.dll'
|
|
298
|
-
]
|
|
299
|
-
}]
|
|
300
|
-
}]
|
|
301
|
-
]
|
|
302
|
-
}]
|
|
303
|
-
}
|