mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 16:59:08 +00:00
chore(file): add sfile/sfilenative backend selection
This commit is contained in:
parent
fb141ff527
commit
a4dec308c2
4 changed files with 126 additions and 0 deletions
|
|
@ -39,11 +39,18 @@ if(WHOA_SYSTEM_LINUX)
|
|||
list(APPEND STORM_SOURCES ${STORM_LINUX_SOURCES})
|
||||
endif()
|
||||
|
||||
if(WHOA_SFILE_MODE STREQUAL "STORMLIB")
|
||||
list(APPEND STORM_SOURCES "file/SFile.cpp")
|
||||
else()
|
||||
list(APPEND STORM_SOURCES "file/SFileNative.cpp")
|
||||
endif()
|
||||
|
||||
add_library(storm STATIC
|
||||
${STORM_SOURCES}
|
||||
)
|
||||
|
||||
target_compile_definitions(storm PRIVATE _CRT_SECURE_NO_WARNINGS)
|
||||
target_compile_definitions(storm PUBLIC WHOA_SFILE_MODE_${WHOA_SFILE_MODE})
|
||||
|
||||
target_include_directories(storm
|
||||
PUBLIC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue