mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
8db3d5731b
Add readline, ldns, graphviz, unbound to depends packages Add a cmake toolchain file to depends that is uniquely created for every build and placed in triple/share/toolchain.cmake This file is then passed to cmake with -DCMAKE_TOOLCHAIN_FILE=/path/to/triple/share/toolchain.cmake Add the boost locale package to depends In the depends cmake toolchain file, a DEPENDS flag is added to exclude, or change cmake checks done that are required for depends Link miniupnpc and unwind from depends and not external Add libiconv and icu4c to depends, required for mingw32 builds. Headers (winsock) need to be lower case in order to compile on unix systems. This should not affect building on windows.
100 lines
2.2 KiB
Text
100 lines
2.2 KiB
Text
depends_prefix="`dirname ${ac_site_file}`/.."
|
|
|
|
cross_compiling=maybe
|
|
host_alias=@HOST@
|
|
ac_tool_prefix=${host_alias}-
|
|
|
|
if test -z $with_boost; then
|
|
with_boost=$depends_prefix
|
|
fi
|
|
if test -z $with_qt_plugindir; then
|
|
with_qt_plugindir=$depends_prefix/plugins
|
|
fi
|
|
if test -z $with_qt_translationdir; then
|
|
with_qt_translationdir=$depends_prefix/translations
|
|
fi
|
|
if test -z $with_qt_bindir && test -z "@no_qt@"; then
|
|
with_qt_bindir=$depends_prefix/native/bin
|
|
fi
|
|
if test -z $with_protoc_bindir && test -z "@no_qt@"; then
|
|
with_protoc_bindir=$depends_prefix/native/bin
|
|
fi
|
|
|
|
|
|
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
|
enable_wallet=no
|
|
fi
|
|
|
|
if test -z $with_miniupnpc && test -n "@no_upnp@"; then
|
|
with_miniupnpc=no
|
|
fi
|
|
|
|
if test -z $with_gui && test -n "@no_qt@"; then
|
|
with_gui=no
|
|
fi
|
|
|
|
if test x@host_os@ = xdarwin; then
|
|
BREW=no
|
|
PORT=no
|
|
fi
|
|
|
|
if test x@host_os@ = xmingw32; then
|
|
if test -z $with_qt_incdir; then
|
|
with_qt_incdir=$depends_prefix/include
|
|
fi
|
|
if test -z $with_qt_libdir; then
|
|
with_qt_libdir=$depends_prefix/lib
|
|
fi
|
|
fi
|
|
|
|
PATH=$depends_prefix/native/bin:$PATH
|
|
PKG_CONFIG="`which pkg-config` --static"
|
|
|
|
# These two need to remain exported because pkg-config does not see them
|
|
# otherwise. That means they must be unexported at the end of configure.ac to
|
|
# avoid ruining the cache. Sigh.
|
|
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
|
|
if test -z "@allow_host_packages@"; then
|
|
export PKGCONFIG_LIBDIR=
|
|
fi
|
|
|
|
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
|
|
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
|
|
|
|
CC="@CC@"
|
|
CXX="@CXX@"
|
|
OBJC="${CC}"
|
|
CCACHE=$depends_prefix/native/bin/ccache
|
|
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
|
|
|
|
if test -n "@AR@"; then
|
|
AR=@AR@
|
|
ac_cv_path_ac_pt_AR=${AR}
|
|
fi
|
|
|
|
if test -n "@RANLIB@"; then
|
|
RANLIB=@RANLIB@
|
|
ac_cv_path_ac_pt_RANLIB=${RANLIB}
|
|
fi
|
|
|
|
if test -n "@NM@"; then
|
|
NM=@NM@
|
|
ac_cv_path_ac_pt_NM=${NM}
|
|
fi
|
|
|
|
if test -n "@debug@"; then
|
|
enable_reduce_exports=no
|
|
fi
|
|
|
|
if test -n "@CFLAGS@"; then
|
|
CFLAGS="@CFLAGS@ $CFLAGS"
|
|
fi
|
|
if test -n "@CXXFLAGS@"; then
|
|
CXXFLAGS="@CXXFLAGS@ $CXXFLAGS"
|
|
fi
|
|
if test -n "@CPPFLAGS@"; then
|
|
CPPFLAGS="@CPPFLAGS@ $CPPFLAGS"
|
|
fi
|
|
if test -n "@LDFLAGS@"; then
|
|
LDFLAGS="@LDFLAGS@ $LDFLAGS"
|
|
fi
|