wrlib: generate automatically the list of symbols to keep from the API header
commitd458304610637ab394f5727fc256d8da4972e58e
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 5 Jan 2015 10:06:31 +0000 (5 11:06 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 5 Jan 2015 15:28:44 +0000 (5 15:28 +0000)
treeda5befd38ae6f705d69bed8b2659cc53847f4d09
parentd12b647069fe4e4d0ae9b197ce8fa670387d3224
wrlib: generate automatically the list of symbols to keep from the API header

Instead of having to maintain manually the map file for LD with the list of
symbols that we want to keep in the WRaster library (the purpose is to hide
internal symbols), this patch implements a script that parses the public
API header and extracts automatically the list of names that are supposed
to be visible to the user.

The goal is to reduce possible human errors, like for example the function
RCombineAlpha that was forgotten from the list, yet still keep the map file
feature which is considered a good practice (it reduces the risk for name
clash and the risk of mis-use of internal stuff from the library).

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
.gitignore
script/generate-mapfile-from-header.sh [new file with mode: 0755]
wrlib/Makefile.am
wrlib/libwraster.map [deleted file]