【发布时间】:2018-08-11 19:06:25
【问题描述】:
假设我有以下目录布局:
.../
root/
bin/
sdl.dll
src/
main/
main.cpp
BUILD
WORKSPACE
还有一个 BUILD 文件,上面写着:
cc_binary(
name = "test",
srcs = ["main.cpp"]
)
而我的构建命令行是:
bazel build //main:hello-world --symlink_prefix=/
我需要添加什么到我的 BUILD 文件中,以便将 test.exe(和 test.pdb,如果适用)复制到 bin(与 sdl.dll 一起)?
我查看了this page 并尝试使用--output_base,但比我想要的要多。
P.S:在“Visual Studio”术语中,我希望将 $(OutDir) 或 postbuild 从 $(OutDir) 更改为 ..\bin
【问题讨论】: