Enhance CMake and file dialog functionality

- Updated CMakeLists.txt to include additional MSVC compiler options for better compatibility and performance, such as support for large object files and UTF-8 encoding.
- Modified absl.cmake to add support for absl::int128.
- Refactored file dialog implementation in file_dialog.cc to utilize a feature flag for native file dialog support, improving cross-platform compatibility and maintainability. Added placeholder implementations for CI/CD environments.
This commit is contained in:
scawful
2025-09-27 21:47:01 -04:00
parent d244fc37c0
commit faca7cfafe
3 changed files with 123 additions and 151 deletions

View File

@@ -102,10 +102,17 @@ endif()
# Compiler-specific settings
if(MSVC)
target_compile_options(yaze_common INTERFACE /W4 /permissive-)
target_compile_options(yaze_common INTERFACE
/W4 /permissive-
/bigobj # Support large object files
/utf-8 # Use UTF-8 encoding
)
target_compile_definitions(yaze_common INTERFACE
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNINGS
SILENCE_CXX23_DEPRECATIONS
NOMINMAX # Disable min/max macros
WIN32_LEAN_AND_MEAN # Reduce Windows header bloat
strncasecmp=_strnicmp
strcasecmp=_stricmp
)