mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07: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.
46 lines
1.3 KiB
CMake
46 lines
1.3 KiB
CMake
# this one is important
|
|
SET(CMAKE_SYSTEM_NAME @depends@)
|
|
|
|
#this one not so much
|
|
SET(CMAKE_SYSTEM_VERSION 1)
|
|
|
|
# specify the cross compiler
|
|
SET(CMAKE_C_COMPILER @CC@)
|
|
SET(CMAKE_CXX_COMPILER @CXX@)
|
|
|
|
SET(STATIC true)
|
|
SET(UNBOUND_STATIC true)
|
|
|
|
# where is the target environment
|
|
SET(CMAKE_FIND_ROOT_PATH @prefix@ /usr)
|
|
|
|
SET(THREADS_PTHREAD_ARG "2" CACHE STRING "Forcibly set by CMakeLists.txt." FORCE)
|
|
SET(Readline_ROOT_DIR @prefix@)
|
|
|
|
SET(LIBUNWIND_INCLUDE_DIR @prefix@/include)
|
|
SET(LIBUNWIND_LIBRARIES @prefix@/lib/libunwind.a)
|
|
SET(LIBUNWIND_LIBRARY_DIRS @prefix@/lib)
|
|
|
|
SET(UNBOUND_INCLUDE_DIR @prefix@/include)
|
|
SET(UNBOUND_LIBRARIES @prefix@/lib)
|
|
SET(UNBOUND_LIBRARY @prefix@/lib/libunbound.a)
|
|
|
|
SET(ZMQ_INCLUDE_PATH @prefix@/include)
|
|
SET(ZMQ_LIB @prefix@/lib/libzmq.a)
|
|
|
|
#SET(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT ON)
|
|
#SET(BOOST_IGNORE_SYSTEM_PATH ON)
|
|
#SET(BOOST_ROOT @prefix@)
|
|
#SET(BOOST_LIBRARYDIR @prefix@/lib)
|
|
|
|
# for libraries and headers in the target directories
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Find programs on host
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) # Find libs in target
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # Find includes in target
|
|
|
|
#set (MINGW_FLAG "-m64")
|
|
#set (USE_LTO_DEFAULT false)
|
|
|
|
#Create a new cmake flag that indicates building with depends
|
|
set (DEPENDS true)
|