-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix foonathan_memory include path
add "include/foonathan_memory" include path instead of "include"
- Loading branch information
Showing
8 changed files
with
91 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module( | ||
name = "foonathan_memory", | ||
version = "0.7.3.bcr.1", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep( | ||
name = "rules_foreign_cc", | ||
version = "0.10.1", | ||
) |
35 changes: 35 additions & 0 deletions
35
modules/foonathan_memory/0.7.3.bcr.1/patches/add_build_file.patch
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,35 @@ | ||
diff --git BUILD.bazel BUILD.bazel | ||
new file mode 100644 | ||
index 0000000..cf703cd | ||
--- /dev/null | ||
+++ BUILD.bazel | ||
@@ -0,0 +1,29 @@ | ||
+""" Builds foonathan_memory. | ||
+""" | ||
+ | ||
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") | ||
+ | ||
+filegroup( | ||
+ name = "all_srcs", | ||
+ srcs = glob(["**"]), | ||
+) | ||
+ | ||
+cache_entries = { | ||
+ "CMAKE_POSITION_INDEPENDENT_CODE": "ON", # Must be set! | ||
+ "BUILD_SHARED_LIBS": "OFF", | ||
+ # foonathan_memory specific options. | ||
+ "FOONATHAN_MEMORY_BUILD_EXAMPLES": "OFF", | ||
+ "FOONATHAN_MEMORY_BUILD_TESTS": "OFF", | ||
+} | ||
+ | ||
+cmake( | ||
+ name = "foonathan_memory", | ||
+ build_args = [ | ||
+ "--", | ||
+ "-j4", | ||
+ ], | ||
+ cache_entries = cache_entries, | ||
+ lib_source = ":all_srcs", | ||
+ lib_name = "libfoonathan_memory-0.7.3", | ||
+ visibility = ["//visibility:public"], | ||
+) |
16 changes: 16 additions & 0 deletions
16
modules/foonathan_memory/0.7.3.bcr.1/patches/module_dot_bazel.patch
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,16 @@ | ||
diff --git MODULE.bazel MODULE.bazel | ||
new file mode 100644 | ||
index 0000000..362cdcd | ||
--- /dev/null | ||
+++ MODULE.bazel | ||
@@ -0,0 +1,10 @@ | ||
+module( | ||
+ name = "foonathan_memory", | ||
+ version = "0.7.3.bcr.1", | ||
+ compatibility_level = 1, | ||
+) | ||
+ | ||
+bazel_dep( | ||
+ name = "rules_foreign_cc", | ||
+ version = "0.10.1", | ||
+) |
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,13 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
# - macos_arm64 | ||
# - windows | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
build_targets: | ||
- '@foonathan_memory//:foonathan_memory' |
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,10 @@ | ||
{ | ||
"url": "https://github.com/foonathan/memory/archive/refs/tags/v0.7-3.tar.gz", | ||
"integrity": "sha256-QgPRXbIqlKOXjusa+1mjfTXFfA8UhzPw8aU6YoHLdN0=", | ||
"strip_prefix": "memory-0.7-3", | ||
"patch_strip": 0, | ||
"patches": { | ||
"add_build_file.patch": "sha256-3E5tTlWOtN3MR5BuTgykSkgwV6Bh5qogxI8bMMagmxY=", | ||
"module_dot_bazel.patch": "sha256-Vil9DymRxv47rWW3FJSFkyjwEDJ39kALv/Tf78S/4iM=" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ | |
"github:foonathan/memory" | ||
], | ||
"versions": [ | ||
"0.7.3" | ||
"0.7.3", | ||
"0.7.3.bcr.1" | ||
], | ||
"yanked_versions": {} | ||
} |