Build the Windows app for Linux and macOS over clang-retro MFC's Win32 layer

First pass: TCP and SSH. With -DDMODEM_GUI_WINPORT=ON and CLANG_RETRO_MFC
set to a clang-retro MFC checkout, winport/ builds libwinport.a with the
MFC Makefile, converts app.rc with res2cpp.py, and links the same Win32
sources (now listed once, in windows/sources.cmake) as dmodem-win32.

The layer does not have serial ports, pipes or audio yet: winport/include
and winport/src/stubs.cpp supply stand-ins that fail, to remove when the
layer gets these functions. DMODEM_WINPORT blocks in the app: the settings
in ~/.config/D-Modem, TCP as the default line, ~/.ssh and '/' for SSH,
Unicode marks in the path view (no Wingdings), and group boxes put under
the other controls (the layer's hit test stops at HTTRANSPARENT).

CI builds it on Linux and macOS, and on Linux starts it in Xvfb against
a test modem on the TCP port (winport/test/smoke.sh).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
This commit is contained in:
Claude committed 2026-11-20 13:58:32 +00:00
1 parent d44aadb1ac
commit f354ab01d0
21 files changed
+837 -21

No files matched your search

+53 -1
View File
@@ -1,4 +1,5 @@
# Builds and tests the three apps and the library they share
# Builds and tests the three apps and the library they share, and the
# Windows app for Linux and macOS (winport/)
name: Build
on:
@@ -119,6 +120,57 @@ jobs:
name: dmodem-windows
path: build/win7/windows/dmodem.exe
# The Windows app for Linux and macOS (winport/), over the portable
# Win32 layer of clang-retro MFC. First pass: TCP and SSH only.
winport-linux:
name: Windows app on Linux (clang-retro MFC's Win32 layer)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: clang-retro/mfc
path: mfc
- name: Packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake ninja-build clang llvm libx11-dev xvfb xauth
- name: Build
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DDMODEM_GUI_LINUX=OFF -DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC="$PWD/mfc" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target dmodem-win32
- name: Smoke test (Xvfb)
run: xvfb-run -a winport/test/smoke.sh build/winport/dmodem-win32
- uses: actions/upload-artifact@v4
with:
name: dmodem-win32-linux
path: build/winport/dmodem-win32
winport-macos:
name: Windows app on macOS (clang-retro MFC's Win32 layer)
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: clang-retro/mfc
path: mfc
- name: Packages
run: brew install llvm
- name: Build
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DDMODEM_GUI_WINPORT=ON -DCLANG_RETRO_MFC="$PWD/mfc" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build --target dmodem-win32 -j"$(sysctl -n hw.ncpu)"
- uses: actions/upload-artifact@v4
with:
name: dmodem-win32-macos
path: build/winport/dmodem-win32
macos:
name: macOS (SwiftUI)
runs-on: macos-15