1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

altered bindings.gyp to use DOKAN_INSTALL_DIR env var

This commit is contained in:
Raymond Hammarling 2015-08-07 20:24:07 +02:00
parent 0355084d5d
commit 75b3867bac
2 changed files with 9 additions and 2 deletions

View File

@ -39,7 +39,7 @@ void thread_join (HANDLE thread) {
void fusermount (char *path) {
char cmdLine[MAX_PATH];
sprintf(cmdLine, "\"C:\\Program Files\\Dokan\\DokanLibrary\\dokanctl.exe\" /u %s", path);
sprintf(cmdLine, "\"%s/dokanctl.exe\" /u %s", DOKAN_INSTALL_DIR, path);
STARTUPINFO info = {sizeof(info)};
PROCESS_INFORMATION procInfo;

View File

@ -17,13 +17,20 @@
}
}],
['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": [
"C:\\Program Files\\Dokan\\DokanLibrary\\dokanfuse.lib"
"<(dokan_install_path)/dokanfuse.lib"
]
}
}]