mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
depends: cleanup toolchain
This commit is contained in:
parent
352ae7fa69
commit
00915ee8a0
1 changed files with 0 additions and 29 deletions
|
@ -3,12 +3,7 @@ SET(CMAKE_SYSTEM_NAME @depends@)
|
||||||
SET(CMAKE_SYSTEM_PROCESSOR @arch@)
|
SET(CMAKE_SYSTEM_PROCESSOR @arch@)
|
||||||
SET(CMAKE_BUILD_TYPE @release_type@)
|
SET(CMAKE_BUILD_TYPE @release_type@)
|
||||||
|
|
||||||
OPTION(STATIC "Link libraries statically" ON)
|
|
||||||
OPTION(TREZOR_DEBUG "Main trezor debugging switch" OFF)
|
|
||||||
OPTION(BUILD_TESTS "Build tests." OFF)
|
|
||||||
|
|
||||||
SET(STATIC ON)
|
SET(STATIC ON)
|
||||||
SET(UNBOUND_STATIC ON)
|
|
||||||
SET(ARCH "default")
|
SET(ARCH "default")
|
||||||
|
|
||||||
SET(BUILD_TESTS @build_tests@)
|
SET(BUILD_TESTS @build_tests@)
|
||||||
|
@ -43,17 +38,9 @@ SET(absl_ROOT @prefix@)
|
||||||
SET(NATIVE_BIN_PATH @prefix@/native/bin CACHE FILEPATH "path to native binaries" FORCE)
|
SET(NATIVE_BIN_PATH @prefix@/native/bin CACHE FILEPATH "path to native binaries" FORCE)
|
||||||
SET(LRELEASE_PATH @prefix@/native/bin CACHE FILEPATH "path to lrelease" FORCE)
|
SET(LRELEASE_PATH @prefix@/native/bin CACHE FILEPATH "path to lrelease" FORCE)
|
||||||
|
|
||||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
||||||
SET(LIBUNWIND_INCLUDE_DIR @prefix@/include)
|
|
||||||
SET(LIBUNWIND_LIBRARIES @prefix@/lib/libunwind.a)
|
|
||||||
SET(LIBUNWIND_LIBRARY_DIRS @prefix@/lib)
|
|
||||||
|
|
||||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
if(NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||||
SET(LIBUSB-1.0_LIBRARY @prefix@/lib/libusb-1.0.a)
|
SET(LIBUSB-1.0_LIBRARY @prefix@/lib/libusb-1.0.a)
|
||||||
SET(LIBUDEV_LIBRARY @prefix@/lib/libudev.a)
|
SET(LIBUDEV_LIBRARY @prefix@/lib/libudev.a)
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
SET(ZMQ_INCLUDE_PATH @prefix@/include)
|
SET(ZMQ_INCLUDE_PATH @prefix@/include)
|
||||||
|
@ -116,22 +103,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
SET(CMAKE_CXX_STANDARD 17)
|
SET(CMAKE_CXX_STANDARD 17)
|
||||||
SET(LLVM_ENABLE_PIC OFF)
|
SET(LLVM_ENABLE_PIC OFF)
|
||||||
SET(LLVM_ENABLE_PIE OFF)
|
SET(LLVM_ENABLE_PIE OFF)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
||||||
SET(ANDROID TRUE)
|
|
||||||
if(ARCHITECTURE STREQUAL "arm")
|
|
||||||
SET(CMAKE_ANDROID_ARCH_ABI "armeabi-v7a")
|
|
||||||
SET(CMAKE_SYSTEM_PROCESSOR "armv7-a")
|
|
||||||
SET(CMAKE_ANDROID_ARM_MODE ON)
|
|
||||||
SET(CMAKE_C_COMPILER_TARGET arm-linux-androideabi)
|
|
||||||
SET(CMAKE_CXX_COMPILER_TARGET arm-linux-androideabi)
|
|
||||||
SET(_CMAKE_TOOLCHAIN_PREFIX arm-linux-androideabi-)
|
|
||||||
elseif(ARCHITECTURE STREQUAL "aarch64")
|
|
||||||
SET(CMAKE_ANDROID_ARCH_ABI "arm64-v8a")
|
|
||||||
SET(CMAKE_SYSTEM_PROCESSOR "aarch64")
|
|
||||||
endif()
|
|
||||||
SET(CMAKE_ANDROID_STANDALONE_TOOLCHAIN @prefix@/native)
|
|
||||||
SET(CMAKE_C_COMPILER "${_CMAKE_TOOLCHAIN_PREFIX}clang")
|
|
||||||
SET(CMAKE_CXX_COMPILER "${_CMAKE_TOOLCHAIN_PREFIX}clang++")
|
|
||||||
else()
|
else()
|
||||||
SET(CMAKE_C_COMPILER @CC@)
|
SET(CMAKE_C_COMPILER @CC@)
|
||||||
SET(CMAKE_CXX_COMPILER @CXX@)
|
SET(CMAKE_CXX_COMPILER @CXX@)
|
||||||
|
|
Loading…
Reference in a new issue