Integrate RandomX dependency into build system
This commit is contained in:
parent
dc59975834
commit
285d68b78a
4 changed files with 43 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
packages:=
|
||||
packages:=randomx
|
||||
|
||||
boost_packages = boost
|
||||
|
||||
|
|
|
|||
29
depends/packages/randomx.mk
Normal file
29
depends/packages/randomx.mk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package=randomx
|
||||
$(package)_version=1.2.3
|
||||
$(package)_download_path=https://github.com/tevador/RandomX/archive/refs/tags
|
||||
$(package)_file_name=v$($(package)_version).tar.gz
|
||||
$(package)_sha256_hash=096af0bbe9d0dfeed6962c8541cd8f705a7ee2cfc2a6f433bcecc56941b720b8
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_cmake_opts=-DCMAKE_BUILD_TYPE=Release
|
||||
$(package)_cmake_opts+=-DARCH=default
|
||||
$(package)_cmake_opts+=-DBUILD_SHARED_LIBS=OFF
|
||||
endef
|
||||
|
||||
define $(package)_preprocess_cmds
|
||||
mkdir build
|
||||
endef
|
||||
|
||||
define $(package)_config_cmds
|
||||
cd build && $($(package)_cmake) ..
|
||||
endef
|
||||
|
||||
define $(package)_build_cmds
|
||||
$(MAKE) -C build randomx
|
||||
endef
|
||||
|
||||
define $(package)_stage_cmds
|
||||
mkdir -p $($(package)_staging_prefix_dir)/include $($(package)_staging_prefix_dir)/lib && \
|
||||
install src/randomx.h $($(package)_staging_prefix_dir)/include/randomx.h && \
|
||||
install build/librandomx.a $($(package)_staging_prefix_dir)/lib/librandomx.a
|
||||
endef
|
||||
Loading…
Reference in a new issue