2020-05-21 09:10:52 +02:00
|
|
|
package=libmultiprocess
|
|
|
|
$(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)
|
2022-02-19 11:22:06 +01:00
|
|
|
$(package)_dependencies=native_$(package) capnp
|
2022-05-04 17:34:44 +02:00
|
|
|
ifneq ($(host),$(build))
|
|
|
|
$(package)_dependencies += native_capnp
|
|
|
|
endif
|
|
|
|
|
|
|
|
define $(package)_set_vars :=
|
|
|
|
ifneq ($(host),$(build))
|
Merge bitcoin/bitcoin#27496: depends: reuse _config_opts for CMake options
63c0c4ff10b2f6ed8510ef372a5b1f6a6494b179 depends: reuse _config_opts for CMake options (Cory Fields)
Pull request description:
Context: I'm [currently experimenting with building our depends with CMake when possible](https://github.com/theuni/bitcoin/commits/depends-cmake) as part of our future transition to CMake. Specifically zmq, libevent, libnatpmp, and miniupnpc all have existing CMake buildsystems. Building them with CMake will allow us to drop several deps that we currently have (autoconf, automake, pkg-config, etc) which would be unfortunate to carry over after the switch-over.
But that's not relevant for this PR. This is just a very simple change that makes the above work easier to experiment with as it [adds a needed feature for CMake packages](https://github.com/theuni/bitcoin/commit/5733dc200004004dcce70eaa105d36ba2e75ce7b#diff-e6ed342a25092e0a6d0308e0bfd826044578847132cc6726ac4afa2ca767b61aR20). It's a no-op for the current builds.
---
From commit description:
This will allow us to use the existing machinery for filtering by arch, os, debug/release, etc.
For example, the following becomes possible for libevent when building with CMake:
`$(package)_config_opts_release=-DEVENT__DISABLE_DEBUG_MODE`
Now the define is only set when not building depends with DEBUG=1
ACKs for top commit:
hebasto:
ACK 63c0c4ff10b2f6ed8510ef372a5b1f6a6494b179
Tree-SHA512: 17d123219d2f98c017880196966ffebd5d09d3e2db8e443e227eb7e49da46e9d971fbe7fd2b99a324fc367e1bbe0ac3cd15b399bce98dd87fbb144d767e15fe7
2023-04-21 15:22:33 +02:00
|
|
|
$(package)_config_opts := -DCAPNP_EXECUTABLE="$$(native_capnp_prefixbin)/capnp"
|
|
|
|
$(package)_config_opts += -DCAPNPC_CXX_EXECUTABLE="$$(native_capnp_prefixbin)/capnpc-c++"
|
2022-05-04 17:34:44 +02:00
|
|
|
endif
|
|
|
|
endef
|
2020-05-21 09:10:52 +02:00
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2022-04-05 10:09:13 +02:00
|
|
|
$($(package)_cmake) .
|
2020-05-21 09:10:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|