Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Move the pnglibconf files and scripts to scripts/pnglibconf/ #652

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

ctruta
Copy link
Member

@ctruta ctruta commented Feb 2, 2025

@jbowler please review.

Just so you know, after this change, the next fossil that I want to discard is the .DEF file and all the associated makefile-ing and scripting. We should neither produce it (with pnglibconf or not), nor consume it in any makefile or build file or project file any further. We should rather go back to using __declspec(dllexport) where applicable (i.e. on Windows), or __attribute__((visibility("default"))) where applicable (on the Unix platforms with the compilers that allow it), which is what we used to use from libpng-1.0 to libpng-1.4, except with one important difference: no more .DEF file.

Considering that pnglibconf is a whole mini-system for configuring and
building libpng, it should be placed in its own dedicated subdirectory.
Any future additions, including tests and documentation, should go into
this subdirectory.

One exception: pnglibconf.h.prebuilt is moved to the top-level source
directory, where pnglibconf.h would be. This follows the organization
pattern typically used with the "*.in" files, for example.

All references to the pnglibconf artifacts, found in machine-readable
code and in human-readable comments, are updated accordingly.
@ctruta
Copy link
Member Author

ctruta commented Feb 2, 2025

I forgot to mention in the commit message one more thing that I did: while editing the libpng manual, I also corrected some of the phrasing and formatting in the surrounding paragraphs. In any case, the manual needs a heavy facelift.

@ctruta ctruta merged commit 91c396c into pnggroup:libpng18 Feb 17, 2025
1 check passed
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.

2 participants