@@ -20,17 +20,13 @@ cmake_policy(SET CMP0074 NEW)
2020# Configurable options
2121option (STATIC "Link libraries statically, requires static Qt" OFF )
2222option (SELF_CONTAINED "Disable when building Feather for packages" OFF )
23- option (TOR_DIR "Directory containing Tor binaries to embed inside Feather" OFF )
2423option (CHECK_UPDATES "Enable checking for application updates" OFF )
2524option (PLATFORM_INSTALLER "Built-in updater fetches installer (windows-only)" OFF )
2625option (USE_DEVICE_TREZOR "Trezor support compilation" ON )
2726option (DONATE_BEG "Prompt donation window every once in a while" OFF )
2827option (WITH_SCANNER "Enable webcam QR scanner" ON )
2928option (STACK_TRACE "Dump stack trace on crash (Linux only)" OFF )
3029
31- # internal configuration options
32- option (TOR_INSTALLED "Is Tor installed on the filesystem?" OFF )
33-
3430# Plugins
3531option (WITH_PLUGIN_HOME "Include Home tab plugin" ON )
3632option (WITH_PLUGIN_TICKERS "Include Tickers Home plugin" ON )
@@ -138,32 +134,6 @@ if(UNIX AND NOT APPLE)
138134endif ()
139135
140136include (GenerateDocs )
141- include (TorQrcGenerator )
142-
143- # To build Feather with embedded (and static) Tor, pass CMake -DTOR_DIR=/path/to/tor/
144- if (TOR_DIR)
145- if (NOT TOR_VERSION)
146- message (FATAL_ERROR "TOR_DIR is specified but TOR_VERSION is not set" )
147- endif ()
148-
149- message (STATUS "Embedded Tor version: ${TOR_VERSION} " )
150-
151- # Always copy Tor when doing a reproducible build to prevent old versions from getting included
152- if (REPRODUCIBLE)
153- set (TOR_COPY_CMD "cp -a ${TOR_DIR} /* ${CMAKE_CURRENT_SOURCE_DIR} /src/assets/tor" )
154- else ()
155- set (TOR_COPY_CMD "cp -au ${TOR_DIR} /* ${CMAKE_CURRENT_SOURCE_DIR} /src/assets/tor" )
156- endif ()
157-
158- execute_process (COMMAND bash -c "${TOR_COPY_CMD} " RESULT_VARIABLE ret )
159- if (ret EQUAL "1" )
160- message (FATAL_ERROR "Tor copy failure: ${TOR_COPY_CMD} " )
161- endif ()
162-
163- message (STATUS "Embedding Tor binaries at ${TOR_DIR} " )
164- else ()
165- message (STATUS "Skipping Tor inclusion because -DTOR_DIR=Off" )
166- endif ()
167137
168138message (STATUS "Using Boost include dir at ${Boost_INCLUDE_DIRS} " )
169139message (STATUS "Using Boost libraries at ${Boost_LIBRARIES} " )
0 commit comments