mirror of
https://github.com/cy384/ssheven.git
synced 2026-05-16 14:16:00 -06:00
pull in libvterm as a submodule and fix build issues
This commit is contained in:
parent
395449d3df
commit
2a2ca59695
4 changed files with 11 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,5 @@
|
||||||
build-fat/
|
build-fat/
|
||||||
build-m68k/
|
build-m68k/
|
||||||
build-ppc/
|
build-ppc/
|
||||||
|
build/
|
||||||
|
.vscode/
|
||||||
|
|
|
||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -4,3 +4,6 @@
|
||||||
[submodule "opentransport-mbedtls"]
|
[submodule "opentransport-mbedtls"]
|
||||||
path = opentransport-mbedtls
|
path = opentransport-mbedtls
|
||||||
url = git@github.com:cy384/opentransport-mbedtls.git
|
url = git@github.com:cy384/opentransport-mbedtls.git
|
||||||
|
[submodule "libvterm"]
|
||||||
|
path = libvterm
|
||||||
|
url = git@github.com:cy384/cy384/libvterm
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ add_application(ssheven CREATOR "SSH7" ssheven.c ssheven-console.c ssheven.r ssh
|
||||||
|
|
||||||
# set up and build mbedtls
|
# set up and build mbedtls
|
||||||
set(ENABLE_PROGRAMS OFF CACHE BOOL "disable mbedtls programs" FORCE)
|
set(ENABLE_PROGRAMS OFF CACHE BOOL "disable mbedtls programs" FORCE)
|
||||||
set(UNSAFE_BUILD ON CACHE BOOL "ignore mac os jank fro mbedtls" FORCE)
|
set(UNSAFE_BUILD ON CACHE BOOL "ignore mac os jank for mbedtls" FORCE)
|
||||||
set(ENABLE_TESTING OFF CACHE BOOL "disable mbedtls tests" FORCE)
|
set(ENABLE_TESTING OFF CACHE BOOL "disable mbedtls tests" FORCE)
|
||||||
add_subdirectory(opentransport-mbedtls)
|
add_subdirectory(opentransport-mbedtls)
|
||||||
|
|
||||||
|
|
@ -21,6 +21,9 @@ set(BUILD_EXAMPLES OFF CACHE BOOL "disable libssh2 examples" FORCE)
|
||||||
set(BUILD_TESTING OFF CACHE BOOL "disable libssh2 tests" FORCE)
|
set(BUILD_TESTING OFF CACHE BOOL "disable libssh2 tests" FORCE)
|
||||||
add_subdirectory(opentransport-libssh2)
|
add_subdirectory(opentransport-libssh2)
|
||||||
|
|
||||||
|
# set up and build libvterm
|
||||||
|
add_subdirectory(libvterm)
|
||||||
|
|
||||||
IF(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
IF(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
||||||
# for 68k
|
# for 68k
|
||||||
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=68020 -O3 -Wall -Wextra -Wno-unused-parameter")
|
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=68020 -O3 -Wall -Wextra -Wno-unused-parameter")
|
||||||
|
|
@ -30,5 +33,5 @@ ELSE()
|
||||||
# for PPC
|
# for PPC
|
||||||
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=601 -O3 -Wall -Wextra -Wno-unused-parameter")
|
set_target_properties(ssheven PROPERTIES COMPILE_FLAGS "-ffunction-sections -mcpu=601 -O3 -Wall -Wextra -Wno-unused-parameter")
|
||||||
set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections")
|
set_target_properties(ssheven PROPERTIES LINK_FLAGS "-Wl,-gc-sections")
|
||||||
target_link_libraries(ssheven ThreadsLib ssh2 mbedtls mbedx509 mbedcrypto OpenTransportAppPPC OpenTransportLib OpenTptInternetLib vterm retrocrt)
|
target_link_libraries(ssheven ThreadsLib libssh2 mbedtls mbedx509 mbedcrypto OpenTransportAppPPC OpenTransportLib OpenTptInternetLib vterm retrocrt)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
|
||||||
1
libvterm
Submodule
1
libvterm
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit de55f41bbafa75be1050ccf002f7218a4e1b8dd0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue