Files
gui/linux/CMakeLists.txt
T
Claude 622dab60b1 Settings: the connection path at the top, as PCOMM draws its link
The Settings page now opens with how a call is made: the terminal, the
modem, the line and what it reaches (or a port, the modem and its line
for a modem that already runs), each step's role above its icon and
what it is below, one line joining them. Idle it shows the line
settings as they are (a step still to set in red, its line dashed, and
a line saying what); starting, dialling and online it lights as the
call goes.

libdmodemctl's dmc_path has the steps and their words, tested; Linux
draws them with Cairo, Windows with GDI (Windows 95's Wingdings), macOS
in SwiftUI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
2026-11-13 14:30:58 +00:00

45 lines
1.7 KiB
CMake

# The Linux (and BSD) app: GTK 4 and libadwaita over libdmodemctl
# (and libdmodemssh for the Remote page's SSH).
add_executable(dmodem-gui
src/main.c
src/window.c
src/modem.c
src/config.c
src/settings.c
src/pathview.c
src/stats.c
src/voice.c
src/remote.c
src/termview.c
src/audio.c)
target_link_libraries(dmodem-gui PRIVATE dmodemctl dmodemssh PkgConfig::GTK)
# the sound of voice calls: PulseAudio's client (PipeWire serves it
# too); without it the app has no sound
pkg_check_modules(PULSE IMPORTED_TARGET libpulse-mainloop-glib)
if(PULSE_FOUND)
target_link_libraries(dmodem-gui PRIVATE PkgConfig::PULSE)
target_compile_definitions(dmodem-gui PRIVATE HAVE_PULSE)
else()
message(STATUS "libpulse-mainloop-glib not found: the Linux app has no sound for voice calls")
endif()
# greetings from MP3, FLAC, Ogg and the like (WAV, AIFF and .au need
# nothing more)
pkg_check_modules(SNDFILE IMPORTED_TARGET sndfile)
if(SNDFILE_FOUND)
target_link_libraries(dmodem-gui PRIVATE PkgConfig::SNDFILE)
target_compile_definitions(dmodem-gui PRIVATE HAVE_SNDFILE)
else()
message(STATUS "libsndfile not found: greetings are read from WAV, AIFF and .au files only")
endif()
target_compile_options(dmodem-gui PRIVATE -Wall -Wextra -Wno-unused-parameter)
include(GNUInstallDirs)
install(TARGETS dmodem-gui RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES data/io.github.d_modem.DModem.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES data/io.github.d_modem.DModem.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
install(FILES ${PROJECT_SOURCE_DIR}/assets/dmodem.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps
RENAME io.github.d_modem.DModem.svg)