[nostalgia/core] Add NostalgiaCore-Headless

This commit is contained in:
2022-02-17 21:26:56 -06:00
parent c1fc3d48b2
commit fba203a1e7
5 changed files with 164 additions and 2 deletions
+18 -1
View File
@@ -46,13 +46,23 @@ else()
endif()
add_library(
NostalgiaCore
NostalgiaCore
gfx.cpp
media.cpp
typeconv.cpp
${NOSTALGIA_CORE_IMPL_SRC}
)
add_library(
NostalgiaCore-Headless
gfx.cpp
media.cpp
typeconv.cpp
headless/core.cpp
headless/gfx.cpp
headless/media.cpp
)
if(NOT MSVC)
target_compile_options(NostalgiaCore PUBLIC -Wsign-conversion)
endif()
@@ -64,6 +74,12 @@ target_link_libraries(
${NOSTALGIA_CORE_IMPL_LIBS}
)
target_link_libraries(
NostalgiaCore-Headless PUBLIC
OxClaw
OxFS
)
if(NOSTALGIA_BUILD_STUDIO)
add_subdirectory(studio)
endif()
@@ -88,6 +104,7 @@ install(
install(
TARGETS
NostalgiaCore
NostalgiaCore-Headless
DESTINATION
LIBRARY DESTINATION lib/nostalgia
ARCHIVE DESTINATION lib/nostalgia