intro: Add extra_files key to intro output (fixes #7310)
parent
30d78f3981
commit
7c377e5a5d
10 changed files with 116 additions and 57 deletions
@ -0,0 +1,6 @@ |
||||
## New `extra_files` key in target introspection |
||||
|
||||
The target introspection (`meson introspect --targets`, `intro-targets.json`) |
||||
now has the new `extra_files` key which lists all files specified via the |
||||
`extra_files` kwarg of a build target (see `executable()`, etc.) |
||||
|
@ -1,2 +1,2 @@ |
||||
SRC_shared = ['shared.cpp'] |
||||
sharedlib = shared_library('sharedTestLib', SRC_shared) |
||||
sharedlib = shared_library('sharedTestLib', SRC_shared, extra_files: ['shared.hpp']) |
||||
|
@ -1,2 +1,3 @@ |
||||
SRC_static = ['static.c'] |
||||
staticlib = static_library('staticTestLib', SRC_static) |
||||
extra_static = files(['static.h']) |
||||
staticlib = static_library('staticTestLib', SRC_static, extra_files: extra_static) |
||||
|
@ -1,3 +1,11 @@ |
||||
#pragma once |
||||
|
||||
int add_numbers(int a, int b); |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
int add_numbers(int a, int b); |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
Loading…
Reference in new issue