mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 22:30:49 -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
16 lines
389 B
C
16 lines
389 B
C
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (C) 2026 D-Modem Authors
|
|
*
|
|
* main.c - dmodem_embed_link (cmake/MacosEmbed.cmake): a program that
|
|
* links libdmodem_embed, so that CMake gives the full link command of
|
|
* the library
|
|
*/
|
|
#include "dmodem_embed.h"
|
|
|
|
/* Uses the library, so that the linker includes it. */
|
|
int main(void)
|
|
{
|
|
return dmodem_embed_version() ? 0 : 1;
|
|
}
|