mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
23 lines
988 B
Batchfile
23 lines
988 B
Batchfile
|
@echo off
|
||
|
:: Copyright 2020 The Pigweed Authors
|
||
|
::
|
||
|
:: Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||
|
:: use this file except in compliance with the License. You may obtain a copy of
|
||
|
:: the License at
|
||
|
::
|
||
|
:: https://www.apache.org/licenses/LICENSE-2.0
|
||
|
::
|
||
|
:: Unless required by applicable law or agreed to in writing, software
|
||
|
:: distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
|
:: WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||
|
:: License for the specific language governing permissions and limitations under
|
||
|
:: the License.
|
||
|
|
||
|
:: Pigweed Windows environment setup.
|
||
|
|
||
|
:: Calls a Powershell script that determines the correct PW_ROOT directory and
|
||
|
:: exports it as an environment variable.
|
||
|
for /F "usebackq tokens=1" %%i in (`powershell %%~dp0..\..\env_setup\env_setup.ps1`) do set PW_ROOT=%%i
|
||
|
|
||
|
call python %PW_ROOT%\env_setup\env_setup.py --pw-root %PW_ROOT% --shell-file "%PW_ROOT%\env_setup\.env_setup.bat"
|