Changeset 25e1490 in mainline for uspace/lib/c/meson.build


Ignore:
Timestamp:
2024-01-10T11:32:40Z (13 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
  • uspace/lib/c/meson.build

    rde96d3b r25e1490  
    5353        _sdir = meson.current_source_dir() / idir
    5454        uspace_lib_devel_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/libc"'.format(_sdir)
     55        exported_devel_files += ['include', _sdir, 'libc']
    5556endforeach
    5657
     
    209210        pic: false,
    210211)
     212exported_devel_files += ['staticlib', libstartfiles, 'libstartfiles.a']
    211213
    212214if CONFIG_DEVEL_FILES
Note: See TracChangeset for help on using the changeset viewer.