8927f28f41
Extend bazel build to support windows in addition to linux and mac. Bug: v8:11234 Change-Id: I264f8dd8a33e221890a408d504a94ce2bc9cc19f No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3265064 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/main@{#77896}
24 lines
907 B
Batchfile
24 lines
907 B
Batchfile
REM Copyright 2021 the V8 project authors. All rights reserved.
|
|
REM Use of this source code is governed by a BSD-style license that can be
|
|
REM found in the LICENSE file.
|
|
|
|
set BAZEL_OUT=%1
|
|
|
|
REM Bazel nukes all env vars, and we need the following for gn to work
|
|
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
|
set ProgramFiles(x86)=C:\Program Files (x86)
|
|
set windir=C:\Windows
|
|
|
|
REM Create a default GN output folder
|
|
cmd.exe /S /E:ON /V:ON /D /c gn gen out/inspector
|
|
|
|
REM Generate inspector files
|
|
cmd.exe /S /E:ON /V:ON /D /c autoninja -C out/inspector gen/src/inspector/protocol/Forward.h
|
|
|
|
REM Create directories in bazel output folder
|
|
MKDIR -p %BAZEL_OUT%\include\inspector
|
|
MKDIR -p %BAZEL_OUT%\src\inspector\protocol
|
|
|
|
REM Copy generated files to bazel output folder
|
|
COPY out\inspector\gen\include\inspector\* %BAZEL_OUT%\include\inspector\
|
|
COPY out\inspector\gen\src\inspector\protocol\* %BAZEL_OUT%\src\inspector\protocol\ |