parent
f74cb51f11
commit
5611ff267b
10 changed files with 11 additions and 33 deletions
@ -1,7 +1,7 @@ |
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
||||
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
||||
load("@upb//:repository_defs.bzl", "bazel_version_repository") |
||||
load("//bazel:repository_defs.bzl", "bazel_version_repository") |
||||
|
||||
def upb_deps(): |
||||
bazel_version_repository( |
@ -1,22 +0,0 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
set -e |
||||
|
||||
BINDIR=`dirname "$0"`/.. |
||||
SRCDIR=${CMAKE_CURRENT_SOURCE_DIR} |
||||
EXIT=0 |
||||
|
||||
function try_copy() { |
||||
if [ ! -f $1 ]; then |
||||
echo "Can't find $1, skipping..." |
||||
EXIT=1 |
||||
else |
||||
cp $1 $2 |
||||
echo $1 |
||||
fi |
||||
} |
||||
|
||||
try_copy $BINDIR/google/protobuf/descriptor.upb.c $SRCDIR/google/protobuf |
||||
try_copy $BINDIR/google/protobuf/descriptor.upb.h $SRCDIR/google/protobuf |
||||
try_copy $BINDIR/upb/json/parser.c $SRCDIR/upb/json |
||||
try_copy $BINDIR/upb/pb/compile_decoder_x64.h $SRCDIR/upb/pb |
Loading…
Reference in new issue