Commit Graph

66 Commits

Author SHA1 Message Date
mid-kid b83a6abe01 Configure/make: Quote variables that may contain spaces
This allows installing FLTK to directories that contain spaces.
2024-08-10 16:28:37 +02:00
Albrecht Schlosser ea96237525 Update bundled libpng from 1.6.42 to 1.6.43 2024-05-13 19:18:54 +02:00
ManoloFLTK bf938da079 Update bundled libpng to version 1.6.42 2024-02-17 12:20:28 +01:00
ManoloFLTK b90437119d Update bundled zlib to version 1.3.1 2024-02-17 12:20:28 +01:00
Albrecht Schlosser fd5cd80935 Introduce "Modern CMake" in FLTK
This is a big commit and there are too many changes to list them all.
The main changes are:

- rename all CMake build options to 'FLTK_*'
- export library targets with namespace (prefix) 'fltk::'
- standardize shared library target names with suffix '-shared'
- set public build properties on libraries for consumers
- document library names and aliases in README.CMake.txt
- document changes in "Migrating Code from FLTK 1.3 to 1.4"
- partial backwards compatibility for old user projects

Included but not directly related changes:

- fix Windows (Visual Studio) DLL build
- add CMake function fl_debug_target() to show target properties
- don't build test programs if FLTK is a subproject
- internal: reformat CMake code: remove space before '('

Thanks to Matthias and Manolo for their help, testing, and feeback.
2024-02-07 18:37:34 +01:00
Albrecht Schlosser cf07fa09dc Minor updates of bundled libraries and README.CMake.txt
Update Makefiles, CMakeLists.txt, improve formatting.
2023-12-04 17:31:18 +01:00
Albrecht Schlosser ede381c005 Fix Visual Studio shared library build
Todo: fluid-shared can't (yet) be built agains the shared fltk lib
  because of some linker errors. Needs investigation.

Note: fluid-shared is basically a test program to demonstrate linking
  against the shared FLTK libs but doesn't work yet using VS (MSVC).
  This is no problem for the functionality.
2023-09-12 23:18:46 +02:00
ManoloFLTK f456f2550a Upgrade bundled zlib to version 1.3 dated 18-aug-2023 2023-08-23 12:29:03 +02:00
ManoloFLTK 1127ebfcd3 Upgrade bundled libpng to version 1.6.40 - cont'd 2023-07-24 20:18:05 +02:00
ManoloFLTK 2fdd1cea91 Upgrade bundled libpng to version 1.6.40 - cont'd 2023-07-24 20:13:28 +02:00
ManoloFLTK 3a22531348 Upgrade bundled libpng to version 1.6.40 2023-07-24 19:56:56 +02:00
Albrecht Schlosser 1e890ea4e4 Fix libpng compilation warning (#757)
According to the reported issue this warning appears when using
gcc 13.1.0 (rev7, MinGW-W64).

it's very likely a new warning and a false positive because the
buffer is used as an output parameter, but anyway.
2023-07-19 13:48:43 +02:00
Albrecht Schlosser 9bef367942 Re-apply PNG warning fix (#296, #682)
The fix for compiler warning [-Wmaybe-uninitialized] had been fixed
in commit 2b400f6abc but accidentally
reverted in commit 39eba133de.
2023-02-20 17:53:53 +01:00
ManoloFLTK 8941dd1ab7 Update bundled libpng to version 1.6.39 - cont'd 2023-01-17 10:44:22 +01:00
ManoloFLTK e480dc3871 Update bundled libpng to version 1.6.39 - cont'd 2023-01-17 10:36:52 +01:00
ManoloFLTK 39eba133de Update bundled libpng to version 1.6.39 (20 nov 2022) 2023-01-17 09:38:53 +01:00
ManoloFLTK b804c4b72c Update bundled zlib to version 1.2.13 (13 oct 2022) 2023-01-17 08:20:21 +01:00
ManoloFLTK b5f9d6f38e More for "undefined reference to png_init_filter_functions_vsx" (#652) 2023-01-14 13:06:32 +01:00
ManoloFLTK 82ac84a7c8 Fix "undefined reference to png_init_filter_functions_vsx" (#652)
Add two auxiliary source files needed to properly build libpng
for the ppc64 architecture.
2023-01-14 09:10:35 +01:00
Albrecht Schlosser 9a7af11108 Silence compiler warnings [-Wunused-but-set-variable] 2022-04-03 22:30:59 +02:00
Albrecht Schlosser af4954aee3 CMake/macOS: build arm files for libpng only on ARM
Remove macOS warning "ranlib: file ... has no symbols" although this
works only partially (see comment in png/CMakeLists.txt).
2022-02-05 21:37:37 +01:00
Greg Ercolano 2b400f6abc Solves png warnings from gcc 11.2.0/Rev2 for issue #296 2021-11-25 09:50:45 -08:00
Albrecht Schlosser 46cbc31de2 Use "symbol prefixing" in bundled libs (part 3 of 3)
Add prefix 'fltk_z_' to bundled zlib.

Update dependencies.
2021-11-14 19:33:20 +01:00
Albrecht Schlosser 3cbf11af8d Use "symbol prefixing" in bundled libs (part 1 of 3)
Add prefix 'fltk_' to bundled libpng.
2021-11-14 19:31:25 +01:00
Albrecht Schlosser d0874f1058 Reformat bundled lib 'makedepend' files
The new 'makedpend' format in the bundled libs is one line per
dependency, sorted, like all the other makedepend files.

libpng: add ARM platform files
2021-06-10 12:32:19 +02:00
Albrecht Schlosser a484541d4b CMake: improve detection and configuration of image libs
Also: fix old (pre 3.13) link_directories() usage
2021-04-30 19:47:47 +02:00
Albrecht Schlosser bbaec9bd88 Update CMake and make files, minor edits only
There are no functional changes to be expected, mostly formatting
and comments.
2021-02-15 19:45:20 +01:00
Albrecht Schlosser f09e17c3c5 Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files

The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
2020-07-06 20:28:20 +02:00
ManoloFLTK 93f19c3a24 Add files needed when building libpng for the arm64 architecture.
These files can be compiled-in for other architectures but produce no binary code.
2020-06-24 21:55:39 +02:00
Albrecht Schlosser 8c4930a7d7 Upgrade bundled libpng from 1.6.16 to 1.6.37
Release: 1.6.37 - April 14, 2019

For further details see README.bundled-libs.txt.
2020-01-09 19:26:29 +01:00
Albrecht Schlosser ae4b51b970 Remove obsolete watcom makefiles.
These makefiles included '../watcom.mif' which had already been removed
and they had not been updated anyway.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-17 14:53:09 +00:00
Albrecht Schlosser 992192dd02 Update bundled libpng from version 1.5.10 to 1.6.16.
libpng 1.6.16 is the current stable version, 1.6.17 is in development (rc..).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 16:47:32 +00:00
Albrecht Schlosser 4d823c0d4a [CMake] Install bundled (jpeg, png, zlib) library headers if built (STR #3187).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-16 16:29:49 +00:00
Albrecht Schlosser 318c3619dc CMake enhancements, as discussed in STR #3055.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-27 00:41:06 +00:00
Manolo Gouy 7fadd473af Fix STR#2846: revert CMakeLists.txt as before libpng upgrade
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-29 14:08:40 +00:00
Matthias Melcher 4f7f902a00 Updated PNG library to current version 1.5.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 00:06:25 +00:00
Greg Ercolano 4f4a8fc3c7 Modifications to all LGPL headers for STR #2685.
(to clarify static exception LGPL by changing license references)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Albrecht Schlosser 75294d3e24 Fixed dependencies of bundled libs, corrected a typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 13:40:41 +00:00
Albrecht Schlosser 9ec5f3ae57 Fixed svn properties of new files in previous commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 09:20:16 +00:00
Albrecht Schlosser 8920d92944 Updated the bundled libpng to v1.5.1 (released Feb 3, 2011).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 09:11:57 +00:00
Greg Ercolano 4fd11eba88 Changed references to fltk-bugs@fltk.org -> STR form.
Todo: LGPL license file references (COPYING, license.dox, etc)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-28 03:15:47 +00:00
Albrecht Schlosser a0d26b634a Mostly rewritten CMake files by Michael Surette. They are more complete
than what we had previously, but may need some more testing. The latest
changes (removing old APPLE_QD definitions and code) might need another
update.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 22:33:58 +00:00
Albrecht Schlosser af556fc53b Updated the bundled libpng to v1.2.40 (released Sep. 10, 2009).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-18 11:11:32 +00:00
Albrecht Schlosser 7c32ec2b94 Updated the bundled libpng to v1.2.35 (released 18 Feb. 2009)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14 14:37:51 +00:00
Matthias Melcher 167d767e0f Changed the copyright to 2009 for header files. Still todo: src and test directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 16:11:32 +00:00
Albrecht Schlosser 3db04d80a1 Updated the bundled libpng to v1.2.33.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-17 18:57:18 +00:00
Fabien Costantini ae697b80b2 Doxygen documentation : took the opportunity to update copyright info as we modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 07:26:22 +00:00
Michael R Sweet 023ddf39ba Update libpng to 1.2.26.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-03-01 06:37:33 +00:00
Michael R Sweet 628210154b Fix install targets for image libraries.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-07 02:35:44 +00:00
Michael R Sweet dc24949ad5 Update bundled zlib to v1.2.3.
Update bundled libpng to v1.2.16.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-06 22:02:28 +00:00