LaunchAPPLServer: enable OpenTransport on 68K

This commit is contained in:
Wolfgang Thaller 2019-01-26 19:05:04 +01:00
parent a3c8783a88
commit ada9b67a75
4 changed files with 18 additions and 27 deletions

View File

@ -1,4 +1,14 @@
set(CONNECTION_SOURCES) set(CONNECTION_SOURCES
OpenTptStream.h
OpenTptStream.cc
OpenTptConnectionProvider.h
OpenTptConnectionProvider.cc
SharedFileStream.h
SharedFileStream.cc
SharedFileProvider.h
SharedFileProvider.cc
)
if(CMAKE_SYSTEM_NAME MATCHES RetroCarbon) if(CMAKE_SYSTEM_NAME MATCHES RetroCarbon)
else() else()
@ -15,23 +25,6 @@ else()
) )
endif() endif()
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
else()
list(APPEND CONNECTION_SOURCES
OpenTptStream.h
OpenTptStream.cc
OpenTptConnectionProvider.h
OpenTptConnectionProvider.cc
)
endif()
list(APPEND CONNECTION_SOURCES
SharedFileStream.h
SharedFileStream.cc
SharedFileProvider.h
SharedFileProvider.cc
)
option(LAUNCHAPPLSERVER_DEBUG_CONSOLE "Add a debug console to LaunchAPPLServer" FALSE) option(LAUNCHAPPLSERVER_DEBUG_CONSOLE "Add a debug console to LaunchAPPLServer" FALSE)
set(MAYBE_CONSOLE) set(MAYBE_CONSOLE)
@ -85,7 +78,7 @@ if(CMAKE_SYSTEM_NAME MATCHES RetroPPC)
target_link_libraries(LaunchAPPLServer -lOpenTransportAppPPC -lOpenTransportLib -lOpenTptInternetLib -lNavigationLib) target_link_libraries(LaunchAPPLServer -lOpenTransportAppPPC -lOpenTransportLib -lOpenTptInternetLib -lNavigationLib)
endif() endif()
if(CMAKE_SYSTEM_NAME MATCHES Retro68) if(CMAKE_SYSTEM_NAME MATCHES Retro68)
target_link_libraries(LaunchAPPLServer -lNavigation.far) target_link_libraries(LaunchAPPLServer -lOpenTransport -lOpenTransportApp -lOpenTptInet -lNavigation.far)
endif() endif()
if(FALSE) if(FALSE)

View File

@ -46,9 +46,7 @@
#include "SerialConnectionProvider.h" #include "SerialConnectionProvider.h"
#include "TCPConnectionProvider.h" #include "TCPConnectionProvider.h"
#endif #endif
#if !TARGET_CPU_68K
#include "OpenTptConnectionProvider.h" #include "OpenTptConnectionProvider.h"
#endif
#include "SharedFileProvider.h" #include "SharedFileProvider.h"
#include "SystemInfo.h" #include "SystemInfo.h"
@ -579,11 +577,9 @@ void ConnectionChanged()
connection = std::make_unique<SerialConnectionProvider>(0, gPrefs.baud, statusDisplay.get()); connection = std::make_unique<SerialConnectionProvider>(0, gPrefs.baud, statusDisplay.get());
break; break;
#endif #endif
#if !TARGET_CPU_68K
case Port::openTptTCP: case Port::openTptTCP:
connection = std::make_unique<OpenTptConnectionProvider>(statusDisplay.get());; connection = std::make_unique<OpenTptConnectionProvider>(statusDisplay.get());;
break; break;
#endif
case Port::sharedFiles: case Port::sharedFiles:
if(gPrefs.sharedDirectoryPath[0] == 0) if(gPrefs.sharedDirectoryPath[0] == 0)
{ {
@ -699,14 +695,12 @@ int main()
} }
} }
#endif #endif
#if !TARGET_CPU_68K
if(hasGestalt) if(hasGestalt)
{ {
long resp; long resp;
if(Gestalt(gestaltOpenTpt, &resp) == noErr && resp) if(Gestalt(gestaltOpenTpt, &resp) == noErr && resp)
portsAvailable[(int)Port::openTptTCP] = true; portsAvailable[(int)Port::openTptTCP] = true;
} }
#endif
SetMenuBar(GetNewMBar(128)); SetMenuBar(GetNewMBar(128));
AppendResMenu(GetMenu(128), 'DRVR'); AppendResMenu(GetMenu(128), 'DRVR');

View File

@ -7,6 +7,10 @@ SEGMENT MacTCP
*/MacTCPStream.* */MacTCPStream.*
*/TCPConnectionProvider.* */TCPConnectionProvider.*
SEGMENT OpenTransport
*/OpenTpt*.*
*/libOpenT*.a:*
SEGMENT SharedFile SEGMENT SharedFile
*/SharedFile*.* */SharedFile*.*

View File

@ -54,5 +54,5 @@ void OpenTptConnectionProvider::unloadSegDummy()
void *OpenTptConnectionProvider::segmentToUnload() void *OpenTptConnectionProvider::segmentToUnload()
{ {
return nullptr;//(void*) &unloadSegDummy; return (void*) &unloadSegDummy;
} }