Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
6c7317fc
Commit
6c7317fc
authored
3 weeks ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Add libretro support to CMake
parent
38b5c2b2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/conio/CMakeLists.txt
+10
-0
10 additions, 0 deletions
src/conio/CMakeLists.txt
src/syncterm/CMakeLists.txt
+11
-1
11 additions, 1 deletion
src/syncterm/CMakeLists.txt
with
21 additions
and
1 deletion
src/conio/CMakeLists.txt
+
10
−
0
View file @
6c7317fc
...
...
@@ -114,6 +114,12 @@ if(NOT WITHOUT_SDL)
endif
()
endif
()
if
(
NOT WITHOUT_RETRO
)
list
(
APPEND SOURCE retro.c
)
set
(
NEED_BITMAP TRUE
)
set
(
NEED_SCALE TRUE
)
endif
()
if
(
NEED_BITMAP
)
list
(
APPEND SOURCE bitmap_con.c
)
endif
()
...
...
@@ -200,6 +206,10 @@ if(USE_CURSES_ANYWAY)
endif
()
endif
()
if
(
NOT WITHOUT_RETRO
)
target_compile_definitions
(
ciolib PUBLIC WITH_RETRO
)
endif
()
if
(
HAVE_VASPRINTF
)
target_compile_definitions
(
ciolib PRIVATE HAVE_VASPRINTF
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/CMakeLists.txt
+
11
−
1
View file @
6c7317fc
...
...
@@ -5,6 +5,7 @@ project (SyncTERM C)
set
(
WITHOUT_CRYPTLIB OFF CACHE BOOL
"Disable cryptlib (ssh and telnet over TLS"
)
set
(
WITHOUT_OOII OFF CACHE BOOL
"Disable Operation Overkill ][ Terminal"
)
set
(
WITHOUT_JPEG_XL OFF CACHE BOOL
"Disable JPEG XL"
)
set
(
WITHOUT_RETRO ON CACHE BOOL
"Disable libretro"
)
# CPack stuff...
set
(
CPACK_PACKAGE_NAME SyncTERM
)
...
...
@@ -98,7 +99,12 @@ else()
set
(
WIN_MAIN_TYPE WIN32
)
endif
()
add_executable
(
syncterm MACOSX_BUNDLE
${
WIN_MAIN_TYPE
}
${
SOURCE
}
)
if
(
NOT WITHOUT_RETRO
)
add_library
(
syncterm SHARED
${
SOURCE
}
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
else
()
add_executable
(
syncterm MACOSX_BUNDLE
${
WIN_MAIN_TYPE
}
${
SOURCE
}
)
endif
()
set_target_properties
(
syncterm PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
...
...
@@ -151,6 +157,10 @@ if(NOT WITHOUT_JPEG_XL)
endif
()
endif
()
if
(
NOT WITHOUT_RETRO
)
target_compile_definitions
(
syncterm PUBLIC WITH_RETRO
)
endif
()
install
(
TARGETS syncterm DESTINATION bin
)
if
(
UNIX
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/syncterm.man TYPE MAN
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment