create-nextjs-cms 0.5.21 → 0.5.23

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.
Files changed (137) hide show
  1. package/package.json +6 -6
  2. package/templates/default/_gitignore +1 -1
  3. package/templates/default/app/(auth)/auth/login/LoginPage.tsx +5 -5
  4. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/LICENSE +191 -0
  5. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/README.md +118 -0
  6. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/install/build.js +38 -0
  7. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/install/check.js +14 -0
  8. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/channel.js +177 -0
  9. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/colour.js +195 -0
  10. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/composite.js +212 -0
  11. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/constructor.js +499 -0
  12. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/index.d.ts +1971 -0
  13. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/index.js +16 -0
  14. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/input.js +809 -0
  15. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/is.js +143 -0
  16. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/libvips.js +207 -0
  17. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/operation.js +1016 -0
  18. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/output.js +1666 -0
  19. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/resize.js +595 -0
  20. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/sharp.js +121 -0
  21. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/utility.js +291 -0
  22. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/package.json +202 -0
  23. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/binding.gyp +298 -0
  24. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/common.cc +1130 -0
  25. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/common.h +402 -0
  26. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/metadata.cc +346 -0
  27. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/metadata.h +90 -0
  28. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/operations.cc +499 -0
  29. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/operations.h +137 -0
  30. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/pipeline.cc +1814 -0
  31. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/pipeline.h +408 -0
  32. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/sharp.cc +43 -0
  33. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/stats.cc +186 -0
  34. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/stats.h +62 -0
  35. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/utilities.cc +288 -0
  36. package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/utilities.h +22 -0
  37. package/templates/default/apps/cms/node_modules/sharp/LICENSE +191 -0
  38. package/templates/default/apps/cms/node_modules/sharp/README.md +118 -0
  39. package/templates/default/apps/cms/node_modules/sharp/install/check.js +41 -0
  40. package/templates/default/apps/cms/node_modules/sharp/lib/channel.js +174 -0
  41. package/templates/default/apps/cms/node_modules/sharp/lib/colour.js +180 -0
  42. package/templates/default/apps/cms/node_modules/sharp/lib/composite.js +210 -0
  43. package/templates/default/apps/cms/node_modules/sharp/lib/constructor.js +452 -0
  44. package/templates/default/apps/cms/node_modules/sharp/lib/index.d.ts +1754 -0
  45. package/templates/default/apps/cms/node_modules/sharp/lib/index.js +16 -0
  46. package/templates/default/apps/cms/node_modules/sharp/lib/input.js +658 -0
  47. package/templates/default/apps/cms/node_modules/sharp/lib/is.js +169 -0
  48. package/templates/default/apps/cms/node_modules/sharp/lib/libvips.js +203 -0
  49. package/templates/default/apps/cms/node_modules/sharp/lib/operation.js +958 -0
  50. package/templates/default/apps/cms/node_modules/sharp/lib/output.js +1587 -0
  51. package/templates/default/apps/cms/node_modules/sharp/lib/resize.js +587 -0
  52. package/templates/default/apps/cms/node_modules/sharp/lib/sharp.js +114 -0
  53. package/templates/default/apps/cms/node_modules/sharp/lib/utility.js +296 -0
  54. package/templates/default/apps/cms/node_modules/sharp/package.json +222 -0
  55. package/templates/default/apps/cms/node_modules/sharp/src/binding.gyp +280 -0
  56. package/templates/default/apps/cms/node_modules/sharp/src/common.cc +1091 -0
  57. package/templates/default/apps/cms/node_modules/sharp/src/common.h +393 -0
  58. package/templates/default/apps/cms/node_modules/sharp/src/metadata.cc +320 -0
  59. package/templates/default/apps/cms/node_modules/sharp/src/metadata.h +85 -0
  60. package/templates/default/apps/cms/node_modules/sharp/src/operations.cc +475 -0
  61. package/templates/default/apps/cms/node_modules/sharp/src/operations.h +125 -0
  62. package/templates/default/apps/cms/node_modules/sharp/src/pipeline.cc +1758 -0
  63. package/templates/default/apps/cms/node_modules/sharp/src/pipeline.h +393 -0
  64. package/templates/default/apps/cms/node_modules/sharp/src/sharp.cc +40 -0
  65. package/templates/default/apps/cms/node_modules/sharp/src/stats.cc +183 -0
  66. package/templates/default/apps/cms/node_modules/sharp/src/stats.h +59 -0
  67. package/templates/default/apps/cms/node_modules/sharp/src/utilities.cc +269 -0
  68. package/templates/default/apps/cms/node_modules/sharp/src/utilities.h +19 -0
  69. package/templates/default/components/AdminCard.tsx +1 -1
  70. package/templates/default/components/AdminsPage.tsx +1 -1
  71. package/templates/default/components/AdvancedSettingsPage.tsx +1 -1
  72. package/templates/default/components/AnalyticsPage.tsx +1 -1
  73. package/templates/default/components/BrowsePage.tsx +2 -2
  74. package/templates/default/components/CategorizedSectionPage.tsx +3 -3
  75. package/templates/default/components/CategoryDeleteConfirmPage.tsx +4 -4
  76. package/templates/default/components/CategorySectionSelectInput.tsx +1 -1
  77. package/templates/default/components/ContainerBox.tsx +1 -1
  78. package/templates/default/components/DashboardPage.tsx +1 -1
  79. package/templates/default/components/EmailCard.tsx +1 -1
  80. package/templates/default/components/EmailPasswordForm.tsx +2 -2
  81. package/templates/default/components/EmailQuotaForm.tsx +1 -1
  82. package/templates/default/components/EmailsPage.tsx +1 -1
  83. package/templates/default/components/GalleryPhoto.tsx +1 -1
  84. package/templates/default/components/ItemEditPage.tsx +2 -2
  85. package/templates/default/components/Layout.tsx +1 -1
  86. package/templates/default/components/LogPage.tsx +1 -1
  87. package/templates/default/components/Navbar.tsx +2 -2
  88. package/templates/default/components/NavbarAlt.tsx +6 -6
  89. package/templates/default/components/NewAdminForm.tsx +2 -2
  90. package/templates/default/components/NewEmailForm.tsx +3 -3
  91. package/templates/default/components/NewPage.tsx +2 -2
  92. package/templates/default/components/NewVariantComponent.tsx +1 -1
  93. package/templates/default/components/SectionItemCard.tsx +1 -1
  94. package/templates/default/components/SectionItemStatusBadge.tsx +1 -1
  95. package/templates/default/components/SectionPage.tsx +2 -2
  96. package/templates/default/components/SelectBox.tsx +2 -2
  97. package/templates/default/components/SettingsPage.tsx +1 -1
  98. package/templates/default/components/Sidebar.tsx +3 -3
  99. package/templates/default/components/VariantEditPage.tsx +2 -2
  100. package/templates/default/components/form/Form.tsx +1 -1
  101. package/templates/default/components/form/FormInputElement.tsx +1 -1
  102. package/templates/default/components/form/helpers/{_section-hot-reload.ts → _section-hot-reload.js} +1 -1
  103. package/templates/default/components/form/helpers/util.ts +1 -1
  104. package/templates/default/components/form/inputs/ColorFormInput.tsx +1 -1
  105. package/templates/default/components/form/inputs/DateFormInput.tsx +1 -1
  106. package/templates/default/components/form/inputs/DocumentFormInput.tsx +3 -3
  107. package/templates/default/components/form/inputs/NumberFormInput.tsx +1 -1
  108. package/templates/default/components/form/inputs/PasswordFormInput.tsx +1 -1
  109. package/templates/default/components/form/inputs/PhotoFormInput.tsx +4 -4
  110. package/templates/default/components/form/inputs/SelectFormInput.tsx +1 -1
  111. package/templates/default/components/form/inputs/TagsFormInput.tsx +1 -1
  112. package/templates/default/components/form/inputs/TextFormInput.tsx +1 -1
  113. package/templates/default/components/form/inputs/TextareaFormInput.tsx +1 -1
  114. package/templates/default/components/form/inputs/VideoFormInput.tsx +3 -3
  115. package/templates/default/components/ui/badge.tsx +6 -6
  116. package/templates/default/components/ui/button.tsx +5 -5
  117. package/templates/default/components/ui/card.tsx +1 -1
  118. package/templates/default/components/ui/checkbox.tsx +1 -1
  119. package/templates/default/components/ui/dropdown-menu.tsx +6 -6
  120. package/templates/default/components/ui/input.tsx +1 -1
  121. package/templates/default/components/ui/popover.tsx +1 -1
  122. package/templates/default/components/ui/scroll-area.tsx +2 -2
  123. package/templates/default/components/ui/select.tsx +4 -4
  124. package/templates/default/components/ui/sheet.tsx +1 -1
  125. package/templates/default/components/ui/switch.tsx +1 -1
  126. package/templates/default/components/ui/table.tsx +3 -3
  127. package/templates/default/components/ui/tabs.tsx +2 -2
  128. package/templates/default/components/ui/toast.tsx +4 -4
  129. package/templates/default/eslint.config.mjs +38 -0
  130. package/templates/default/next-env.d.ts +1 -1
  131. package/templates/default/package.json +24 -33
  132. package/templates/default/postcss.config.mjs +7 -0
  133. package/templates/default/{middleware.ts → proxy.ts} +2 -3
  134. package/templates/default/styles/globals.css +107 -4
  135. package/templates/default/tsconfig.json +45 -44
  136. package/templates/default/postcss.config.js +0 -6
  137. package/templates/default/tailwind.config.js +0 -95
@@ -0,0 +1,298 @@
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_yarn_locator': '<!(node -p "require(\'../lib/libvips\').yarnLocator()")',
10
+ 'sharp_libvips_include_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsIncludeDir()")',
11
+ 'sharp_libvips_cplusplus_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsCPlusPlusDir()")',
12
+ 'sharp_libvips_lib_dir': '<!(node -p "require(\'../lib/libvips\').buildSharpLibvipsLibDir()")'
13
+ },
14
+ 'targets': [{
15
+ 'target_name': 'libvips-cpp-<(vips_version)',
16
+ 'conditions': [
17
+ ['OS == "win"', {
18
+ # Build libvips C++ binding for Windows due to MSVC std library ABI changes
19
+ 'type': 'shared_library',
20
+ 'defines': [
21
+ '_VIPS_PUBLIC=__declspec(dllexport)',
22
+ '_ALLOW_KEYWORD_MACROS',
23
+ 'G_DISABLE_ASSERT',
24
+ 'G_DISABLE_CAST_CHECKS',
25
+ 'G_DISABLE_CHECKS'
26
+ ],
27
+ 'sources': [
28
+ '<(sharp_libvips_cplusplus_dir)/VConnection.cpp',
29
+ '<(sharp_libvips_cplusplus_dir)/VError.cpp',
30
+ '<(sharp_libvips_cplusplus_dir)/VImage.cpp',
31
+ '<(sharp_libvips_cplusplus_dir)/VInterpolate.cpp',
32
+ '<(sharp_libvips_cplusplus_dir)/VRegion.cpp'
33
+ ],
34
+ 'include_dirs': [
35
+ '<(sharp_libvips_include_dir)',
36
+ '<(sharp_libvips_include_dir)/glib-2.0',
37
+ '<(sharp_libvips_lib_dir)/glib-2.0/include'
38
+ ],
39
+ 'link_settings': {
40
+ 'library_dirs': [
41
+ '<(sharp_libvips_lib_dir)'
42
+ ],
43
+ 'libraries': [
44
+ 'libvips.lib'
45
+ ],
46
+ },
47
+ 'configurations': {
48
+ 'Release': {
49
+ 'msvs_settings': {
50
+ 'VCCLCompilerTool': {
51
+ "AdditionalOptions": [
52
+ "/std:c++17"
53
+ ],
54
+ 'ExceptionHandling': 1,
55
+ 'Optimization': 1,
56
+ 'WholeProgramOptimization': 'true'
57
+ },
58
+ 'VCLibrarianTool': {
59
+ 'AdditionalOptions': [
60
+ '/LTCG:INCREMENTAL'
61
+ ]
62
+ },
63
+ 'VCLinkerTool': {
64
+ 'ImageHasSafeExceptionHandlers': 'false',
65
+ 'OptimizeReferences': 2,
66
+ 'EnableCOMDATFolding': 2,
67
+ 'LinkIncremental': 1,
68
+ 'AdditionalOptions': [
69
+ '/LTCG:INCREMENTAL'
70
+ ]
71
+ }
72
+ },
73
+ 'msvs_disabled_warnings': [
74
+ 4275
75
+ ]
76
+ }
77
+ }
78
+ }, {
79
+ # Ignore this target for non-Windows
80
+ 'type': 'none'
81
+ }]
82
+ ]
83
+ }, {
84
+ 'target_name': 'sharp-<(platform_and_arch)',
85
+ 'defines': [
86
+ 'G_DISABLE_ASSERT',
87
+ 'G_DISABLE_CAST_CHECKS',
88
+ 'G_DISABLE_CHECKS',
89
+ 'NAPI_VERSION=9',
90
+ 'NODE_ADDON_API_DISABLE_DEPRECATED',
91
+ 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'
92
+ ],
93
+ 'dependencies': [
94
+ '<!(node -p "require(\'node-addon-api\').gyp")',
95
+ 'libvips-cpp-<(vips_version)'
96
+ ],
97
+ 'variables': {
98
+ 'conditions': [
99
+ ['OS != "win"', {
100
+ 'pkg_config_path': '<!(node -p "require(\'../lib/libvips\').pkgConfigPath()")',
101
+ 'use_global_libvips': '<!(node -p "Boolean(require(\'../lib/libvips\').useGlobalLibvips()).toString()")'
102
+ }, {
103
+ 'pkg_config_path': '',
104
+ 'use_global_libvips': ''
105
+ }]
106
+ ]
107
+ },
108
+ 'sources': [
109
+ 'common.cc',
110
+ 'metadata.cc',
111
+ 'stats.cc',
112
+ 'operations.cc',
113
+ 'pipeline.cc',
114
+ 'utilities.cc',
115
+ 'sharp.cc'
116
+ ],
117
+ 'include_dirs': [
118
+ '<!(node -p "require(\'node-addon-api\').include_dir")',
119
+ ],
120
+ 'conditions': [
121
+ ['use_global_libvips == "true"', {
122
+ # Use pkg-config for include and lib
123
+ 'include_dirs': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s\/-I//g)'],
124
+ 'libraries': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --libs vips-cpp)'],
125
+ 'defines': [
126
+ 'SHARP_USE_GLOBAL_LIBVIPS'
127
+ ],
128
+ 'conditions': [
129
+ ['OS == "linux"', {
130
+ 'defines': [
131
+ # Inspect libvips-cpp.so to determine which C++11 ABI version was used and set _GLIBCXX_USE_CXX11_ABI accordingly. This is quite horrible.
132
+ '_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)'
133
+ ]
134
+ }]
135
+ ]
136
+ }, {
137
+ # Use pre-built libvips stored locally within node_modules
138
+ 'include_dirs': [
139
+ '<(sharp_libvips_include_dir)',
140
+ '<(sharp_libvips_include_dir)/glib-2.0',
141
+ '<(sharp_libvips_lib_dir)/glib-2.0/include'
142
+ ],
143
+ 'library_dirs': [
144
+ '<(sharp_libvips_lib_dir)'
145
+ ],
146
+ 'conditions': [
147
+ ['OS == "win"', {
148
+ 'defines': [
149
+ '_ALLOW_KEYWORD_MACROS',
150
+ '_FILE_OFFSET_BITS=64'
151
+ ],
152
+ 'link_settings': {
153
+ 'libraries': [
154
+ 'libvips.lib'
155
+ ]
156
+ }
157
+ }],
158
+ ['OS == "mac"', {
159
+ 'link_settings': {
160
+ 'libraries': [
161
+ 'libvips-cpp.<(vips_version).dylib'
162
+ ]
163
+ },
164
+ 'xcode_settings': {
165
+ 'OTHER_LDFLAGS': [
166
+ '-Wl,-s',
167
+ '-Wl,-dead_strip',
168
+ # Ensure runtime linking is relative to sharp.node
169
+ '-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'',
170
+ '-Wl,-rpath,\'@loader_path/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
171
+ '-Wl,-rpath,\'@loader_path/../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
172
+ '-Wl,-rpath,\'@loader_path/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
173
+ '-Wl,-rpath,\'@loader_path/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
174
+ '-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\''
175
+ ]
176
+ }
177
+ }],
178
+ ['OS == "linux"', {
179
+ 'defines': [
180
+ '_GLIBCXX_USE_CXX11_ABI=1'
181
+ ],
182
+ 'cflags_cc': [
183
+ '<!(node -p "require(\'detect-libc\').isNonGlibcLinuxSync() ? \'\' : \'-flto=auto\'")'
184
+ ],
185
+ 'link_settings': {
186
+ 'libraries': [
187
+ '-l:libvips-cpp.so.<(vips_version)'
188
+ ],
189
+ 'ldflags': [
190
+ '-lstdc++fs',
191
+ '-Wl,-s',
192
+ '-Wl,--disable-new-dtags',
193
+ '-Wl,-z,nodelete',
194
+ '-Wl,-Bsymbolic-functions',
195
+ '-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',
196
+ '-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',
197
+ '-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
198
+ '-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',
199
+ '-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\''
200
+ ]
201
+ }
202
+ }],
203
+ ['OS == "emscripten"', {
204
+ 'product_extension': 'node.js',
205
+ 'link_settings': {
206
+ 'ldflags': [
207
+ '-fexceptions',
208
+ '--pre-js=<!(node -p "require.resolve(\'./emscripten/pre.js\')")',
209
+ '-Oz',
210
+ '-sALLOW_MEMORY_GROWTH',
211
+ '-sENVIRONMENT=node',
212
+ '-sEXPORTED_FUNCTIONS=emnapiInit,_vips_shutdown,_uv_library_shutdown',
213
+ '-sNODERAWFS',
214
+ '-sWASM_ASYNC_COMPILATION=0'
215
+ ],
216
+ 'libraries': [
217
+ '<!@(PKG_CONFIG_PATH="<!(node -p "require(\'@img/sharp-libvips-dev-wasm32/lib\')")/pkgconfig" pkg-config --static --libs vips-cpp)'
218
+ ],
219
+ }
220
+ }]
221
+ ]
222
+ }]
223
+ ],
224
+ 'cflags_cc': [
225
+ '-std=c++17',
226
+ '-fexceptions',
227
+ '-Wall',
228
+ '-Os'
229
+ ],
230
+ 'xcode_settings': {
231
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17',
232
+ 'MACOSX_DEPLOYMENT_TARGET': '10.15',
233
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
234
+ 'GCC_ENABLE_CPP_RTTI': 'YES',
235
+ 'OTHER_CPLUSPLUSFLAGS': [
236
+ '-fexceptions',
237
+ '-Wall',
238
+ '-Oz'
239
+ ]
240
+ },
241
+ 'configurations': {
242
+ 'Release': {
243
+ 'conditions': [
244
+ ['target_arch == "arm"', {
245
+ 'cflags_cc': [
246
+ '-Wno-psabi'
247
+ ]
248
+ }],
249
+ ['OS == "win"', {
250
+ 'msvs_settings': {
251
+ 'VCCLCompilerTool': {
252
+ "AdditionalOptions": [
253
+ "/std:c++17"
254
+ ],
255
+ 'ExceptionHandling': 1,
256
+ 'Optimization': 1,
257
+ 'WholeProgramOptimization': 'true'
258
+ },
259
+ 'VCLibrarianTool': {
260
+ 'AdditionalOptions': [
261
+ '/LTCG:INCREMENTAL'
262
+ ]
263
+ },
264
+ 'VCLinkerTool': {
265
+ 'ImageHasSafeExceptionHandlers': 'false',
266
+ 'OptimizeReferences': 2,
267
+ 'EnableCOMDATFolding': 2,
268
+ 'LinkIncremental': 1,
269
+ 'AdditionalOptions': [
270
+ '/LTCG:INCREMENTAL'
271
+ ]
272
+ }
273
+ },
274
+ 'msvs_disabled_warnings': [
275
+ 4275
276
+ ]
277
+ }]
278
+ ]
279
+ }
280
+ },
281
+ }, {
282
+ 'target_name': 'copy-dll',
283
+ 'type': 'none',
284
+ 'dependencies': [
285
+ 'sharp-<(platform_and_arch)'
286
+ ],
287
+ 'conditions': [
288
+ ['OS == "win"', {
289
+ 'copies': [{
290
+ 'destination': 'build/Release',
291
+ 'files': [
292
+ '<(sharp_libvips_lib_dir)/libvips-42.dll'
293
+ ]
294
+ }]
295
+ }]
296
+ ]
297
+ }]
298
+ }