capypdf
capypdf copied to clipboard
Improve Visual Studio builds
Hi,
This attempts to improve the build experience on Visual Studio by:
- Using also CMake dependency names, if applicable, for dependencies where pkg-config files are not supplied (or are broken out-of-the-box) by the dependencies' Visual Studio build systems.
- Disable
pdfviewer
on Windows for now, since the code there need to be ported to Windows, even if one has gtk-4.x installed. - Fix 32-bit builds linking to shared LCMS2 builds on Windows (
CMS_DLL
needs to be defined in this case) - Fix up paths in the Python tests for the fonts, and GhostScript, where GhostScript is likely installed via an installer, not in
/usr
; so we also try to find the names of the GhostScript executable that is provided by the 32-bit and 64-bit Windows installers, and use the ICC profiles that are installed with the installer. - Fix up a wrong function name call in
capypdf.py
.
With blessings, thank you!