-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
9 changed files
with
127 additions
and
46 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
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,27 @@ | ||
package=abseil | ||
$(package)_version=$(native_$(package)_version) | ||
$(package)_download_path=$(native_$(package)_download_path) | ||
$(package)_download_file=$(native_$(package)_download_file) | ||
$(package)_file_name=$(native_$(package)_file_name) | ||
$(package)_sha256_hash=$(native_$(package)_sha256_hash) | ||
$(package)_patches=no_librt.patch | ||
|
||
define $(package)_set_vars | ||
$(package)_cxxflags+=-std=c++17 | ||
endef | ||
|
||
define $(package)_preprocess_cmds | ||
patch -p1 -i $($(package)_patch_dir)/no_librt.patch | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_cmake) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef |
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 @@ | ||
package=native_abseil | ||
$(package)_version=20240722.0 | ||
$(package)_download_path=https://github.com/abseil/abseil-cpp/archive/refs/tags/ | ||
$(package)_download_file=$($(package)_version).tar.gz | ||
$(package)_file_name=abseil-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3 | ||
|
||
define $(package)_config_cmds | ||
$($(package)_cmake) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef |
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 |
---|---|---|
@@ -1,28 +1,34 @@ | ||
package=native_protobuf | ||
$(package)_version=21.12 | ||
$(package)_version_protobuf_cpp=3.21.12 | ||
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version)/ | ||
$(package)_file_name=protobuf-cpp-$($(package)_version_protobuf_cpp).tar.gz | ||
$(package)_sha256_hash=4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460 | ||
$(package)_cxxflags=-std=c++11 | ||
$(package)_version=29.1 | ||
$(package)_download_path=https://github.com/protocolbuffers/protobuf/releases/download/v$($(package)_version) | ||
$(package)_file_name=protobuf-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=3d32940e975c4ad9b8ba69640e78f5527075bae33ca2890275bf26b853c0962c | ||
$(package)_dependencies=native_abseil | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--disable-shared --prefix=$(build_prefix) | ||
$(package)_config_opts_linux=--with-pic | ||
$(package)_cxxflags+=-std=c++17 | ||
$(package)_config_opts=-Dprotobuf_BUILD_TESTS=OFF | ||
$(package)_config_opts+=-Dprotobuf_ABSL_PROVIDER=package | ||
$(package)_config_opts+=-Dprotobuf_BUILD_SHARED_LIBS=OFF | ||
endef | ||
|
||
# Remove blobs | ||
define $(package)_preprocess_cmds | ||
rm -rf examples docs php/src/GPBMetadata compatibility objectivec/Tests csharp/keys php/tests src/google/protobuf/testdata csharp/src/Google.Protobuf.Test | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_autoconf) | ||
$($(package)_cmake) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) -C src protoc | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-binPROGRAMS install-nobase_dist_protoDATA | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef | ||
|
||
define $(package)_postprocess_cmds | ||
rm -rf lib/ | ||
rm -rf lib64 | ||
endef |
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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
packages:=boost openssl zeromq expat unbound sodium | ||
native_packages := native_abseil native_protobuf | ||
packages := boost openssl zeromq expat unbound sodium abseil protobuf | ||
|
||
hardware_packages := hidapi protobuf libusb | ||
hardware_native_packages := native_protobuf | ||
linux_native_packages := | ||
linux_packages := ncurses readline eudev libusb hidapi | ||
|
||
android_native_packages = android_ndk $(hardware_native_packages) | ||
android_packages = ncurses readline protobuf | ||
mingw32_native_packages := | ||
mingw32_packages := hidapi | ||
|
||
darwin_native_packages = $(hardware_native_packages) | ||
darwin_packages = ncurses readline $(hardware_packages) | ||
freebsd_native_packages := freebsd_base | ||
freebsd_packages := ncurses readline hidapi | ||
|
||
# not really native... | ||
freebsd_native_packages = freebsd_base $(hardware_native_packages) | ||
freebsd_packages = ncurses readline protobuf libusb | ||
ifneq ($(build_os),darwin) | ||
darwin_native_packages := darwin_sdk native_cctools native_libtapi | ||
endif | ||
darwin_packages := ncurses readline hidapi | ||
|
||
linux_packages = eudev ncurses readline $(hardware_packages) | ||
linux_native_packages = $(hardware_native_packages) | ||
android_native_packages := android_ndk | ||
android_packages := ncurses readline | ||
|
||
ifeq ($(build_tests),ON) | ||
packages += gtest | ||
endif | ||
|
||
mingw32_packages = $(hardware_packages) | ||
mingw32_native_packages = $(hardware_native_packages) | ||
|
||
ifneq ($(build_os),darwin) | ||
darwin_native_packages += darwin_sdk native_cctools native_libtapi | ||
endif |
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 |
---|---|---|
@@ -1,27 +1,33 @@ | ||
package=protobuf | ||
$(package)_version=$(native_$(package)_version) | ||
$(package)_version_protobuf_cpp=$(native_$(package)_version_protobuf_cpp) | ||
$(package)_download_path=$(native_$(package)_download_path) | ||
$(package)_file_name=$(native_$(package)_file_name) | ||
$(package)_sha256_hash=$(native_$(package)_sha256_hash) | ||
$(package)_dependencies=native_$(package) | ||
$(package)_cxxflags=-std=c++11 | ||
$(package)_dependencies=abseil | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc | ||
$(package)_config_opts_linux=--with-pic | ||
$(package)_cxxflags+=-std=c++17 | ||
$(package)_config_opts=-Dprotobuf_ABSL_PROVIDER=package | ||
$(package)_config_opts+=-Dprotobuf_BUILD_TESTS=OFF | ||
$(package)_config_opts+=-Dprotobuf_BUILD_SHARED_LIBS=OFF | ||
$(package)_config_opts+=-Dprotobuf_BUILD_PROTOC_BINARIES=OFF | ||
$(package)_config_opts+=-Dprotobuf_WITH_ZLIB=OFF | ||
$(package)_config_opts+=-Dprotobuf_BUILD_LIBUPB=OFF | ||
endef | ||
|
||
# Remove blobs | ||
define $(package)_preprocess_cmds | ||
rm -rf docs php/src/GPBMetadata compatibility objectivec/Tests csharp/keys php/tests src/google/protobuf/testdata csharp/src/Google.Protobuf.Test | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags) | ||
$($(package)_cmake) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) -C src libprotobuf.la | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-nobase_includeHEADERS &&\ | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA &&\ | ||
cp src/.libs/libprotobuf.a $($(package)_staging_prefix_dir)/lib/ | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef |
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 @@ | ||
diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt | ||
index 97994fc6..06ab426c 100644 | ||
--- a/absl/base/CMakeLists.txt | ||
+++ b/absl/base/CMakeLists.txt | ||
@@ -240,7 +240,6 @@ absl_cc_library( | ||
${ABSL_DEFAULT_COPTS} | ||
LINKOPTS | ||
${ABSL_DEFAULT_LINKOPTS} | ||
- $<$<BOOL:${LIBRT}>:-lrt> | ||
$<$<BOOL:${MINGW}>:-ladvapi32> | ||
DEPS | ||
absl::atomic_hook |
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