mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
85cb48046f
# Conflicts: # .github/workflows/c-cpp.yml # .github/workflows/codeql-analysis.yml # vita3k/gui-qt/src/controls_dialog.cpp
28 lines
781 B
CMake
28 lines
781 B
CMake
add_library(
|
|
util
|
|
STATIC
|
|
src/android_driver.cpp
|
|
src/arm.cpp
|
|
src/byte.cpp
|
|
src/float_to_half.cpp
|
|
src/fs_utils.cpp
|
|
src/hash.cpp
|
|
src/instrset_detect.cpp
|
|
src/logging.cpp
|
|
src/net_utils.cpp
|
|
src/string_utils.cpp
|
|
src/tracy.cpp
|
|
src/vita_theme_utils.cpp
|
|
)
|
|
|
|
# vc_runtime_checker.cpp is directly added from the main CMakeList (for some reason adding it here doesn't work)
|
|
|
|
target_include_directories(util PUBLIC include)
|
|
target_link_libraries(util PUBLIC ${Boost_LIBRARIES} fmt spdlog http mem)
|
|
target_link_libraries(util PRIVATE libcurl crypto SDL3::SDL3)
|
|
if(ANDROID)
|
|
target_link_libraries(util PUBLIC emuenv android xxHash::xxhash)
|
|
target_link_libraries(util PRIVATE adrenotools)
|
|
endif()
|
|
target_compile_definitions(util PRIVATE $<$<CONFIG:Debug,RelWithDebInfo>:TRACY_ENABLE>)
|