bazelbuild/bazel

How to build a windows dll library?

Open

#14,380 opened on 2021年12月5日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)Java (4,465 forks)batch import
P3area-Windowshelp wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

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

コントリビューターガイド