36b44c15f6
Command to build: `bazel build :d8` Caveats: - Needs clang - Only supports x64 on Linux - Bare V8: no Wasm and no ICU - Still needs GN to generate inspector files Bug: v8:11234 Change-Id: I6d01fecff5fba5c3582995d071692e5c6c6c6310 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2960949 Commit-Queue: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Hannes Payer <hpayer@chromium.org> Reviewed-by: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#75155}
20 lines
640 B
Bash
Executable File
20 lines
640 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.
|
|
|
|
BAZEL_OUT=$1
|
|
|
|
# Create a default GN output folder
|
|
gn gen out/inspector
|
|
|
|
# Generate inspector files
|
|
autoninja -C out/inspector src/inspector:inspector
|
|
|
|
# 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/
|