mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Ensure emnapiInit function is exported
Prevents latest emscripten optimising it away
This commit is contained in:
parent
de42667767
commit
ad36fa0605
@ -192,7 +192,7 @@
|
|||||||
'-Oz',
|
'-Oz',
|
||||||
'-sALLOW_MEMORY_GROWTH',
|
'-sALLOW_MEMORY_GROWTH',
|
||||||
'-sENVIRONMENT=node',
|
'-sENVIRONMENT=node',
|
||||||
'-sEXPORTED_FUNCTIONS=["_vips_shutdown", "_uv_library_shutdown"]',
|
'-sEXPORTED_FUNCTIONS=["emnapiInit", "_vips_shutdown", "_uv_library_shutdown"]',
|
||||||
'-sNODERAWFS',
|
'-sNODERAWFS',
|
||||||
'-sTEXTDECODER=0',
|
'-sTEXTDECODER=0',
|
||||||
'-sWASM_ASYNC_COMPILATION=0',
|
'-sWASM_ASYNC_COMPILATION=0',
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
'default_configuration': 'Release',
|
'default_configuration': 'Release',
|
||||||
'type': 'executable',
|
'type': 'executable',
|
||||||
'cflags': [
|
'cflags': [
|
||||||
'-pthread',
|
'-pthread'
|
||||||
'-sDEFAULT_TO_CXX=0'
|
|
||||||
],
|
],
|
||||||
'cflags_cc': [
|
'cflags_cc': [
|
||||||
'-pthread'
|
'-pthread'
|
||||||
@ -19,6 +18,7 @@
|
|||||||
'--js-library=<!(node -p "require(\'emnapi\').js_library")',
|
'--js-library=<!(node -p "require(\'emnapi\').js_library")',
|
||||||
'-sAUTO_JS_LIBRARIES=0',
|
'-sAUTO_JS_LIBRARIES=0',
|
||||||
'-sAUTO_NATIVE_LIBRARIES=0',
|
'-sAUTO_NATIVE_LIBRARIES=0',
|
||||||
|
'-sDEFAULT_TO_CXX=0',
|
||||||
'-sNODEJS_CATCH_EXIT=0',
|
'-sNODEJS_CATCH_EXIT=0',
|
||||||
'-sNODEJS_CATCH_REJECTION=0'
|
'-sNODEJS_CATCH_REJECTION=0'
|
||||||
],
|
],
|
||||||
@ -28,7 +28,7 @@
|
|||||||
'EMNAPI_WORKER_POOL_SIZE=1'
|
'EMNAPI_WORKER_POOL_SIZE=1'
|
||||||
],
|
],
|
||||||
'include_dirs': [
|
'include_dirs': [
|
||||||
'<!(node -p "require(\'emnapi\').include")'
|
'<!(node -p "require(\'emnapi\').include_dir")'
|
||||||
],
|
],
|
||||||
'sources': [
|
'sources': [
|
||||||
'<!@(node -p "require(\'emnapi\').sources.map(x => JSON.stringify(path.relative(process.cwd(), x))).join(\' \')")'
|
'<!@(node -p "require(\'emnapi\').sources.map(x => JSON.stringify(path.relative(process.cwd(), x))).join(\' \')")'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user