mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
iOS engine build: #4's configure and link fixes, as they are there
The Apple job now gets past the shared Kotlin tests and stops where #4 fixed it: CMAKE_MACOSX_BUNDLE=OFF for dmodemd's install rule, and libresolv, SystemConfiguration and CoreFoundation for libre. The files are #4's, unchanged, so the two merge cleanly in either order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
This commit is contained in:
3 files changed
+15
-4
No files matched your search
@@ -20,11 +20,15 @@ let engineLinking: [LinkerSetting] = [
|
||||
]),
|
||||
.linkedLibrary("dmodem_engine"), .linkedLibrary("dmodem_sip"), .linkedLibrary("re"),
|
||||
.linkedLibrary("ssl"), .linkedLibrary("crypto"), .linkedLibrary("stdc++"), .linkedLibrary("dl"),
|
||||
.linkedLibrary("m"),
|
||||
.linkedLibrary("m"), .linkedLibrary("resolv"),
|
||||
]
|
||||
#else
|
||||
let engine: Target = .binaryTarget(name: "DModemEngine", path: "../../build-apple/DModemEngine.xcframework")
|
||||
let engineLinking: [LinkerSetting] = [.linkedLibrary("c++")]
|
||||
let engineLinking: [LinkerSetting] = [
|
||||
.linkedLibrary("c++"), .linkedLibrary("resolv"),
|
||||
// libre asks the system for its DNS servers (srv.c, SCDynamicStore)
|
||||
.linkedFramework("SystemConfiguration"), .linkedFramework("CoreFoundation"),
|
||||
]
|
||||
#endif
|
||||
|
||||
let package = Package(
|
||||
|
||||
@@ -14,7 +14,11 @@ let package = Package(
|
||||
.testTarget(
|
||||
name: "DModemSmokeTests",
|
||||
dependencies: ["DModemEngine"],
|
||||
linkerSettings: [.linkedLibrary("c++")]
|
||||
linkerSettings: [
|
||||
.linkedLibrary("c++"), .linkedLibrary("resolv"),
|
||||
// libre asks macOS for its DNS servers (srv.c, SCDynamicStore)
|
||||
.linkedFramework("SystemConfiguration"), .linkedFramework("CoreFoundation"),
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
+4
-1
@@ -32,7 +32,10 @@ build() {
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET="$min" \
|
||||
-DDMODEM_CRYPTO=mbedtls
|
||||
if [ "$system" = iOS ]; then
|
||||
set -- "$@" -DCMAKE_SYSTEM_NAME=iOS
|
||||
# (no app bundles: D-Modem-RE's dmodemd, which is never built
|
||||
# here, is an executable that CMake would make a bundle on iOS,
|
||||
# and its install rule has no BUNDLE DESTINATION for one)
|
||||
set -- "$@" -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_MACOSX_BUNDLE=OFF
|
||||
fi
|
||||
cmake "$@"
|
||||
cmake --build "$dir/build" --target dmodem_engine
|
||||
|
||||
Reference in new issue
Block a user