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:
parent
0355084d5d
commit
75b3867bac
@ -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;
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user