-
Notifications
You must be signed in to change notification settings - Fork 68
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
21 changed files
with
342 additions
and
136 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,8 @@ | ||
module( | ||
name = "boost.uuid", | ||
version = "1.83.0.bcr.1", | ||
bazel_compatibility = [">=7.2.1"], | ||
compatibility_level = 108300, | ||
) | ||
|
||
bazel_dep(name = "rules_cc", version = "0.0.9") |
12 changes: 12 additions & 0 deletions
12
registry/modules/boost.uuid/1.83.0.bcr.1/overlay/BUILD.bazel
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,12 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
||
cc_library( | ||
name = "boost.uuid", | ||
hdrs = glob([ | ||
"include/**/*.hpp", | ||
"include/**/*.ipp", | ||
"include/**/*.h", | ||
]), | ||
includes = ["include"], | ||
visibility = ["//visibility:public"], | ||
) |
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 @@ | ||
../MODULE.bazel |
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,18 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- debian11 | ||
- macos | ||
- macos_arm64 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- windows | ||
bazel: | ||
- 7.x | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- '@boost.uuid//:boost.uuid' |
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/boostorg/uuid/archive/refs/tags/boost-1.83.0.tar.gz", | ||
"integrity": "sha256-D9kSkan1QR0Jf4gR5hNz3xPU4b6EWNWLLIas9CYVPBY=", | ||
"strip_prefix": "uuid-boost-1.83.0", | ||
"patch_strip": 0, | ||
"overlay": { | ||
"BUILD.bazel": "sha256-QOWCk45CZMvrkDTYkA1hatLCCprZ6WbZu78GK+YLuRY=", | ||
"MODULE.bazel": "sha256-Gv5u8Mtyn1lnrRVKbLbu5GvP5f/nhtg3W7wV+vK0MkA=" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package( | ||
default_visibility = ['//:__pkg__'], | ||
) | ||
|
||
load('@rules_foreign_cc//foreign_cc:defs.bzl', 'cmake') | ||
|
||
filegroup( | ||
name = 'all_srcs', | ||
srcs = glob(['**'], exclude = ['bazel-*/**']), | ||
) | ||
|
||
SYMLINK2REAL_SCRIPT = """bash -c ' | ||
set -ex | ||
shopt -s globstar | ||
for file in $INSTALLDIR/** ; do | ||
if [ -L $file ]; then | ||
target=`readlink -f $file` | ||
echo $file $target | ||
rm $file | ||
cp $target $file | ||
fi | ||
done | ||
'""" | ||
|
||
cmake( | ||
name = 'leveldb', | ||
lib_source = ':all_srcs', | ||
cache_entries = { | ||
'LEVELDB_BUILD_TESTS': 'OFF', | ||
'LEVELDB_BUILD_BENCHMARKS': 'OFF', | ||
'CMAKE_CXX_FLAGS': '-I$$EXT_BUILD_DEPS$$/include', | ||
'CMAKE_EXE_LINKER_FLAGS': '-L$$EXT_BUILD_DEPS$$/lib', | ||
}, | ||
postfix_script = SYMLINK2REAL_SCRIPT, | ||
lib_name = 'libleveldb', | ||
visibility = ['//visibility:public'], | ||
deps = [ | ||
'@crc32c', | ||
'@snappy', | ||
], | ||
) |
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
registry/modules/leveldb/1.23/patches/modify-cmakelist.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,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f8285b8..1bf7b99 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -38,8 +38,9 @@ include(CheckIncludeFile) | ||
check_include_file("unistd.h" HAVE_UNISTD_H) | ||
|
||
include(CheckLibraryExists) | ||
+include(CheckIncludeFileCXX) | ||
check_library_exists(crc32c crc32c_value "" HAVE_CRC32C) | ||
-check_library_exists(snappy snappy_compress "" HAVE_SNAPPY) | ||
+check_include_file_cxx("snappy.h" HAVE_SNAPPY) | ||
check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC) | ||
|
||
include(CheckCXXSymbolExists) |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package( | ||
default_visibility = ['//:__pkg__'], | ||
) | ||
|
||
load('@rules_foreign_cc//foreign_cc:defs.bzl', 'cmake') | ||
|
||
filegroup( | ||
name = 'all_srcs', | ||
srcs = glob(['**'], exclude = ['bazel-*/**']), | ||
) | ||
|
||
SYMLINK2REAL_SCRIPT = """bash -c ' | ||
set -ex | ||
shopt -s globstar | ||
for file in $INSTALLDIR/** ; do | ||
if [ -L $file ]; then | ||
target=`readlink -f $file` | ||
echo $file $target | ||
rm $file | ||
cp $target $file | ||
fi | ||
done | ||
'""" | ||
|
||
alias( | ||
name = 'event', | ||
actual = 'libevent', | ||
visibility = ['//visibility:public'], | ||
) | ||
|
||
cmake( | ||
name = 'libevent', | ||
lib_source = ':all_srcs', | ||
cache_entries = { | ||
'EVENT__DISABLE_BENCHMARK': 'ON', | ||
'EVENT__DISABLE_TESTS': 'ON', | ||
'EVENT__DISABLE_SAMPLES': 'ON', | ||
'EVENT__LIBRARY_TYPE': 'STATIC', | ||
'OPENSSL_ROOT_DIR': '$$EXT_BUILD_DEPS$$/openssl', | ||
}, | ||
postfix_script = SYMLINK2REAL_SCRIPT, | ||
out_static_libs = [ | ||
'libevent.a', | ||
'libevent_core.a', | ||
'libevent_extra.a', | ||
'libevent_openssl.a', | ||
'libevent_pthreads.a', | ||
], | ||
deps = [ | ||
'@openssl', | ||
], | ||
visibility = ['//visibility:public'], | ||
) |
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
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,8 @@ | ||
module( | ||
name = 'openssl', | ||
version = '3.3.2', | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = 'rules_foreign_cc', version = '0.8.0') | ||
bazel_dep(name = 'zlib', version = '1.2.13') |
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,46 @@ | ||
package( | ||
default_visibility = ['//:__pkg__'], | ||
) | ||
|
||
load('@rules_foreign_cc//foreign_cc:defs.bzl', 'configure_make') | ||
|
||
filegroup( | ||
name = 'all_srcs', | ||
srcs = glob(['**'], exclude = ['bazel-*/**']), | ||
) | ||
|
||
CONFIGURE_OPTIONS = [ | ||
'no-shared', | ||
'zlib', | ||
'--with-zlib-include=$$EXT_BUILD_DEPS$$/include', | ||
'--with-zlib-lib=$$EXT_BUILD_DEPS$$/lib', | ||
] | ||
|
||
alias( | ||
name = 'ssl', | ||
actual = 'openssl', | ||
visibility = ['//visibility:public'], | ||
) | ||
|
||
alias( | ||
name = 'crypto', | ||
actual = 'openssl', | ||
visibility = ['//visibility:public'], | ||
) | ||
|
||
configure_make( | ||
name = 'openssl', | ||
lib_source = ':all_srcs', | ||
configure_command = 'Configure', | ||
configure_options = CONFIGURE_OPTIONS, | ||
targets = ['install_dev'], | ||
out_lib_dir = 'lib64', | ||
out_static_libs = [ | ||
'libssl.a', | ||
'libcrypto.a', | ||
], | ||
deps = [ | ||
'@zlib', | ||
], | ||
visibility = ['//visibility:public'], | ||
) |
Oops, something went wrong.