@basemaps/lambda-tiler 7.12.0 → 7.13.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/CHANGELOG.md +11 -0
- package/build/routes/__tests__/tile.style.json.test.js +3 -1
- package/build/routes/__tests__/tile.style.json.test.js.map +1 -1
- package/build/routes/tile.style.json.d.ts +4 -0
- package/build/routes/tile.style.json.js +1 -1
- package/build/routes/tile.style.json.js.map +1 -1
- package/build/util/__test__/nztm.style.test.js +16 -7
- package/build/util/__test__/nztm.style.test.js.map +1 -1
- package/build/util/nztm.style.js +0 -3
- package/build/util/nztm.style.js.map +1 -1
- package/dist/index.js +86535 -0
- package/dist/node_modules/.package-lock.json +179 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/README.md +47 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/glib-2.0/include/glibconfig.h +219 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/index.js +1 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.42 +0 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/package.json +45 -0
- package/dist/node_modules/@img/sharp-libvips-linux-arm64/versions.json +31 -0
- package/dist/node_modules/@img/sharp-linux-arm64/LICENSE +191 -0
- package/dist/node_modules/@img/sharp-linux-arm64/README.md +18 -0
- package/dist/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node +0 -0
- package/dist/node_modules/@img/sharp-linux-arm64/package.json +47 -0
- package/dist/node_modules/color/LICENSE +21 -0
- package/dist/node_modules/color/README.md +123 -0
- package/dist/node_modules/color/index.js +496 -0
- package/dist/node_modules/color/package.json +47 -0
- package/dist/node_modules/color-convert/CHANGELOG.md +54 -0
- package/dist/node_modules/color-convert/LICENSE +21 -0
- package/dist/node_modules/color-convert/README.md +68 -0
- package/dist/node_modules/color-convert/conversions.js +839 -0
- package/dist/node_modules/color-convert/index.js +81 -0
- package/dist/node_modules/color-convert/package.json +48 -0
- package/dist/node_modules/color-convert/route.js +97 -0
- package/dist/node_modules/color-name/LICENSE +8 -0
- package/dist/node_modules/color-name/README.md +11 -0
- package/dist/node_modules/color-name/index.js +152 -0
- package/dist/node_modules/color-name/package.json +28 -0
- package/dist/node_modules/color-string/LICENSE +21 -0
- package/dist/node_modules/color-string/README.md +62 -0
- package/dist/node_modules/color-string/index.js +242 -0
- package/dist/node_modules/color-string/package.json +39 -0
- package/dist/node_modules/detect-libc/LICENSE +201 -0
- package/dist/node_modules/detect-libc/README.md +163 -0
- package/dist/node_modules/detect-libc/index.d.ts +14 -0
- package/dist/node_modules/detect-libc/lib/detect-libc.js +267 -0
- package/dist/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/dist/node_modules/detect-libc/lib/process.js +24 -0
- package/dist/node_modules/detect-libc/package.json +40 -0
- package/dist/node_modules/is-arrayish/LICENSE +21 -0
- package/dist/node_modules/is-arrayish/README.md +16 -0
- package/dist/node_modules/is-arrayish/index.js +9 -0
- package/dist/node_modules/is-arrayish/package.json +45 -0
- package/dist/node_modules/is-arrayish/yarn-error.log +1443 -0
- package/dist/node_modules/lerc/CHANGELOG.md +69 -0
- package/dist/node_modules/lerc/LercDecode.d.ts +61 -0
- package/dist/node_modules/lerc/LercDecode.es.d.ts +61 -0
- package/dist/node_modules/lerc/LercDecode.es.js +434 -0
- package/dist/node_modules/lerc/LercDecode.es.min.js +17 -0
- package/dist/node_modules/lerc/LercDecode.js +448 -0
- package/dist/node_modules/lerc/LercDecode.min.js +17 -0
- package/dist/node_modules/lerc/README.md +123 -0
- package/dist/node_modules/lerc/lerc-wasm.wasm +0 -0
- package/dist/node_modules/lerc/package.json +30 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/README.md +654 -0
- package/dist/node_modules/semver/bin/semver.js +188 -0
- package/dist/node_modules/semver/classes/comparator.js +141 -0
- package/dist/node_modules/semver/classes/index.js +5 -0
- package/dist/node_modules/semver/classes/range.js +554 -0
- package/dist/node_modules/semver/classes/semver.js +302 -0
- package/dist/node_modules/semver/functions/clean.js +6 -0
- package/dist/node_modules/semver/functions/cmp.js +52 -0
- package/dist/node_modules/semver/functions/coerce.js +60 -0
- package/dist/node_modules/semver/functions/compare-build.js +7 -0
- package/dist/node_modules/semver/functions/compare-loose.js +3 -0
- package/dist/node_modules/semver/functions/compare.js +5 -0
- package/dist/node_modules/semver/functions/diff.js +65 -0
- package/dist/node_modules/semver/functions/eq.js +3 -0
- package/dist/node_modules/semver/functions/gt.js +3 -0
- package/dist/node_modules/semver/functions/gte.js +3 -0
- package/dist/node_modules/semver/functions/inc.js +19 -0
- package/dist/node_modules/semver/functions/lt.js +3 -0
- package/dist/node_modules/semver/functions/lte.js +3 -0
- package/dist/node_modules/semver/functions/major.js +3 -0
- package/dist/node_modules/semver/functions/minor.js +3 -0
- package/dist/node_modules/semver/functions/neq.js +3 -0
- package/dist/node_modules/semver/functions/parse.js +16 -0
- package/dist/node_modules/semver/functions/patch.js +3 -0
- package/dist/node_modules/semver/functions/prerelease.js +6 -0
- package/dist/node_modules/semver/functions/rcompare.js +3 -0
- package/dist/node_modules/semver/functions/rsort.js +3 -0
- package/dist/node_modules/semver/functions/satisfies.js +10 -0
- package/dist/node_modules/semver/functions/sort.js +3 -0
- package/dist/node_modules/semver/functions/valid.js +6 -0
- package/dist/node_modules/semver/index.js +89 -0
- package/dist/node_modules/semver/internal/constants.js +35 -0
- package/dist/node_modules/semver/internal/debug.js +9 -0
- package/dist/node_modules/semver/internal/identifiers.js +23 -0
- package/dist/node_modules/semver/internal/lrucache.js +40 -0
- package/dist/node_modules/semver/internal/parse-options.js +15 -0
- package/dist/node_modules/semver/internal/re.js +217 -0
- package/dist/node_modules/semver/package.json +77 -0
- package/dist/node_modules/semver/preload.js +2 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +4 -0
- package/dist/node_modules/semver/ranges/intersects.js +7 -0
- package/dist/node_modules/semver/ranges/ltr.js +4 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/dist/node_modules/semver/ranges/min-version.js +61 -0
- package/dist/node_modules/semver/ranges/outside.js +80 -0
- package/dist/node_modules/semver/ranges/simplify.js +47 -0
- package/dist/node_modules/semver/ranges/subset.js +247 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +8 -0
- package/dist/node_modules/semver/ranges/valid.js +11 -0
- package/dist/node_modules/sharp/LICENSE +191 -0
- package/dist/node_modules/sharp/README.md +118 -0
- package/dist/node_modules/sharp/install/check.js +36 -0
- package/dist/node_modules/sharp/lib/channel.js +174 -0
- package/dist/node_modules/sharp/lib/colour.js +182 -0
- package/dist/node_modules/sharp/lib/composite.js +210 -0
- package/dist/node_modules/sharp/lib/constructor.js +444 -0
- package/dist/node_modules/sharp/lib/index.d.ts +1717 -0
- package/dist/node_modules/sharp/lib/index.js +16 -0
- package/dist/node_modules/sharp/lib/input.js +657 -0
- package/dist/node_modules/sharp/lib/is.js +169 -0
- package/dist/node_modules/sharp/lib/libvips.js +171 -0
- package/dist/node_modules/sharp/lib/operation.js +919 -0
- package/dist/node_modules/sharp/lib/output.js +1561 -0
- package/dist/node_modules/sharp/lib/resize.js +582 -0
- package/dist/node_modules/sharp/lib/sharp.js +86 -0
- package/dist/node_modules/sharp/lib/utility.js +287 -0
- package/dist/node_modules/sharp/package.json +219 -0
- package/dist/node_modules/sharp/src/binding.gyp +277 -0
- package/dist/node_modules/sharp/src/common.cc +1090 -0
- package/dist/node_modules/sharp/src/common.h +393 -0
- package/dist/node_modules/sharp/src/metadata.cc +287 -0
- package/dist/node_modules/sharp/src/metadata.h +82 -0
- package/dist/node_modules/sharp/src/operations.cc +471 -0
- package/dist/node_modules/sharp/src/operations.h +125 -0
- package/dist/node_modules/sharp/src/pipeline.cc +1724 -0
- package/dist/node_modules/sharp/src/pipeline.h +385 -0
- package/dist/node_modules/sharp/src/sharp.cc +40 -0
- package/dist/node_modules/sharp/src/stats.cc +183 -0
- package/dist/node_modules/sharp/src/stats.h +59 -0
- package/dist/node_modules/sharp/src/utilities.cc +269 -0
- package/dist/node_modules/sharp/src/utilities.h +19 -0
- package/dist/node_modules/simple-swizzle/LICENSE +21 -0
- package/dist/node_modules/simple-swizzle/README.md +39 -0
- package/dist/node_modules/simple-swizzle/index.js +29 -0
- package/dist/node_modules/simple-swizzle/package.json +36 -0
- package/dist/package-lock.json +610 -0
- package/dist/package.json +40 -0
- package/dist/static/expected_tile_2193_153_255_z7.png +0 -0
- package/dist/static/expected_tile_NZTM2000Quad_30_33_z6.png +0 -0
- package/dist/static/expected_tile_WebMercatorQuad_252_156_z8.png +0 -0
- package/package.json +2 -2
- package/src/routes/__tests__/tile.style.json.test.ts +3 -2
- package/src/routes/tile.style.json.ts +1 -1
- package/src/util/__test__/nztm.style.test.ts +18 -8
- package/src/util/nztm.style.ts +0 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# Copyright 2013 Lovell Fuller and others.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
{
|
|
5
|
+
'variables': {
|
|
6
|
+
'vips_version': '<!(node -p "require(\'../lib/libvips\').minimumLibvipsVersion")',
|
|
7
|
+
'platform_and_arch': '<!(node -p "require(\'../lib/libvips\').buildPlatformArch()")',
|
|
8
|
+
'sharp_libvips_version': '<!(node -p "require(\'../package.json\').optionalDependencies[\'@img/sharp-libvips-<(platform_and_arch)\']")',
|
|
9
|
+
'sharp_libvips_include_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsIncludeDir()")',
|
|
10
|
+
'sharp_libvips_cplusplus_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsCPlusPlusDir()")',
|
|
11
|
+
'sharp_libvips_lib_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsLibDir()")'
|
|
12
|
+
},
|
|
13
|
+
'targets': [{
|
|
14
|
+
'target_name': 'libvips-cpp',
|
|
15
|
+
'conditions': [
|
|
16
|
+
['OS == "win"', {
|
|
17
|
+
# Build libvips C++ binding for Windows due to MSVC std library ABI changes
|
|
18
|
+
'type': 'shared_library',
|
|
19
|
+
'defines': [
|
|
20
|
+
'VIPS_CPLUSPLUS_EXPORTS',
|
|
21
|
+
'_ALLOW_KEYWORD_MACROS'
|
|
22
|
+
],
|
|
23
|
+
'sources': [
|
|
24
|
+
'<(sharp_libvips_cplusplus_dir)/VConnection.cpp',
|
|
25
|
+
'<(sharp_libvips_cplusplus_dir)/VError.cpp',
|
|
26
|
+
'<(sharp_libvips_cplusplus_dir)/VImage.cpp',
|
|
27
|
+
'<(sharp_libvips_cplusplus_dir)/VInterpolate.cpp',
|
|
28
|
+
'<(sharp_libvips_cplusplus_dir)/VRegion.cpp'
|
|
29
|
+
],
|
|
30
|
+
'include_dirs': [
|
|
31
|
+
'<(sharp_libvips_include_dir)',
|
|
32
|
+
'<(sharp_libvips_include_dir)/glib-2.0',
|
|
33
|
+
'<(sharp_libvips_lib_dir)/glib-2.0/include'
|
|
34
|
+
],
|
|
35
|
+
'link_settings': {
|
|
36
|
+
'library_dirs': [
|
|
37
|
+
'<(sharp_libvips_lib_dir)'
|
|
38
|
+
],
|
|
39
|
+
'libraries': [
|
|
40
|
+
'libvips.lib'
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
'configurations': {
|
|
44
|
+
'Release': {
|
|
45
|
+
'msvs_settings': {
|
|
46
|
+
'VCCLCompilerTool': {
|
|
47
|
+
'ExceptionHandling': 1,
|
|
48
|
+
'Optimization': 1,
|
|
49
|
+
'WholeProgramOptimization': 'true'
|
|
50
|
+
},
|
|
51
|
+
'VCLibrarianTool': {
|
|
52
|
+
'AdditionalOptions': [
|
|
53
|
+
'/LTCG:INCREMENTAL'
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
'VCLinkerTool': {
|
|
57
|
+
'ImageHasSafeExceptionHandlers': 'false',
|
|
58
|
+
'OptimizeReferences': 2,
|
|
59
|
+
'EnableCOMDATFolding': 2,
|
|
60
|
+
'LinkIncremental': 1,
|
|
61
|
+
'AdditionalOptions': [
|
|
62
|
+
'/LTCG:INCREMENTAL'
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
'msvs_disabled_warnings': [
|
|
67
|
+
4275
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
# Ignore this target for non-Windows
|
|
73
|
+
'type': 'none'
|
|
74
|
+
}]
|
|
75
|
+
]
|
|
76
|
+
}, {
|
|
77
|
+
'target_name': 'sharp-<(platform_and_arch)',
|
|
78
|
+
'defines': [
|
|
79
|
+
'NAPI_VERSION=9',
|
|
80
|
+
'NODE_ADDON_API_DISABLE_DEPRECATED',
|
|
81
|
+
'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'
|
|
82
|
+
],
|
|
83
|
+
'dependencies': [
|
|
84
|
+
'<!(node -p "require(\'node-addon-api\').gyp")',
|
|
85
|
+
'libvips-cpp'
|
|
86
|
+
],
|
|
87
|
+
'variables': {
|
|
88
|
+
'conditions': [
|
|
89
|
+
['OS != "win"', {
|
|
90
|
+
'pkg_config_path': '<!(node -p "require(\'../lib/libvips\').pkgConfigPath()")',
|
|
91
|
+
'use_global_libvips': '<!(node -p "Boolean(require(\'../lib/libvips\').useGlobalLibvips()).toString()")'
|
|
92
|
+
}, {
|
|
93
|
+
'pkg_config_path': '',
|
|
94
|
+
'use_global_libvips': ''
|
|
95
|
+
}]
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
'sources': [
|
|
99
|
+
'common.cc',
|
|
100
|
+
'metadata.cc',
|
|
101
|
+
'stats.cc',
|
|
102
|
+
'operations.cc',
|
|
103
|
+
'pipeline.cc',
|
|
104
|
+
'utilities.cc',
|
|
105
|
+
'sharp.cc'
|
|
106
|
+
],
|
|
107
|
+
'include_dirs': [
|
|
108
|
+
'<!(node -p "require(\'node-addon-api\').include_dir")',
|
|
109
|
+
],
|
|
110
|
+
'conditions': [
|
|
111
|
+
['use_global_libvips == "true"', {
|
|
112
|
+
# Use pkg-config for include and lib
|
|
113
|
+
'include_dirs': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s\/-I//g)'],
|
|
114
|
+
'libraries': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --libs vips-cpp)'],
|
|
115
|
+
'defines': [
|
|
116
|
+
'SHARP_USE_GLOBAL_LIBVIPS'
|
|
117
|
+
],
|
|
118
|
+
'conditions': [
|
|
119
|
+
['OS == "linux"', {
|
|
120
|
+
'defines': [
|
|
121
|
+
# Inspect libvips-cpp.so to determine which C++11 ABI version was used and set _GLIBCXX_USE_CXX11_ABI accordingly. This is quite horrible.
|
|
122
|
+
'_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)'
|
|
123
|
+
]
|
|
124
|
+
}]
|
|
125
|
+
]
|
|
126
|
+
}, {
|
|
127
|
+
# Use pre-built libvips stored locally within node_modules
|
|
128
|
+
'include_dirs': [
|
|
129
|
+
'<(sharp_libvips_include_dir)',
|
|
130
|
+
'<(sharp_libvips_include_dir)/glib-2.0',
|
|
131
|
+
'<(sharp_libvips_lib_dir)/glib-2.0/include'
|
|
132
|
+
],
|
|
133
|
+
'library_dirs': [
|
|
134
|
+
'<(sharp_libvips_lib_dir)'
|
|
135
|
+
],
|
|
136
|
+
'conditions': [
|
|
137
|
+
['OS == "win"', {
|
|
138
|
+
'defines': [
|
|
139
|
+
'_ALLOW_KEYWORD_MACROS',
|
|
140
|
+
'_FILE_OFFSET_BITS=64'
|
|
141
|
+
],
|
|
142
|
+
'link_settings': {
|
|
143
|
+
'libraries': [
|
|
144
|
+
'libvips.lib'
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}],
|
|
148
|
+
['OS == "mac"', {
|
|
149
|
+
'link_settings': {
|
|
150
|
+
'libraries': [
|
|
151
|
+
'libvips-cpp.42.dylib'
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
'xcode_settings': {
|
|
155
|
+
'OTHER_LDFLAGS': [
|
|
156
|
+
# Ensure runtime linking is relative to sharp.node
|
|
157
|
+
'-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'',
|
|
158
|
+
'-Wl,-rpath,\'@loader_path/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
|
|
159
|
+
'-Wl,-rpath,\'@loader_path/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
160
|
+
'-Wl,-rpath,\'@loader_path/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
}],
|
|
164
|
+
['OS == "linux"', {
|
|
165
|
+
'defines': [
|
|
166
|
+
'_GLIBCXX_USE_CXX11_ABI=1'
|
|
167
|
+
],
|
|
168
|
+
'link_settings': {
|
|
169
|
+
'libraries': [
|
|
170
|
+
'-l:libvips-cpp.so.42'
|
|
171
|
+
],
|
|
172
|
+
'ldflags': [
|
|
173
|
+
'-Wl,-s',
|
|
174
|
+
'-Wl,--disable-new-dtags',
|
|
175
|
+
'-Wl,-z,nodelete',
|
|
176
|
+
'-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',
|
|
177
|
+
'-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
|
|
178
|
+
'-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
|
|
179
|
+
'-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
}],
|
|
183
|
+
['OS == "emscripten"', {
|
|
184
|
+
'product_extension': 'node.js',
|
|
185
|
+
'link_settings': {
|
|
186
|
+
'ldflags': [
|
|
187
|
+
'-fexceptions',
|
|
188
|
+
'--pre-js=<!(node -p "require.resolve(\'./emscripten/pre.js\')")',
|
|
189
|
+
'-Oz',
|
|
190
|
+
'-sALLOW_MEMORY_GROWTH',
|
|
191
|
+
'-sENVIRONMENT=node',
|
|
192
|
+
'-sEXPORTED_FUNCTIONS=["_vips_shutdown", "_uv_library_shutdown"]',
|
|
193
|
+
'-sNODERAWFS',
|
|
194
|
+
'-sTEXTDECODER=0',
|
|
195
|
+
'-sWASM_ASYNC_COMPILATION=0',
|
|
196
|
+
'-sWASM_BIGINT'
|
|
197
|
+
],
|
|
198
|
+
'libraries': [
|
|
199
|
+
'<!@(PKG_CONFIG_PATH="<!(node -p "require(\'@img/sharp-libvips-dev-wasm32/lib\')")/pkgconfig" pkg-config --static --libs vips-cpp)'
|
|
200
|
+
],
|
|
201
|
+
}
|
|
202
|
+
}]
|
|
203
|
+
]
|
|
204
|
+
}]
|
|
205
|
+
],
|
|
206
|
+
'cflags_cc': [
|
|
207
|
+
'-std=c++0x',
|
|
208
|
+
'-fexceptions',
|
|
209
|
+
'-Wall',
|
|
210
|
+
'-Os'
|
|
211
|
+
],
|
|
212
|
+
'xcode_settings': {
|
|
213
|
+
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
|
|
214
|
+
'MACOSX_DEPLOYMENT_TARGET': '10.13',
|
|
215
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
216
|
+
'GCC_ENABLE_CPP_RTTI': 'YES',
|
|
217
|
+
'OTHER_CPLUSPLUSFLAGS': [
|
|
218
|
+
'-fexceptions',
|
|
219
|
+
'-Wall',
|
|
220
|
+
'-Oz'
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
'configurations': {
|
|
224
|
+
'Release': {
|
|
225
|
+
'conditions': [
|
|
226
|
+
['target_arch == "arm"', {
|
|
227
|
+
'cflags_cc': [
|
|
228
|
+
'-Wno-psabi'
|
|
229
|
+
]
|
|
230
|
+
}],
|
|
231
|
+
['OS == "win"', {
|
|
232
|
+
'msvs_settings': {
|
|
233
|
+
'VCCLCompilerTool': {
|
|
234
|
+
'ExceptionHandling': 1,
|
|
235
|
+
'Optimization': 1,
|
|
236
|
+
'WholeProgramOptimization': 'true'
|
|
237
|
+
},
|
|
238
|
+
'VCLibrarianTool': {
|
|
239
|
+
'AdditionalOptions': [
|
|
240
|
+
'/LTCG:INCREMENTAL'
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
'VCLinkerTool': {
|
|
244
|
+
'ImageHasSafeExceptionHandlers': 'false',
|
|
245
|
+
'OptimizeReferences': 2,
|
|
246
|
+
'EnableCOMDATFolding': 2,
|
|
247
|
+
'LinkIncremental': 1,
|
|
248
|
+
'AdditionalOptions': [
|
|
249
|
+
'/LTCG:INCREMENTAL'
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
'msvs_disabled_warnings': [
|
|
254
|
+
4275
|
|
255
|
+
]
|
|
256
|
+
}]
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
}, {
|
|
261
|
+
'target_name': 'copy-dll',
|
|
262
|
+
'type': 'none',
|
|
263
|
+
'dependencies': [
|
|
264
|
+
'sharp-<(platform_and_arch)'
|
|
265
|
+
],
|
|
266
|
+
'conditions': [
|
|
267
|
+
['OS == "win"', {
|
|
268
|
+
'copies': [{
|
|
269
|
+
'destination': 'build/Release',
|
|
270
|
+
'files': [
|
|
271
|
+
'<(sharp_libvips_lib_dir)/libvips-42.dll'
|
|
272
|
+
]
|
|
273
|
+
}]
|
|
274
|
+
}]
|
|
275
|
+
]
|
|
276
|
+
}]
|
|
277
|
+
}
|