File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,16 @@ file(READ "${NODE_API_HEADERS_DIR}/symbols.js" NAPI_SYMBOLS_JS_CONTENT)
9393string (REGEX MATCHALL "napi_[a-z0-9_]*" NAPI_SYMBOLS "${NAPI_SYMBOLS_JS_CONTENT} " )
9494
9595if (WIN32 )
96+ set (NODE_API_BINARY_FILE "node.exe" CACHE STRING
97+ "The name of the file in which to find the Node-API symbols."
98+ )
99+
96100 # Generate the NapiSymbols.def file from the Napi symbol list
97101 set (NAPI_SYMBOLS_DEF "${DAWN_NODE_GEN_DIR} /NapiSymbols.def" )
98102 list (TRANSFORM NAPI_SYMBOLS PREPEND " " )
99103 list (TRANSFORM NAPI_SYMBOLS APPEND "\n " )
100104 string (REPLACE ";" "" NAPI_SYMBOLS "${NAPI_SYMBOLS} " )
101- string (PREPEND NAPI_SYMBOLS "LIBRARY node.exe \n EXPORTS\n " )
105+ string (PREPEND NAPI_SYMBOLS "LIBRARY ${NODE_API_BINARY_FILE} \n EXPORTS\n " )
102106 file (GENERATE OUTPUT "${NAPI_SYMBOLS_DEF} " CONTENT "${NAPI_SYMBOLS} " )
103107 # Generate the NapiSymbols.lib from the NapiSymbols.def file
104108 set (NAPI_SYMBOLS_LIB "${DAWN_NODE_GEN_DIR} /NapiSymbols.lib" )
You can’t perform that action at this time.
0 commit comments