Add export-dev for exporting all libraries (see #230)
commit25e1490815743e61f37ac91766d63d51e09593c7
authorVojtech Horky <vojtech.horky@gmail.com>
Wed, 10 Jan 2024 11:32:40 +0000 (10 12:32 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 11:32:40 +0000 (10 12:32 +0100)
tree7368ab6fd3790d7749d38e0bf8e67ac204b19cdc
parentde96d3bfc2010ce18fdf8d42328d4c461d7ca3f2
parent6deab5a6cc081d9fefb96fd6b81bd44054678100
Add export-dev for exporting all libraries (see #230)

The new target export-dev builds all libraries and copies the
created .a archives and library headers to export-dev/
subdirectory.

Unlike the existing approach from tools/export.sh we do not
list the libraries manually but copy all of them automatically.

The approach relies as much on Meson to do the heavy-lifting
as possible and the invoked shell script merely copies the files.
The script honors exported DESTDIR variable if set and
ensures thin archives are converted before export.

Also helenos-pkg-config was rewritten to Python for better
maintainability.

Usage:

    ninja export-dev
    env DESTDIR=harbour-export ninja export-dev