load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix") load("//bazel:cc_proto_library.bzl", "cc_proto_library") load("//bazel:java_lite_proto_library.bzl", "java_lite_proto_library") load("//bazel:java_proto_library.bzl", "java_proto_library") load("//bazel...
visibility = ["//pkg:__pkg__"], ) # C++ runtime pkg_files( name = "cpp_dist_files", srcs = glob( ["src/**/*"], exclude = [ "src/google/protobuf/compiler/objectivec/method_dump.sh", # not in autotools dist ], ), strip_prefix = strip_prefix.from_root("...
hdrs = ["timer.h"], visibility = ["//main:__pkg__"] ) cc_library( name ="random", srcs = ["random.c"], hdrs = ["random.h"], visibility = ["//main:__pkg__"] ) 而main/BUILD: cc_library( name ="actv", srcs = ["activations.c"], hdrs = ["activations.h"], ) cc...
hdrs = ["timer.h"], visibility = ["//main:__pkg__"] ) cc_library( name ="random", srcs = ["random.c"], hdrs = ["random.h"], visibility = ["//main:__pkg__"] ) 而main/BUILD: cc_library( name ="actv", srcs = ["activations.c"], hdrs = ["activations.h"], ) cc...
"@my_repo//foo/bar:__pkg__" # 指定某些特定的Target可以访问,这里"__pkg__"是一种特殊语法,表示该package内所有Targets "//foo/bar:__subpackages__" # 指定某些特定的Target可以访问,这里"__subpackages__"是一种特殊语法,表示该package及其内部所有package的所有Targets ...
Since upgrading from pkg_rpm in @bazel_tools to rules_pkg, I encountered the following error, without changes to my SPEC file: Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/tmp4k4_jcvn/BUILD error: Installed (but unpacka...
in yourcc_libraryis what tells Bazel that it depends on thegenrule, since thegenrulecreates those files. If you want to make it more explicit, you could use the label syntax, which does the same thing: srcs = ["//myLib:file.cpp"], hdrs = ["//myLib:file.hpp"], ...
Previously, invoking benchdiff, even with the --bazel flag, could result in test binaries that still look for bazel runfiles (exit status 2). This change adds a small helper script to configure the...
, "root_file": "A file in the SDK root directory", "libs": ("List of pre-compiled .a files for the standard library " + "built for the execution platform."), "headers": ("List of .h files from pkg/include that may be included " + "in assembly sources."), "srcs": ("List...
_objs hello-world-2.params hello-world.runfiles_manifest libhello-greet.a-2.params hello-world hello-world.runfiles libhello-greet.a 执行命令: 代码语言:javascript 代码运行次数:0 复制 Cloud Studio代码运行 $./bazel-bin/main/hello-world