- Updated CMakeLists.txt to conditionally enable PNG support based on the presence of the PNG library, improving compatibility for minimal builds. - Added vcpkg.json to manage project dependencies, including zlib, libpng, sdl2, and abseil, streamlining package management. - Modified CI workflow in ci.yml to simplify CMake configuration commands for better readability. - Enhanced CMake scripts to ensure proper handling of dependencies in both minimal and regular builds, improving build reliability.
33 lines
795 B
CMake
33 lines
795 B
CMake
if (MINGW OR WIN32)
|
|
add_subdirectory(src/lib/abseil-cpp)
|
|
elseif(YAZE_MINIMAL_BUILD)
|
|
# For CI builds, always use submodule to avoid dependency issues
|
|
add_subdirectory(src/lib/abseil-cpp)
|
|
else()
|
|
# Try system package first, fallback to submodule
|
|
find_package(absl QUIET)
|
|
if(NOT absl_FOUND)
|
|
message(STATUS "System Abseil not found, using submodule")
|
|
add_subdirectory(src/lib/abseil-cpp)
|
|
endif()
|
|
endif()
|
|
set(ABSL_PROPAGATE_CXX_STD ON)
|
|
set(ABSL_CXX_STANDARD 17)
|
|
set(ABSL_USE_GOOGLETEST_HEAD ON)
|
|
set(ABSL_ENABLE_INSTALL ON)
|
|
set(
|
|
ABSL_TARGETS
|
|
absl::strings
|
|
absl::flags
|
|
absl::status
|
|
absl::statusor
|
|
absl::examine_stack
|
|
absl::stacktrace
|
|
absl::base
|
|
absl::config
|
|
absl::core_headers
|
|
absl::raw_logging_internal
|
|
absl::failure_signal_handler
|
|
absl::flat_hash_map
|
|
)
|