Refactor Steam libraries
This commit is contained in:
+12
-5
@@ -1,7 +1,7 @@
|
||||
if (WIVRN_USE_SYSTEM_BOOST)
|
||||
add_library(Boost::pfr ALIAS Boost::headers)
|
||||
else()
|
||||
set(BOOST_INCLUDE_LIBRARIES locale url pfr)
|
||||
set(BOOST_INCLUDE_LIBRARIES locale url pfr iostreams)
|
||||
FetchContent_MakeAvailable(boost)
|
||||
endif()
|
||||
|
||||
@@ -40,14 +40,17 @@ add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
|
||||
|
||||
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
|
||||
add_library(wivrn-common-server STATIC EXCLUDE_FROM_ALL
|
||||
application.cpp
|
||||
utils/flatpak.cpp
|
||||
utils/xdg_icon_lookup.cpp
|
||||
utils/steam_info.cpp
|
||||
utils/load_icon.cpp
|
||||
utils/ini.cpp
|
||||
application.cpp
|
||||
utils/steam_info.cpp
|
||||
utils/vdf.cpp
|
||||
utils/xdg_icon_lookup.cpp
|
||||
)
|
||||
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive PUBLIC wivrn-common-base)
|
||||
target_link_libraries(wivrn-common-server
|
||||
PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive Boost::iostreams
|
||||
PUBLIC wivrn-common-base)
|
||||
|
||||
if (WIVRN_BUILD_TEST)
|
||||
add_executable(list-apps
|
||||
@@ -55,6 +58,10 @@ if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
|
||||
)
|
||||
|
||||
target_link_libraries(list-apps wivrn-common-server)
|
||||
|
||||
add_executable(vdf utils/vdf.cpp)
|
||||
target_compile_definitions(vdf PRIVATE WIVRN_BUILD_TEST)
|
||||
target_link_libraries(vdf Boost::iostreams)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user