Skip to content

Commit

Permalink
fix: remove empty glob from geographiclib (#3495)
Browse files Browse the repository at this point in the history
- as title

---------

Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 authored Dec 28, 2024
1 parent 72e54d7 commit cb0bff3
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 2 deletions.
8 changes: 8 additions & 0 deletions modules/cmake_configure_file/0.1.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module(name = "cmake_configure_file", version = "0.1.1")

bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_python", version = "1.0.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12")
use_repo(python, "python_versions")
18 changes: 18 additions & 0 deletions modules/cmake_configure_file/0.1.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
platform:
- debian10
- debian11
- ubuntu2004
- ubuntu2204
- ubuntu2404
- macos
- macos_arm64
- windows
bazel: [7.x, 8.x, rolling]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@cmake_configure_file'
5 changes: 5 additions & 0 deletions modules/cmake_configure_file/0.1.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/wep21/cmake_configure_file/releases/download/v0.1.1/cmake_configure_file-0.1.1.tar.gz",
"strip_prefix": "cmake_configure_file-0.1.1",
"integrity": "sha256-rQWKHSBXwcXFJmamcWz71/X8pO6+rMIsPDzSXzvQNRQ="
}
3 changes: 2 additions & 1 deletion modules/cmake_configure_file/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"github:wep21/cmake_configure_file"
],
"versions": [
"0.1.0"
"0.1.0",
"0.1.1"
],
"yanked_versions": {}
}
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.1")
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-VpvKdCW2lA52Y+o5IodhTZP0CVSaX0bGVVG33lzSE4k="
}
}
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 cb0bff3

Please sign in to comment.