File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## New ` declare_dependency(objects: ) ` argument
2
+
3
+ A new argument to ` declare_dependency ` makes it possible to add objects
4
+ directly to executables that use an internal dependency, without going
5
+ for example through ` link_whole ` .
Original file line number Diff line number Diff line change @@ -71,3 +71,10 @@ kwargs:
71
71
description : |
72
72
the directories to add to the string search path (i.e. `-J` switch for DMD).
73
73
Must be [[@inc]] objects or plain strings.
74
+
75
+ objects :
76
+ type : list[extracted_obj]
77
+ since : 1.1.0
78
+ description : |
79
+ a list of object files, to be linked directly into the targets that use the
80
+ dependency.
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ methods:
13
13
source files. This is typically used to take single object files and link
14
14
them to unit tests or to compile some source files with custom flags. To
15
15
use the object file(s) in another build target, use the
16
- `objects:` keyword argument to a [[build_target]] or include them in the command
17
- line of a [[custom_target]].
16
+ `objects:` keyword argument to a [[build_target]] or [[declare_dependency]],
17
+ or include them in the command line of a [[custom_target]].
18
18
varargs :
19
19
name : source
20
20
type : str | file
You can’t perform that action at this time.
0 commit comments