Changeset 00e6288 in mainline for meson/part/exports/meson.build


Ignore:
Timestamp:
2024-01-05T14:10:56Z (4 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
master, topic/simplify-dev-export
Children:
7b907a0a
Parents:
de96d3b
git-author:
Vojtech Horky <vojtech.horky@…> (2024-01-05 13:50:59)
git-committer:
Vojtech Horky <vojtech.horky@…> (2024-01-05 14:10:56)
Message:

Add export-dev target to export all libraries

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. This simplifies
maintenance when new library is added and it should also simplify
coastline builds as no change to HelenOS tree would be needed when the
ported software needs another library not yet mentioned in export.sh.

The approach relies as much on Meson to do the heavy-lifting as possible
and the invoked shell script merely copies the files (seems that Meson
is not able to do that by itself inside a target). The script honors
exported DESTDIR variable if set and ensures thin archives are converted
before export.

File:
1 edited

Legend:

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

    rde96d3b r00e6288  
    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.