summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/srcenv.ps15
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/srcenv.ps1 b/scripts/srcenv.ps1
new file mode 100644
index 000000000..4c973ca51
--- /dev/null
+++ b/scripts/srcenv.ps1
@@ -0,0 +1,5 @@
+$script_dir = Split-Path $MyInvocation.MyCommand.Path
+$env:PATH = "$script_dir\..\core\build;$pwd;$env:PATH"
+$env:XMAKE_PROGRAM_DIR = "$script_dir\..\xmake"
+Set-Location "$script_dir\.."
+Start-Process powershell \ No newline at end of file