2022-06-02 12:50:33 +00:00
|
|
|
package=protobuf
|
|
|
|
$(package)_version=$(native_$(package)_version)
|
|
|
|
$(package)_download_path=$(native_$(package)_download_path)
|
|
|
|
$(package)_file_name=$(native_$(package)_file_name)
|
|
|
|
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
2024-09-29 07:36:18 +00:00
|
|
|
$(package)_dependencies=abseil
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2024-09-29 07:36:18 +00:00
|
|
|
$(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
|
2024-09-29 10:41:52 +00:00
|
|
|
$(package)_config_opts+=-Dprotobuf_BUILD_LIBUPB=OFF
|
2024-09-29 07:36:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$($(package)_cmake)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$(MAKE)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2024-09-29 07:36:18 +00:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|