-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
66 additions
and
155 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,36 +1,26 @@ | ||
# Setup compiler flags - required for Qt6 is at least C++17 | ||
build:gcc9 --cxxopt=-std=c++2a | ||
build:gcc9 --cxxopt=-Wall | ||
build:gcc9 --cxxopt=-Werror | ||
# GCC | ||
build:gccd --cxxopt=-std=c++20 | ||
build:gccd --cxxopt=-Wall | ||
build:gccd --cxxopt=-Werror | ||
build:gccd --compilation_mode=dbg | ||
|
||
# GCC 11.2 | ||
#build:gcc11 --cxxopt=-std=c++23 # blocked by emsdk | ||
build:gcc11 --cxxopt=-std=c++20 | ||
build:gcc11 --cxxopt=-Wall | ||
#build:gcc11 --cxxopt=-Werror | ||
#build:gcc11 --cxxopt=-Wno-error=volatile # blocked by emsdk | ||
##build:gcc11 --cxxopt=-Wextra | ||
|
||
# Visual Studio 2019 | ||
build:vs2019 --cxxopt=/std:c++20 | ||
build:vs2019 --cxxopt=/Zc:__cplusplus # Untested | ||
build:vs2019 --enable_runfiles # https://github.com/bazelbuild/bazel/issues/8843 | ||
build:vs2019 --define compiler=vs2019 | ||
build:vs2019 --copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs2019 --copt=-DNOGDI | ||
build:vs2019 --host_copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs2019 --host_copt=-DNOGDI | ||
# GCC | ||
build:gcc --cxxopt=-std=c++20 | ||
build:gcc --cxxopt=-Wall | ||
build:gcc --cxxopt=-Werror | ||
build:gcc --compilation_mode=opt | ||
|
||
# Visual Studio 2022 | ||
build:vs2022 --cxxopt=/std:c++20 | ||
build:vs2022 --cxxopt=/Zc:__cplusplus | ||
build:vs2022 --enable_runfiles # https://github.com/bazelbuild/bazel/issues/8843 | ||
build:vs2022 --define compiler=vs2022 | ||
build:vs2022 --copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs2022 --copt=-DNOGDI | ||
build:vs2022 --host_copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs2022 --host_copt=-DNOGDI | ||
build:vs --cxxopt=/std:c++20 | ||
build:vs --cxxopt=/Zc:__cplusplus | ||
build:vs --enable_runfiles # https://github.com/bazelbuild/bazel/issues/8843 | ||
build:vs --define compiler=vs2022 | ||
build:vs --copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs --copt=-DNOGDI | ||
build:vs --host_copt=-DWIN32_LEAN_AND_MEAN | ||
build:vs --host_copt=-DNOGDI | ||
|
||
# macOS (e.g. Clang 12.0.0) | ||
build:macos --cxxopt=-std=c++2a | ||
build:macos --cxxopt=-std=c++20 | ||
build:macos --cxxopt=-Wall | ||
build:macos --repo_env=CC=clang |
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 |
---|---|---|
@@ -1,6 +1,18 @@ | ||
############################################################################### | ||
# Bazel now uses Bzlmod by default to manage external dependencies. | ||
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. | ||
# | ||
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 | ||
############################################################################### | ||
bazel_dep(name = "rules_qt") | ||
local_path_override( | ||
module_name = "rules_qt", | ||
path = "..", | ||
) | ||
|
||
qt = use_extension("@rules_qt//:extensions.bzl", "qt") | ||
qt.fetch() | ||
use_repo( | ||
qt, | ||
"qt_linux_x86_64", | ||
"qt_windows_x86_64", | ||
"qt_mac_aarch64", | ||
) | ||
register_toolchains( | ||
"@rules_qt//tools:all", | ||
dev_dependency = True, | ||
) |
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 |
---|---|---|
@@ -1,12 +0,0 @@ | ||
local_repository( | ||
name = "rules_qt", | ||
path = "..", | ||
) | ||
|
||
load("@rules_qt//:fetch_qt.bzl", "fetch_qt6") | ||
|
||
fetch_qt6() | ||
|
||
load("@rules_qt//tools:qt_toolchain.bzl", "register_qt_toolchains") | ||
|
||
register_qt_toolchains() | ||