summaryrefslogtreecommitdiff
path: root/scripts/srcenv.ps1
diff options
context:
space:
mode:
authorA2va <[email protected]>2023-10-08 23:07:27 +0200
committerA2va <[email protected]>2023-10-08 23:07:27 +0200
commit203ee11adfda48903c702a2c34273e0a5ac27046 (patch)
tree4520e2b91c0191e52b6016ba7d43aba8400c3f11 /scripts/srcenv.ps1
parent6cf470f20d8e6511e1c9dd50ce3ef4bebf8bee89 (diff)
Add powershell screnv script
Diffstat (limited to 'scripts/srcenv.ps1')
-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