-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Qt for Windows support to Bazel build.
As a preparation to support Bazel for Windows build (#948), this makes "qt_win" repository available for Bazel build on Windows. There must be no observable behavior change in mac/Linux Bazel builds. PiperOrigin-RevId: 645598529
- Loading branch information
1 parent
b64ba10
commit 019911b
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
config_setting( | ||
name = "debug_build", | ||
values = { | ||
"compilation_mode": "dbg", | ||
}, | ||
visibility = ["//visibility:private"], | ||
) | ||
|
||
cc_library( | ||
name = "qt_win", | ||
srcs = select({ | ||
":debug_build": [ | ||
"lib/Qt6Cored.lib", | ||
"lib/Qt6Guid.lib", | ||
"lib/Qt6Widgetsd.lib", | ||
], | ||
"//conditions:default": [ | ||
"lib/Qt6Core.lib", | ||
"lib/Qt6Gui.lib", | ||
"lib/Qt6Widgets.lib", | ||
], | ||
}), | ||
hdrs = glob([ | ||
"include" | ||
]), | ||
includes = [ | ||
"include", | ||
"include/QtCore", | ||
"include/QtGui", | ||
"include/QtWidgets", | ||
], | ||
target_compatible_with = ["@platforms//os:windows"], | ||
) | ||
|
||
exports_files([ | ||
"bin/moc.exe", | ||
"bin/uic.exe", | ||
"bin/rcc.exe", | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters