-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[afterimage] migrate from configure-make to CMake and merge with Windows #21649
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
Open
ferdymercury
wants to merge
3
commits into
root-project:master
Choose a base branch
from
ferdymercury:asimagecmake
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,80 +1,5 @@ | ||
| The package libAfterImage has been imported from its official repository using the command: | ||
| Originally, the package libAfterImage was imported from its official repository using the command: | ||
|
|
||
| cvs -d :pserver:anonymous@cvs.aftercode.net:/home/cvsroot checkout afterstep-stable/libAfterImage | ||
|
|
||
| This command download the source in: | ||
|
|
||
| afterstep-stable/libAfterImage | ||
|
|
||
| To get the updates for this package it is enough to do "cvs update" from this directory. | ||
|
|
||
| To import libAfterImage into the ROOT svn repository we use the following command script: | ||
|
|
||
| cd ~/afterstep-stable/libAfterImage | ||
| cvs update | ||
| cd /tmp | ||
| cp -rf ~/afterstep-stable/libAfterImage . | ||
| cd libAfterImage | ||
| rm -f Makefile config.status afterimage-libs config.log | ||
| rm -rf apps aftershow config.h | ||
| rm -rf ./libpng/CVS ./CVS ./win32/CVS ./libungif/CVS ./libjpeg/CVS ./zlib/CVS | ||
| cd libAfterImage | ||
| cp -R * $ROOTSYS/graf2d/asimage/src/libAfterImage | ||
| cd /tmp | ||
| rm -r libAfterImage | ||
|
|
||
| Some files have been modified compare to the official libAfterImage version: | ||
|
|
||
| config.h.in has been modified in order to use freetype from the ROOT | ||
| repository. | ||
|
|
||
| libjpeg/jcmainct.c libjpeg/jdmainct.c have been modified to avoid a | ||
| compilation warning. These two pieces of code contain a variable called | ||
| "main" (some compiler do not like this). This variable name has been | ||
| changed to "mainptr". | ||
|
|
||
| libjpeg/jmorecfg.h generated a warning on Windows: "a benign redifinition". | ||
| This warning has been disabled. | ||
|
|
||
| libjpeg/jconfig.h: disable INLINE definition. | ||
|
|
||
| libjpeg/jidctred.c: removed from repository (replaced by jidctint.c) | ||
|
|
||
| libjpeg/jmorecfg.h and libjpeg/jconfig.h: fix a problem with boolean. | ||
|
|
||
| configure.in: support clang++ by removing some warnings. | ||
|
|
||
| libpng/pngpriv.h: fp.h was moved into math.h. This fix was originated by G. Eullisse - ALICE (April 2025) | ||
|
|
||
| configure: | ||
| - has been modified to look at the ".dylib" file extension to find | ||
| the X11 libraries. This is needed on the Mac Leopard system. | ||
| - the compiling option -Winline has been removed because it produced many | ||
| warnings with gcc 4.3. | ||
| - support clang++ by removing some warnings. | ||
|
|
||
| libAfterImage.mak: | ||
| Remove the word "Warning" in the message | ||
| "Warning: cannot find "libAfterImage.dep" to prevent to SPI | ||
| nightly build to issue an error. | ||
|
|
||
| import.c: to fix the warning (on SLC5): | ||
| "warning: dereferencing type-punned pointer will break strict-aliasing rules" | ||
|
|
||
| import.c and ungif.c (Ubuntu gcc 4.4): | ||
| "warning: ignoring return value of 'fread', declared with attribute warn_unused_result" | ||
|
|
||
| export.c: to fix a warning on Open Solaris: | ||
| "initializer will be sign-extended: -1" | ||
|
|
||
| export.c and import.c: | ||
| OSX Lion comes with builtin libpng 1.5.1 which obsoletes some 1.2 constructs | ||
|
|
||
| asimage.c, char2uni.c, export.c, imencdec.c: | ||
| - fix a warning with clang: | ||
| "comparison of unsigned enum expression < 0 is always false" | ||
|
|
||
| Note: | ||
| The file afterbase.h gets autogenerated by configure from afterbase.h.in | ||
| if afterbase.h.in has not changed, afterbase.h remains unchanged. | ||
|
|
||
| Most files were modified and the build system adapted, compared to the official (obsolete) libAfterImage version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it should be instead like in https://github.com/Kitware/CMake/blob/f5fc584bffee1a0641f611523741a99898a864d9/Modules/FindFreetype.cmake#L243 with the suffix. Same above for Release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have several other libs with similar logic - they do not have such special flags.
Therefore try first more simpler solutions