Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: dc1560706efda7bd48269afa566676dcb1e93777
  • Loading branch information
Vertexwahn committed Jan 18, 2025
1 parent 5d16577 commit 91a080d
Show file tree
Hide file tree
Showing 1,558 changed files with 671,629 additions and 4,714 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ root = true
[*.{h,cc,cpp}]
indent_style = space

[*.{java}]
indent_style = space

[{go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4

[Dockerfile]
indent_size = 4

[*]
end_of_line = lf
insert_final_newline = true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ sudo apt install lcov
Go to the directory that contains the `MODULE.bazel` file and execute:

```shell
./coverage.sh --additonal_bazel_config=buchgr_remote_cache
./coverage.sh --additional_bazel_config=buchgr_remote_cache
open coverage_report/index.html
```

Expand Down
85 changes: 39 additions & 46 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@

jobs:
- job: MacOSAppleClang14Ventura
displayName: "Apple Clang14 on macOS 13 (Ventura)"
displayName: "Apple Clang15 on macOS 13 (Ventura)"
pool:
vmImage: 'macOS-13'
steps:
- template: devertexwahn/ci/macOS-13-apple-clang14.yaml
- template: devertexwahn/ci/macOS-13-apple-clang15.yaml

- job: MacOSAppleClang14Sonoma
displayName: "Apple Clang14 on macOS 14 (Sonoma)"
displayName: "Apple Clang15 on macOS 14 (Sonoma)"
pool:
vmImage: 'macOS-14'
steps:
- template: devertexwahn/ci/macOS-14-apple-clang14.yaml
- template: devertexwahn/ci/macOS-14-apple-clang15.yaml

- job: MacOSAppleClang14Sequoia
displayName: "Apple Clang16 on macOS 15 (Sequoia)"
pool:
vmImage: 'macOS-15'
steps:
- template: devertexwahn/ci/macOS-15-apple-clang16.yaml


#- job: Ubuntu20Clang14
Expand All @@ -30,40 +37,12 @@ jobs:
# steps:
# - template: devertexwahn/ci/ubuntu-20.04-clang14.yaml

- job: Ubuntu20GCC9Fast
displayName: "GCC9 fastbuild on Ubuntu 20.04"
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-fast.yaml

- job: Ubuntu20GCC9Opt
displayName: "GCC9 opt on Ubuntu 20.04"
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-opt.yaml

- job: Ubuntu20GCC9DebugPart1
displayName: "GCC9 debug on Ubuntu 20.04 (Part 1)"
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-dbg-part1.yaml

- job: Ubuntu20GCC9DebugPart2
displayName: "GCC9 debug on Ubuntu 20.04 (Part 2)"
- job: Ubuntu24BazelQuery
displayName: "Bazel query on Ubuntu 24.04"
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-dbg-part2.yaml

- job: Ubuntu22BazelQuery
displayName: "Bazel query on Ubuntu 22.04"
pool:
vmImage: 'ubuntu-22.04'
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-bazel-query.yaml
- template: devertexwahn/ci/ubuntu-24.04-bazel-query.yaml

- job: Ubuntu22Clang16
displayName: "Clang16 on Ubuntu 22.04"
Expand All @@ -72,12 +51,12 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-clang16.yaml

- job: Ubuntu22Coverage
displayName: "Coverage with LCOV/GCC11 on Ubuntu 22.04"
- job: Ubuntu24Coverage
displayName: "Coverage with LCOV/GCC13 on Ubuntu 24.04"
pool:
vmImage: 'ubuntu-22.04'
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-coverage.yaml
- template: devertexwahn/ci/ubuntu-24.04-coverage.yaml


- job: Ubuntu22Cppcheck
Expand All @@ -87,12 +66,12 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-cppcheck.yaml

- job: Ubuntu22Bzlmod
displayName: "Bzlmod on Ubuntu 22.04"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-bzlmod.yaml
#- job: Ubuntu24Bzlmod
# displayName: "Bzlmod GCC 13 on Ubuntu 24.04"
# pool:
# vmImage: 'ubuntu-24.04'
# steps:
# - template: devertexwahn/ci/ubuntu-24.04-gcc13-bzlmod.yaml

- job: Ubuntu22GCC11
displayName: "GCC11 fastbuild opt on Ubuntu 22.04"
Expand All @@ -101,6 +80,13 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-fast-opt.yaml

- job: Ubuntu24GCC13FlakyTests
displayName: "GCC13 detect flaky tests on Ubuntu 24.04"
pool:
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-24.04-gcc13-flaky-test-detection.yaml

- job: Ubuntu24GCC13
displayName: "GCC13 fastbuild opt on Ubuntu 24.04"
pool:
Expand All @@ -115,6 +101,13 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-dbg-part1.yaml

- job: Ubuntu24GCC13DebugPart1
displayName: "GCC13 dbg on Ubuntu 24.04 (Part 1)"
pool:
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-24.04-gcc13-dbg-part1.yaml


# Visual Studio 2019
- job: VisualStudio2019Dbg
Expand Down
18 changes: 11 additions & 7 deletions devertexwahn/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@

#build --symlink_prefix=/ # Suppress symlink creation (to avoid untracked files issues with git)

#-------------------------------------------------------------------------------------
# Bazel 8 migration
#-------------------------------------------------------------------------------------

# common --enable_workspace # Todo: does break Qt build -> Migrate rules_qt first to Bazel 8
# common --incompatible_disallow_empty_glob=false # TODO: Get rid of this - Set empty globs allowed policy explicitly where needed

#-------------------------------------------------------------------------------------
# Bzlmod
#-------------------------------------------------------------------------------------

common [email protected]

#common --registry=file:///%workspace%/registry # Does not work on Windows 11 + Bazel 6.5.0
#common --registry=https://vertexwahn.de/registry
common --registry=https://raw.githubusercontent.com/Vertexwahn/bazel-registry/main/ # Needed for Boost
common --registry=https://bcr.bazel.build


Expand All @@ -26,16 +33,13 @@ common --registry=https://bcr.bazel.build
# macOS (e.g. Clang 14.0.0)
build:macos --cxxopt=-std=c++2b # see https://clang.llvm.org/cxx_status.html
build:macos --cxxopt=-Wall # Turn on all warnings
#build:macos --sandbox_block_path=/usr/local # This will fix okapi.cli but break okapi.ui - Note: Workaround for https://github.com/bazelbuild/bazel/issues/10472 - compile error with boringssl
build:macos --define compiler=macos
build:macos --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
#build:macos --cxxopt=-Werror # Commented out because of Embree
#build:macos --cxxopt=-Wextra
#build:macos --spawn_strategy=local

# Xcode 15 has some compiler issues - therefore there is this special config
build:macos_xcode15 --config=macos
build:macos_xcode15 --linkopt=-ld_classic # Workaround for Xcode 15 linker bug, see for instance https://github.com/godotengine/godot/pull/81968/files

# macOS Intel (config used in CI jobs)
build:clang14_macos --cxxopt=-std=c++20
build:clang14_macos --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
Expand Down Expand Up @@ -84,7 +88,7 @@ build:gcc11_cpp14 --cxxopt=-Wall
build:gc11_cpp14 --define compiler=gcc11_cpp14

# GCC 13
build:gcc13 --cxxopt=-std=c++20
build:gcc13 --cxxopt=-std=c++23
build:gcc13 --cxxopt=-Wall
build:gcc13 --define compiler=gcc13
build:gcc13 --cxxopt=-fpermissive # Needed for fmt
Expand Down
41 changes: 24 additions & 17 deletions devertexwahn/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,46 @@ module(
version = "0.0.1",
)

bazel_dep(name = "abseil-cpp", version = "20240722.0")
bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2")
bazel_dep(name = "apple_support", version = "1.17.1")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "boost.algorithm", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.asio", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.asio", version = "1.83.0.bcr.2")
bazel_dep(name = "boost.core", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.endian", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.predef", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.program_options", version = "1.83.0.bcr.1")
bazel_dep(name = "boost.uuid", version = "1.83.0.bcr.1")
bazel_dep(name = "eigen", version = "3.4.0.bcr.1")
bazel_dep(name = "fmt", version = "11.0.2")
bazel_dep(name = "cpuinfo", version = "0.0.0-20240417-3c8b153")
bazel_dep(name = "eigen", version = "3.4.0.bcr.2")
bazel_dep(name = "fmt", version = "11.1.2")
bazel_dep(name = "gazelle", version = "0.40.0")
bazel_dep(name = "hypothesis")
bazel_dep(name = "imath", version = "3.1.12")
bazel_dep(name = "libdeflate", version = "1.22")
bazel_dep(name = "libdeflate", version = "1.23")
bazel_dep(name = "libjpeg_turbo", version = "2.1.4")
bazel_dep(name = "libpng", version = "1.6.43")
bazel_dep(name = "libwebp", version = "1.4.0")
bazel_dep(name = "libpng", version = "1.6.44")
bazel_dep(name = "libwebp", version = "1.5.0")
bazel_dep(name = "nasm", version = "2.14.02")
bazel_dep(name = "nlohmann_json", version = "3.11.3.bcr.1")
bazel_dep(name = "openexr", version = "3.2.4")
bazel_dep(name = "openexr", version = "3.3.1")
bazel_dep(name = "pcg", version = "0.98.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "pugixml", version = "1.14")
bazel_dep(name = "rules_cc", version = "0.1.0")
bazel_dep(name = "rules_java", version = "8.3.2")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "pugixml", version = "1.15")
bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "rules_java", version = "8.7.0")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_python", version = "0.39.0")
bazel_dep(name = "spdlog", version = "1.15.0")
bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "spdlog", version = "1.15.0.bcr.3")
bazel_dep(name = "xtensor")
bazel_dep(name = "xtl")
bazel_dep(name = "yaml-cpp", version = "0.8.0")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
bazel_dep(name = "zlib", version = "1.3.1.bcr.4")

bazel_dep(name = "aspect_rules_lint", version = "1.0.3", dev_dependency = True)
bazel_dep(name = "catch2", version = "3.5.4", dev_dependency = True)
bazel_dep(name = "google_benchmark", version = "1.8.5", dev_dependency = True)
bazel_dep(name = "catch2", version = "3.8.0", dev_dependency = True)
bazel_dep(name = "google_benchmark", version = "1.9.1", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)

# This projects intends to stay as close as possible to upstream dependencies (Live at Head). Therefore, upstream
Expand All @@ -72,6 +74,11 @@ local_path_override(
path = "../third_party/Catch2",
)

local_path_override(
module_name = "cpuinfo",
path = "../third_party/cpuinfo",
)

local_path_override(
module_name = "fmt",
path = "../third_party/fmt",
Expand Down
5 changes: 1 addition & 4 deletions devertexwahn/WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
"""
SPDX-FileCopyrightText: Copyright 2022-2023 Julian Amann <[email protected]>
SPDX-FileCopyrightText: Copyright 2022-2024 Julian Amann <[email protected]>
SPDX-License-Identifier: Apache-2.0
"""

workspace(name = "de_vertexwahn")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//okapi/third_party:okapi_deps.bzl", "okapi_deps")

#-------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
#

# Apple Clang 14 on macOS 13
# Apple Clang 15 on macOS 13
# Make sure we can build with Apple Clang13 in all different compilation modes
steps:
- script: |
Expand Down Expand Up @@ -40,38 +40,38 @@ steps:
- script: |
cd devertexwahn
bazel run --config=macos -- //tools/compiler_information
displayName: "Show compiler information"
bazel run --config=macos -- //tools/compiler_feature_dump
displayName: "Compiler feature dump"
# fastbuild
- script: |
cd devertexwahn
bazel build --config=macos -- //... #
bazel build --config=macos -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel build macos-fastbuild"
- script: |
cd devertexwahn
bazel test --config=macos -- //... #
bazel test --config=macos -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel test macos-fastbuild"
# dbg
- script: |
cd devertexwahn
bazel build --config=macos --compilation_mode=dbg -- //... #
bazel build --config=macos --compilation_mode=dbg -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel build macos-dbg"
- script: |
cd devertexwahn
bazel test --config=macos --compilation_mode=dbg -- //... #
bazel test --config=macos --compilation_mode=dbg -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel test macos-dbg"
# opt
- script: |
cd devertexwahn
bazel build --config=macos --compilation_mode=opt -- //... #
bazel build --config=macos --compilation_mode=opt -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel build macos-opt"
- script: |
cd devertexwahn
bazel test --config=macos --compilation_mode=opt -- //... #
bazel test --config=macos --compilation_mode=opt -- //... -//okapi/cli/... -//testbed/dns:dns_resolver -//okapi/tests/acceptance_tests:acceptance_test #
displayName: "Bazel test macos-opt"
Loading

0 comments on commit 91a080d

Please sign in to comment.