b5a4311f26
While there, make sure to exit on failures (e.g. missing tools). Signed-off-by: Piotr Sikora <piotrsikora@google.com> Change-Id: Ie84425bbedefc8c37cf12afbf0ad541caa125ac0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3333634 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/main@{#78388}
22 lines
665 B
Bash
Executable File
22 lines
665 B
Bash
Executable File
# Copyright 2021 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -e
|
|
|
|
BAZEL_OUT=$1
|
|
|
|
# Create a default GN output folder
|
|
gn gen out/inspector
|
|
|
|
# Generate inspector files
|
|
autoninja -C out/inspector src/inspector:protocol_generated_sources
|
|
|
|
# Create directories in bazel output folder
|
|
mkdir -p $BAZEL_OUT/include/inspector
|
|
mkdir -p $BAZEL_OUT/src/inspector/protocol
|
|
|
|
# Copy generated files to bazel output folder
|
|
cp out/inspector/gen/include/inspector/* $BAZEL_OUT/include/inspector/
|
|
cp out/inspector/gen/src/inspector/protocol/* $BAZEL_OUT/src/inspector/protocol/
|