summaryrefslogtreecommitdiff
path: root/tools/msvs/nodejsvars.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/msvs/nodejsvars.bat')
-rw-r--r--tools/msvs/nodejsvars.bat19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/msvs/nodejsvars.bat b/tools/msvs/nodejsvars.bat
new file mode 100644
index 000000000..68be31399
--- /dev/null
+++ b/tools/msvs/nodejsvars.bat
@@ -0,0 +1,19 @@
+@echo off
+@rem Process arguments.
+set target_arch=x86
+
+:next-arg
+if "%1"=="" goto args-done
+if /i "%1"=="x86" set target_arch=x86&goto arg-ok
+if /i "%1"=="x64" set target_arch=x64&goto arg-ok
+
+echo Warning: ignoring invalid command line option `%1`.
+
+:arg-ok
+shift
+goto next-arg
+:args-done
+
+@rem Ensure this Node.js is first in the PATH
+echo Your environment has been set up for using Node.js (%target_arch%) and NPM
+set PATH=%~dp0;%PATH% \ No newline at end of file