Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/NativeExecutable.cmake
Show All 9 Lines | if(CMAKE_CROSSCOMPILING AND NOT TARGET native-cmake-build) | ||||
file(MAKE_DIRECTORY ${NATIVE_BUILD_DIR}) | file(MAKE_DIRECTORY ${NATIVE_BUILD_DIR}) | ||||
add_custom_command( | add_custom_command( | ||||
OUTPUT ${NATIVE_BUILD_TARGET} | OUTPUT ${NATIVE_BUILD_TARGET} | ||||
COMMAND ${CMAKE_COMMAND} | COMMAND ${CMAKE_COMMAND} | ||||
-G "${CMAKE_GENERATOR}" | -G "${CMAKE_GENERATOR}" | ||||
"${CMAKE_SOURCE_DIR}" | "${CMAKE_SOURCE_DIR}" | ||||
"-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}" | "-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}" | ||||
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=${NATIVE_BINARY_DIR}" | "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=${NATIVE_BINARY_DIR}" | ||||
# Don't include the dependencies we don't need. | |||||
jasonbcox: nit: what initially threw me off was that these were any dependencies. after clarifying offline… | |||||
"-DBUILD_BITCOIN_WALLET=OFF" | |||||
"-DBUILD_BITCOIN_QT=OFF" | |||||
"-DBUILD_BITCOIN_ZMQ=OFF" | |||||
"-DENABLE_QRCODE=OFF" | |||||
"-DENABLE_UPNP=OFF" | |||||
WORKING_DIRECTORY ${NATIVE_BUILD_DIR} | WORKING_DIRECTORY ${NATIVE_BUILD_DIR} | ||||
VERBATIM USES_TERMINAL | VERBATIM USES_TERMINAL | ||||
) | ) | ||||
add_custom_target(native-cmake-build DEPENDS ${NATIVE_BUILD_TARGET}) | add_custom_target(native-cmake-build DEPENDS ${NATIVE_BUILD_TARGET}) | ||||
endif() | endif() | ||||
macro(add_native_executable NAME) | macro(add_native_executable NAME) | ||||
Show All 25 Lines |
nit: what initially threw me off was that these were any dependencies. after clarifying offline, I think the comment could be clarified to state that this is to reduce unneeded third-party dependencies specifically.