mesonbuild / mesonbuild/meson

Provide a way for install scripts to access target-specific installation information

Open
#1,971 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6.6k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
33

Description

To change properties on an installed file, you currently have to do:

```meson
meson.add_install_script('install-script.sh',
get_option('libdir'),
some_build_target.full_path())
```

Which is a bit clumsy. We should provide a way for install scripts to introspect the installation information of targets without having to manually call `mesonintrospect`.

Contributor guide

Open the contributing guide

Research direction

Start with the meson.add_install_script call and the target.full_path() and get_option('libdir') values shown in the issue; compare this flow with mesonintrospect. Define how an install script will access target-specific installation information without manually invoking mesonintrospect. Done means the requested introspection path is available to install scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.