Remove PNG and ZLIB support from the project

- Eliminated all references to PNG and ZLIB dependencies in CMake configuration and project files.
- Updated documentation to reflect the removal of PNG support and related functionalities.
- Adjusted build scripts and source files to remove unused code related to PNG handling, ensuring a cleaner codebase.
This commit is contained in:
scawful
2025-09-28 12:03:29 -04:00
parent dfc5b329af
commit cb107ae69c
18 changed files with 56 additions and 549 deletions

View File

@@ -118,8 +118,6 @@ set VCPKG_ROOT=%CD%
```
**Dependencies (vcpkg.json):**
- zlib (compression)
- libpng (PNG support)
- sdl2 (graphics/input with Vulkan support)
**Note**: Abseil and gtest are built from source via CMake rather than through vcpkg to avoid compatibility issues.
@@ -212,7 +210,7 @@ python scripts/generate-vs-projects.py
**Features:**
- Full IntelliSense support
- Integrated debugging
- Automatic vcpkg dependency management (zlib, libpng, SDL2)
- Automatic vcpkg dependency management (SDL2)
- Multi-platform support (x64, ARM64)
- Automatic asset copying
- Generated project files stay in sync with CMake configuration
@@ -322,7 +320,7 @@ The project includes three release workflows with different levels of complexity
All Windows CI/CD builds include automatic fallback mechanisms:
**When vcpkg succeeds:**
- Full build with all dependencies (zlib, libpng, SDL2)
- Full build with all dependencies (SDL2)
- Complete feature set available
**When vcpkg fails (network issues):**
@@ -383,7 +381,7 @@ cmake --preset windows-debug
vcpkg version
# Reinstall dependencies
vcpkg install --triplet x64-windows zlib libpng sdl2
vcpkg install --triplet x64-windows sdl2
# Check installed packages
vcpkg list

View File

@@ -28,7 +28,7 @@ Run the automated setup script:
This will:
- Set up vcpkg
- Install dependencies (zlib, libpng, SDL2)
- Install dependencies (SDL2)
- Generate Visual Studio project files with proper vcpkg integration
### 2. Build with Visual Studio
@@ -72,9 +72,6 @@ The `vcpkg.json` file defines all dependencies:
"platform": "!uwp"
},
{
"name": "libpng",
"platform": "!uwp"
},
{
"name": "sdl2",
"platform": "!uwp",
@@ -104,8 +101,6 @@ Available Windows presets:
vcpkg automatically installs these dependencies:
- **zlib**: Compression library
- **libpng**: PNG image support
- **sdl2**: Graphics and input handling (with Vulkan support)
**Note**: Abseil and gtest are now built from source via CMake rather than through vcpkg to avoid compatibility issues.

View File

@@ -63,7 +63,7 @@ Since YAZE uses several vcpkg packages, installing them will ensure the triplet
```cmd
# From the YAZE project root
vcpkg install --triplet x64-windows sdl2 zlib libpng abseil
vcpkg install --triplet x64-windows sdl2
```
## Common Issues and Solutions

View File

@@ -47,7 +47,7 @@ The project uses `vcpkg.json` for automatic dependency management. Dependencies
Manual installation (if needed):
```cmd
vcpkg install zlib:x64-windows
vcpkg install libpng:x64-windows
# PNG support removed
vcpkg install sdl2[vulkan]:x64-windows
vcpkg install abseil:x64-windows
vcpkg install gtest:x64-windows
@@ -290,7 +290,7 @@ The included `yaze.vcxproj` and `yaze.sln` files provide:
### **Automatic Dependency Management**
- **vcpkg Integration:** Automatically installs and links dependencies from `vcpkg.json`
- **Platform Support:** Pre-configured for both x64 and x86 builds
- **Library Linking:** Automatically links SDL2, zlib, libpng, and system libraries
- **Library Linking:** Automatically links SDL2 and system libraries
### **Build Configuration**
- **Debug Configuration:** Includes debugging symbols and runtime checks

View File

@@ -38,7 +38,7 @@ The easiest way to get started is to use our automated setup script:
This script will:
- Check for required software (Visual Studio 2022, Git, Python)
- Set up vcpkg and install dependencies (zlib, libpng, SDL2)
- Set up vcpkg and install dependencies (SDL2)
- Generate Visual Studio project files with proper vcpkg integration
- Perform a test build to verify everything works