use getenv() instead of node -e stuff

Raymond Hammarling 9 years ago
parent cb731824ce
commit cad433382d

@ -38,8 +38,11 @@ void thread_join (HANDLE thread) {
}
void fusermount (char *path) {
char* dokanPath = getenv("DOKAN_INSTALL_DIR");
char cmdLine[MAX_PATH];
sprintf(cmdLine, "\"%s/dokanctl.exe\" /u %s", DOKAN_INSTALL_DIR, path);
if(dokanPath) sprintf(cmdLine, "\"%s/dokanctl.exe\" /u %s", dokanPath, path);
else sprintf(cmdLine, "dokanctl.exe /u %s", path);
STARTUPINFO info = {sizeof(info)};
PROCESS_INFORMATION procInfo;

@ -17,20 +17,13 @@
}
}],
['OS=="win"', {
"variables": {
"dokan_install_path%": "<!(echo %DOKAN_INSTALL_DIR%)"
},
"defines": [
["DOKAN_INSTALL_DIR",
"<!(node -e \"process.stdout.write(JSON.stringify(process.argv[1]))\" -- \"<(dokan_install_path)\")"]
],
"include_dirs": [
"$(DOKAN_FUSE_INCLUDE)",
"$(INCLUDE)"
],
"link_settings": {
"libraries": [
"<(dokan_install_path)/dokanfuse.lib"
"<!(echo %DOKAN_INSTALL_DIR%)/dokanfuse.lib"
]
}
}]

Loading…
Cancel
Save