Skip to content

cmake: create MSVC-compatible physfs.pc - #126

Merged
icculus merged 1 commit into
icculus:mainfrom
madebr:msvc-compatible-pkg-config-file
Sep 22, 2026
Merged

icculus merged 1 commit into
icculus:mainfrom
madebr:msvc-compatible-pkg-config-file

Conversation

@madebr

@madebr madebr commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Fixes #125

  • I confirm that I am the author of this code and release it to the PhysicsFS project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Creates the following file for a shared build:

prefix=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix
exec_prefix=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix
libdir=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix/lib
includedir=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix/include

Name: PhysicsFS
Description: PhysicsFS is a library to provide abstract access to various archives.
URL: https://icculus.org/physfs/
Version: 3.3.0
Requires.private: sdl3
Libs: -LIBPATH:${libdir} physfs.lib
Cflags: -I${includedir}

and the following for a static build:

prefix=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix
exec_prefix=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix
libdir=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix/lib
includedir=C:/home/maarten/source/repos/physfs/cmake-build-debug/prefix/include

Name: PhysicsFS
Description: PhysicsFS is a library to provide abstract access to various archives.
URL: https://icculus.org/physfs/
Version: 3.3.0
Requires.private: sdl3
Libs: -LIBPATH:${libdir} physfs-static.lib
Cflags: -I${includedir}

@icculus
icculus merged commit 6501aeb into icculus:main Sep 22, 2026
5 checks passed
@madebr
madebr deleted the msvc-compatible-pkg-config-file branch September 22, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkg-config should work on MSVC

2 participants