fix to issue #336 rm ref to jasper, openjpeg, png #365
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.
Fixes #336
The png and jpeg2000 libaries are called by g2c. So wgrib2's CMakeLists.txt should not contain references to pnglib, Jasper or OpenJPEG. So
USE_PNG becomes USE_G2CLIB_LOW and G2_PNG_ENABLED == 1 (in grib2.h)
g2clib can be compile with either Jasper or OpenJPEG and the wgrib2 code is the same.
(use_jpeg2000) becaome USE_G2CLIB_LOW and G2_JPEG2000_ENABLED == 1 (in grib2.h)
USE_G2CLIB originally was to allow the use of the high level g2c grid decoder but had been
changed to "link in g2clib".
Original USE_G2CLIB becomes USE_G2CLIB_HIGH
(enables the use of the option -g2clib 2)
Notes: Config.c has to be changed to reflect that g2c is the source of png and jpeg2000 drivers.
The tests/CMakeLists.txt is different because you don't know the capabilities of g2c (png?, jpeg2000?)
until you run the make step. So the tests for png, jpeg2000 and aec support are determined at
run time. The test for aec was changed because eventually wgrib2 should use the g2c aec driver.