You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build_xml/Files.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,20 @@ Files
2
2
------
3
3
The files node defines a group of files that all share the same attributes, including relative directory, default compiler flags and dependencies. The node can be used to define a set of header files on which other files can depend, or a set of source files to be compiled and included in a target.
4
4
5
+
```xml
6
+
<filesid="foo"cxx_standard="14">
7
+
<filename="foo.cpp"/>
8
+
<filename="bar.c"/>
9
+
</files>
10
+
```
11
+
12
+
#### Attributes
13
+
14
+
+`c_standard` = Default C standard for the file group
15
+
+`cxx_standard` = Default C++ standard for the file group
16
+
+`objc_standard` = Default Objective-C standard for the file group
17
+
+`objcxx_standard` = Default Objective-C++ standard for the file group
18
+
#### Nodes
5
19
-*depend* - Declare that all files in the group depend on another file or another file group.
6
20
```xml
7
21
<dependname="filename" />
@@ -80,13 +94,17 @@ The files node defines a group of files that all share the same attributes, incl
80
94
81
95
-*file* - Add file to group, with optional attributes
0 commit comments