@@ -3,6 +3,7 @@ import PackageDescription
33
44var products : [ Product ] = [
55 . library( name: " MTH " , targets: [ " MTH " ] ) ,
6+ . library( name: " MTHClient " , targets: [ " MTHClient " ] ) ,
67 . library( name: " MTHColor " , targets: [ " MTHColor " ] ) ,
78]
89
@@ -15,14 +16,26 @@ var targets: [Target] = [
1516 publicHeadersPath: " include " ,
1617 linkerSettings: [ . linkedLibrary( " z " ) ]
1718 ) ,
18- // New Swift targets
19+ // Shared telnet constants, compression, and MTTS flags used by both server and client.
1920 . target(
20- name: " MTH " ,
21+ name: " MTHCore " ,
2122 dependencies: [
22- . target( name: " CZlib " , condition: . when( platforms: [ . macOS, . linux] ) ) ,
23+ . target( name: " CZlib " , condition: . when( platforms: [ . macOS, . linux, . iOS , . visionOS ] ) ) ,
2324 ] ,
25+ path: " Sources/SwiftMTHCore "
26+ ) ,
27+ // Server-side telnet session, MSDP, MSSP, and related protocols.
28+ . target(
29+ name: " MTH " ,
30+ dependencies: [ " MTHCore " ] ,
2431 path: " Sources/SwiftMTH "
2532 ) ,
33+ // Client-side telnet session for MUD clients.
34+ . target(
35+ name: " MTHClient " ,
36+ dependencies: [ " MTHCore " ] ,
37+ path: " Sources/SwiftMTHClient "
38+ ) ,
2639 . target(
2740 name: " MTHColor " ,
2841 dependencies: [ ] ,
@@ -55,7 +68,7 @@ targets += [
5568 ) ,
5669 . testTarget(
5770 name: " MTHTests " ,
58- dependencies: [ " MTH " , " Cmth " ]
71+ dependencies: [ " MTH " , " MTHClient " , " Cmth " ]
5972 ) ,
6073 . testTarget(
6174 name: " MTHColorTests " ,
@@ -66,7 +79,7 @@ targets += [
6679targets += [
6780 . testTarget(
6881 name: " MTHTests " ,
69- dependencies: [ " MTH " ]
82+ dependencies: [ " MTH " , " MTHClient " ]
7083 ) ,
7184 . testTarget(
7285 name: " MTHColorTests " ,
0 commit comments