Pass more context to external project for cross-compiling
This commit is contained in:
parent
61fb404b9b
commit
228107ac6c
|
@ -20,12 +20,40 @@ set(qtkeychain_INCLUDE_DIR ${qtkeychain_BUILDDIR}/include/qt5keychain)
|
|||
|
||||
ExternalProject_Add(qtkeychain
|
||||
GIT_REPOSITORY https://github.com/status-im/qtkeychain.git
|
||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${qtkeychain_BUILDDIR} -DQTKEYCHAIN_STATIC=ON -DBUILD_TRANSLATIONS=OFF
|
||||
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${qtkeychain_BUILDDIR}"
|
||||
"-DQTKEYCHAIN_STATIC=ON"
|
||||
"-DBUILD_TRANSLATIONS=OFF"
|
||||
"-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}"
|
||||
"-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}"
|
||||
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
|
||||
"-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}"
|
||||
# These are only useful if you're cross-compiling.
|
||||
# They, however, will not hurt regardless.
|
||||
"-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}"
|
||||
"-DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR}"
|
||||
"-DCMAKE_AR=${CMAKE_AR}"
|
||||
"-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
|
||||
"-DCMAKE_C_COMPILER_AR=${CMAKE_C_COMPILER_AR}"
|
||||
"-DCMAKE_C_COMPILER_RANLIB=${CMAKE_C_COMPILER_RANLIB}"
|
||||
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
|
||||
"-DCMAKE_CXX_COMPILER_AR=${CMAKE_CXX_COMPILER_AR}"
|
||||
"-DCMAKE_CXX_COMPILER_RANLIB=${CMAKE_CXX_COMPILER_RANLIB}"
|
||||
"-DCMAKE_LINKER=${CMAKE_LINKER}"
|
||||
"-DCMAKE_RC_COMPILER=${CMAKE_RC_COMPILER}"
|
||||
"-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}"
|
||||
"-DCMAKE_COMPILER_PREFIX=${CMAKE_COMPILER_PREFIX}"
|
||||
"-DCMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH}"
|
||||
BUILD_BYPRODUCTS ${qtkeychain_STATIC_LIB}
|
||||
LOG_BUILD 1
|
||||
LOG_DOWNLOAD 1
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
find_package(Qt5 COMPONENTS Core REQUIRED)
|
||||
set(qtkeychain_DEPS Qt5::Core)
|
||||
set(REACT_NATIVE_DESKTOP_EXTERNAL_QT_COMPONENTS ${REACT_NATIVE_DESKTOP_EXTERNAL_PROJECT_DEPS} Core PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(Qt5 COMPONENTS DBus REQUIRED)
|
||||
set(qtkeychain_DEPS Qt5::DBus)
|
||||
|
|
Loading…
Reference in New Issue