mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 14:19:58 -08:00
- CMake builds libdmodem_embed on macOS too. cmake/MacosEmbed.cmake links a small program with it and keeps the link command (a linker launcher). From it, CMake writes build/macos-embed.xcconfig: the header path, all the static libraries and the Swift condition DMODEM_GUI_EMBED. - macos/project.yml includes that file. - Modem.swift starts the built-in modem for the SIP and USB lines, in a thread of the app. Its DTE socket goes to the same session code as the pty. LineSettingsView has a Built-in modem switch (on by default). - CI: the macOS job checks out the submodule, and checks that the app has the library. - Docs: macOS in docs/embedded-modem.md, building.md, design.md and the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
15 lines
427 B
C
15 lines
427 B
C
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (C) 2026 D-Modem Authors
|
|
*
|
|
* Bridging.h - libdmodemctl, libdmodemssh and (when the build has it) the
|
|
* built-in modem's libdmodem_embed, for Swift
|
|
*/
|
|
#include "dmodemctl.h"
|
|
#include "dmodemssh.h"
|
|
// (the header path is set when the build has the built-in modem:
|
|
// ../build/macos-embed.xcconfig)
|
|
#if __has_include("dmodem_embed.h")
|
|
#include "dmodem_embed.h"
|
|
#endif
|