Changeset 25e1490 in mainline for meson/part/exports/meson.build


Ignore:
Timestamp:
2024-01-10T11:32:40Z (5 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
5907aa4
Parents:
de96d3b (diff), 6deab5a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Vojtech Horky <vojtech.horky@…> (2024-01-10 11:32:40)
git-committer:
GitHub <noreply@…> (2024-01-10 11:32:40)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson/part/exports/meson.build

    rde96d3b r25e1490  
    8585        capture: true,
    8686)
     87
     88run_target('export-dev',
     89    command: [
     90        sh,
     91        meson.source_root() / 'meson' / 'part' / 'exports' / 'copy-export.sh',
     92    ] + [
     93        'config', config_mk, 'config.mk',
     94        'config', config_sh, 'config.sh',
     95    ] + exported_devel_files
     96)
Note: See TracChangeset for help on using the changeset viewer.