diff options
| author | Christoph Berg <myon@debian.org> | 2024-09-30 22:36:11 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2024-09-30 22:36:11 +0200 |
| commit | 4320ce238aae1fe87fc9f379cdd816e9317885fa (patch) | |
| tree | b9d97364486fc8b7f79e8e877d5d491bb061740f /CMakeLists.txt | |
| parent | fbaeaa72f63f22bf0b53d634f6809cbdfbb46c9f (diff) | |
New upstream version 2.7.0~rc7+repackupstream/2.7.0_rc7+repack
Diffstat (limited to 'CMakeLists.txt')
| -rwxr-xr-x | CMakeLists.txt | 139 |
1 files changed, 57 insertions, 82 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 65f7462e..a708af66 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,7 @@ project (wsjtx )
set (PROJECT_DESCRIPTION "WSJT-X: Digital Modes for Weak Signal Communications in Amateur Radio")
set (CMAKE_PROJECT_DESCRIPTION ${PROJECT_DESCRIPTION})
+set (CMAKE_AUTOUIC ON)
#
# Local CMake modules and support files
@@ -71,7 +72,7 @@ message (STATUS "******************************************************") include (set_build_type)
# RC 0 or omitted is a development build, GA is a General Availability release build
-set_build_type (RC 6)
+set_build_type (RC 7)
set (wsjtx_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${BUILD_TYPE_REVISION}")
#
@@ -126,6 +127,7 @@ option (WSJT_GENERATE_DOCS "Generate documentation files." ON) option (WSJT_RIG_NONE_CAN_SPLIT "Allow split operation with \"None\" as rig.")
option (WSJT_TRACE_UDP "Debugging option that turns on UDP message protocol diagnostics.")
option (WSJT_BUILD_UTILS "Build simulators and code demonstrators." ON)
+option (WSJT_FOX_OTP "Enable Fox OTP Verification Messages." ON)
CMAKE_DEPENDENT_OPTION (WSJT_QDEBUG_IN_RELEASE "Leave Qt debugging statements in Release configuration." OFF
"NOT is_debug_build" OFF)
CMAKE_DEPENDENT_OPTION (WSJT_ENABLE_EXPERIMENTAL_FEATURES "Enable features not fully ready for public releases." ON
@@ -161,6 +163,12 @@ endif () set (WSJT_PLUGIN_DESTINATION ${PLUGIN_DESTINATION} CACHE PATH "Path for plugins")
set (WSJT_QT_CONF_DESTINATION ${QT_CONF_DESTINATION} CACHE PATH "Path for the qt.conf file")
+if (WSJT_FOX_OTP)
+ set (wsjt_fox_CXXSRCS
+
+ )
+ message (STATUS "Including Fox verification code feature")
+endif ()
#
# Project sources
@@ -223,6 +231,7 @@ set (wsjt_qt_CXXSRCS widgets/DoubleClickableRadioButton.cpp
Network/LotWUsers.cpp
Network/FileDownload.cpp
+ Network/FoxVerifier.cpp
models/DecodeHighlightingModel.cpp
widgets/DecodeHighlightingListView.cpp
models/FoxLog.cpp
@@ -242,6 +251,7 @@ set (wsjt_qt_CXXSRCS widgets/LazyFillComboBox.cpp
widgets/CheckableItemComboBox.cpp
widgets/BandComboBox.cpp
+ otpgenerator.cpp
)
set (wsjt_qtmm_CXXSRCS
@@ -292,6 +302,7 @@ set (wsjt_CXXSRCS lib/crc10.cpp
lib/crc13.cpp
lib/crc14.cpp
+ ${wsjt_fox_CXXSRCS}
)
# deal with a GCC v6 UB error message
set_source_files_properties (
@@ -342,6 +353,10 @@ set (wsjt_FSRCS lib/wavhdr.f90
lib/qra/q65/q65_encoding_modules.f90
lib/ft8/ft8_a7.f90
+ lib/superfox/sfox_mod.f90
+ lib/superfox/julian.f90
+ lib/superfox/popen_module.f90
+ lib/superfox/qpc/qpc_mod.f90
# remaining non-module sources
lib/addit.f90
@@ -586,8 +601,27 @@ set (wsjt_FSRCS lib/fst4/get_crc24.f90
lib/fst4/fst4_baseline.f90
lib/77bit/hash22calc.f90
+
+ lib/superfox/foxgen2.f90
+ lib/superfox/qpc_decode2.f90
+ lib/superfox/qpc_likelihoods2.f90
+ lib/superfox/qpc_snr.f90
+ lib/superfox/qpc_sync.f90
+ lib/superfox/sfox_ana.f90
+ lib/superfox/sfox_assemble.f90
+ lib/superfox/sfox_demod.f90
+ lib/superfox/sfox_pack.f90
+ lib/superfox/sfox_remove_ft8.f90
+ lib/superfox/sfox_remove_tone.f90
+ lib/superfox/sfox_unpack.f90
lib/superfox/sfox_wave.f90
lib/superfox/sfox_wave_gfsk.f90
+ lib/superfox/sfrx_sub.f90
+ lib/superfox/sftx_sub.f90
+ lib/superfox/twkfreq2.f90
+ lib/superfox/sfox_gen_gfsk.f90
+ lib/superfox/ran1.f90
+ lib/superfox/sfoxsim.f90
)
# temporary workaround for a gfortran v7.3 ICE on Fedora 27 64-bit
@@ -630,6 +664,15 @@ set (wsjt_CSRCS lib/wrapkarn.c
${ldpc_CSRCS}
${qra_CSRCS}
+
+ lib/superfox/qpc/dbgprintf.c
+ lib/superfox/qpc/nhash2.c
+ lib/superfox/qpc/np_qpc.c
+ lib/superfox/qpc/np_rnd.c
+ lib/superfox/qpc/qpc_fwht.c
+ lib/superfox/qpc/qpc_n127k50q128.c
+ lib/superfox/qpc/qpc_subs.c
+
)
set (wsjt_qt_UISRCS
@@ -903,7 +946,9 @@ check_type_size (CACHE_ALL HAMLIB_OLD_CACHING) check_symbol_exists (rig_set_cache_timeout_ms "hamlib/rig.h" HAVE_HAMLIB_CACHING)
find_package (Usb REQUIRED)
-
+if (WSJT_FOX_OTP)
+ add_definitions (-DFOX_OTP)
+endif ()
#
# Qt5 setup
#
@@ -1213,6 +1258,15 @@ target_link_libraries (echosim wsjt_fort wsjt_cxx) add_executable (ft8sim lib/ft8/ft8sim.f90)
target_link_libraries (ft8sim wsjt_fort wsjt_cxx)
+add_executable (sfoxsim lib/superfox/sfoxsim.f90)
+target_link_libraries (sfoxsim wsjt_fort wsjt_cxx)
+
+add_executable (sfrx lib/superfox/sfrx.f90)
+target_link_libraries (sfrx wsjt_fort wsjt_cxx)
+
+#add_executable (sftx lib/superfox/sftx.f90)
+#target_link_libraries (sftx wsjt_fort wsjt_cxx)
+
add_executable (msk144sim lib/msk144sim.f90)
target_link_libraries (msk144sim wsjt_fort wsjt_cxx)
@@ -1600,7 +1654,7 @@ install (TARGETS udp_daemon message_aggregator wsjtx_app_version BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
)
-install (TARGETS jt9 wsprd fmtave fcal fmeasure
+install (TARGETS jt9 wsprd fmtave fcal fmeasure
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
)
@@ -1661,85 +1715,6 @@ install (DIRECTORY #COMPONENT runtime
)
-if (WIN32)
-
-# set (sfox_dir "$ENV{SFOX_DIR}")
-
- if (DEFINED ENV{SFOX_DIR})
- set(sfox_dir "$ENV{SFOX_DIR}")
- string(REPLACE "\\" "/" sfox_dir "${sfox_dir}")
- else ()
- set(sfox_dir lib/superfox/win)
- endif ()
-
- install (FILES
- ${sfox_dir}/sfrx.exe
- ${sfox_dir}/sftx.exe
- ${sfox_dir}/foxchk.exe
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- #COMPONENT runtime
- )
-endif (WIN32)
-
-if (UNIX)
- install (FILES
- lib/superfox/linux/sfrx
- lib/superfox/linux/sftx
- lib/superfox/linux/foxchk
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- PERMISSIONS GROUP_READ GROUP_EXECUTE
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- PERMISSIONS WORLD_READ WORLD_EXECUTE
- #COMPONENT runtime
- )
-endif (UNIX)
-
-if (APPLE)
- install (FILES
- lib/superfox/mac/sfrx
- lib/superfox/mac/sftx
- lib/superfox/mac/foxchk
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- PERMISSIONS GROUP_READ GROUP_EXECUTE
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- PERMISSIONS WORLD_READ WORLD_EXECUTE
- #COMPONENT runtime
- )
-endif (APPLE)
-
-execute_process(COMMAND
- dpkg-architecture
- -qDEB_HOST_ARCH
- OUTPUT_VARIABLE
- CMAKE_DEB_HOST_ARCH
- OUTPUT_STRIP_TRAILING_WHITESPACE)
-
-if(${CMAKE_DEB_HOST_ARCH} MATCHES "arm64")
- install (FILES
- lib/superfox/arm/sfrx
- lib/superfox/arm/sftx
- lib/superfox/arm/foxchk
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- PERMISSIONS GROUP_READ GROUP_EXECUTE
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- PERMISSIONS WORLD_READ WORLD_EXECUTE
- #COMPONENT runtime
- )
-endif()
-
-if(${CMAKE_DEB_HOST_ARCH} MATCHES "armhf")
- install (FILES
- lib/superfox/arm32/sfrx
- lib/superfox/arm32/sftx
- lib/superfox/arm32/foxchk
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- PERMISSIONS GROUP_READ GROUP_EXECUTE
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
- PERMISSIONS WORLD_READ WORLD_EXECUTE
- #COMPONENT runtime
- )
-endif()
-
#
# Mac installer files
#
|
