Skip to content

Commit

Permalink
fix: remove empty glob from geographiclib
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 committed Dec 27, 2024
1 parent 76d28f6 commit ea97bfc
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 1 deletion.
9 changes: 9 additions & 0 deletions modules/geographiclib/2.4.0.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module(
name = "geographiclib",
version = "2.4.0.bcr.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)

bazel_dep(name = "cmake_configure_file", version = "0.1.0")
bazel_dep(name = "rules_cc", version = "0.1.0")
38 changes: 38 additions & 0 deletions modules/geographiclib/2.4.0.bcr.1/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
load(
"@cmake_configure_file//:cmake_configure_file.bzl",
"cmake_configure_file",
)
load("@rules_cc//cc:defs.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

cmake_configure_file(
name = "config_header",
src = "include/GeographicLib/Config.h.in",
out = "include/GeographicLib/Config.h",
cmakelists = [
"CMakeLists.txt",
],
defines = [
"GEOGRAPHICLIB_DATA=/usr/local/share/GeographicLib",
"GEOGRAPHICLIB_HAVE_LONG_DOUBLE=0",
],
visibility = ["//visibility:private"],
)

cc_library(
name = "geographiclib",
srcs = glob([
"src/*.cpp",
"src/*.hh",
]),
hdrs = glob([
"include/GeographicLib/*.hpp",
]) + [
":config_header",
],
includes = [
"include",
],
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions modules/geographiclib/2.4.0.bcr.1/overlay/MODULE.bazel
18 changes: 18 additions & 0 deletions modules/geographiclib/2.4.0.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- ubuntu2404
- windows
bazel: [7.x, 8.x, rolling]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@geographiclib//:geographiclib'
10 changes: 10 additions & 0 deletions modules/geographiclib/2.4.0.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-qn7cbYb8wpe+bm1tU9225iKkbvNv6TFzNcrJG/Rxtak=",
"strip_prefix": "geographiclib-2.4",
"url": "https://github.com/geographiclib/geographiclib/archive/refs/tags/v2.4.tar.gz",
"patch_strip": 0,
"overlay": {
"BUILD.bazel": "sha256-bKmMLFmHSu+o0v9LuxqnW0o63n9dR6kMVfcdCxmi7xg=",
"MODULE.bazel": "sha256-s7T40dVDpNL/l4E3t6M9iK4aHTMAUeMxazZr2JYP+OE="
}
}
3 changes: 2 additions & 1 deletion modules/geographiclib/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"github:geographiclib/geographiclib"
],
"versions": [
"2.4.0"
"2.4.0",
"2.4.0.bcr.1"
],
"yanked_versions": {}
}

0 comments on commit ea97bfc

Please sign in to comment.