summaryrefslogtreecommitdiff
path: root/scripts/srcenv.ps1
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-09 09:33:47 +0800
committerGitHub <[email protected]>2023-10-09 09:33:47 +0800
commit09998f98aa1fc8d5d2c3ce9762400c309b51b972 (patch)
tree88d79f4917bf086fdc466ec953ec4b615f9ca4b8 /scripts/srcenv.ps1
parent942b0c58ab326b389ecb45c472d42600440f293e (diff)
parent203ee11adfda48903c702a2c34273e0a5ac27046 (diff)
Merge pull request #4264 from A2va/ps-srcenv
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