bazelbuild/bazel

How to build a windows dll library?

Open

#14,380 创建于 2021年12月5日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Java (4,465 fork)batch import
P3area-Windowshelp wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

ATTENTION! Please read and follow:

  • if this is a question about how to build / test / query / deploy using Bazel, or a discussion starter, send it to bazel-discuss@googlegroups.com
  • if this is a bug or feature request, fill the form below as best as you can.

Description of the problem / feature request:

bazel build examples/windows/dll:hellolib

I try to build windows dll library examples/windows/dll:hellolib, but I can't find any hellolib.lib.

What operating system are you running Bazel on?

win11, bazel 4.2.1 release

What's the output of bazel info release?

release 4.2.1

Any other information, logs, or outputs that you want to share?

(base) PS D:\Build\bazel> bazel clean
INFO: Starting clean.
(base) PS D:\Build\bazel> bazel build examples/windows/dll:hellolib
INFO: Analyzed target //examples/windows/dll:hellolib (21 packages loaded, 115 targets configured).
INFO: Found 1 target...
Target //examples/windows/dll:hellolib up-to-date (nothing to build)
INFO: Elapsed time: 1.169s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action

贡献者指南