mirror of
https://github.com/monero-project/monero.git
synced 2025-01-07 03:19:24 +00:00
depends: add cmake config command
This commit is contained in:
parent
941ecefab2
commit
ea26db449f
1 changed files with 17 additions and 0 deletions
|
@ -153,6 +153,7 @@ $(1)_stage_env+=$($(1)_stage_env_$(host_arch)_$(host_os)) $($(1)_stage_env_$(hos
|
||||||
|
|
||||||
$(1)_config_env+=PKG_CONFIG_LIBDIR=$($($(1)_type)_prefix)/lib/pkgconfig
|
$(1)_config_env+=PKG_CONFIG_LIBDIR=$($($(1)_type)_prefix)/lib/pkgconfig
|
||||||
$(1)_config_env+=PKG_CONFIG_PATH=$($($(1)_type)_prefix)/share/pkgconfig
|
$(1)_config_env+=PKG_CONFIG_PATH=$($($(1)_type)_prefix)/share/pkgconfig
|
||||||
|
$(1)_config_env+=CMAKE_MODULE_PATH=$($($(1)_type)_prefix)/lib/cmake
|
||||||
$(1)_config_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
$(1)_config_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
||||||
$(1)_build_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
$(1)_build_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
||||||
$(1)_stage_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
$(1)_stage_env+=PATH="$(build_prefix)/bin:$(PATH)"
|
||||||
|
@ -185,6 +186,22 @@ endif
|
||||||
ifneq ($($(1)_ldflags),)
|
ifneq ($($(1)_ldflags),)
|
||||||
$(1)_autoconf += LDFLAGS="$$($(1)_ldflags)"
|
$(1)_autoconf += LDFLAGS="$$($(1)_ldflags)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(1)_cmake=env CC="$$($(1)_cc)" \
|
||||||
|
CFLAGS="$$($(1)_cppflags) $$($(1)_cflags)" \
|
||||||
|
CXX="$$($(1)_cxx)" \
|
||||||
|
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
|
||||||
|
LDFLAGS="$$($(1)_ldflags)" \
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" $$($(1)_config_opts)
|
||||||
|
ifeq ($($(1)_type),build)
|
||||||
|
$(1)_cmake += -DCMAKE_INSTALL_RPATH:PATH="$$($($(1)_type)_prefix)/lib"
|
||||||
|
else
|
||||||
|
ifneq ($(host),$(build))
|
||||||
|
$(1)_cmake += -DCMAKE_SYSTEM_NAME=$($(host_os)_cmake_system)
|
||||||
|
$(1)_cmake += -DCMAKE_C_COMPILER_TARGET=$(host)
|
||||||
|
$(1)_cmake += -DCMAKE_CXX_COMPILER_TARGET=$(host)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define int_add_cmds
|
define int_add_cmds
|
||||||
|
|
Loading…
Reference in a new issue