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: mkdocs/docs/guides/external_dependencies.md
+57-69Lines changed: 57 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@ This is configured under the `Source` section. We currently support 2 sources:
35
35
Source:
36
36
Git:
37
37
URL: "https://github.com/MyUser/MyLibrary.git"
38
-
39
38
LibraryType: Static
40
39
IncludePaths:
41
40
- "include/MyLibrary"
@@ -61,33 +60,35 @@ This is configured under the `Source` section. We currently support 2 sources:
61
60
62
61
!!! info "This requires `latest` version"
63
62
64
-
You can specify the target branch/tag name and to clone whole git history or not with:
65
-
`Branch` and `FullHistory`.
63
+
You can specify the target branch/tag name and to clone whole git history or not with:
64
+
`Branch` and `FullHistory`.
66
65
67
-
You can also specify if you want to clone all the submodules full history or not with `SubmoduleInitType`
66
+
You can also specify if you want to clone all the submodules full history or not with
67
+
`SubmoduleInitType`
68
68
69
-
A normal clone without full history will be performed if none of these are specified.
69
+
A normal clone without full history will be performed if none of these are specified.
70
70
71
-
???+ example "Example "Not using default and cloning a specify branch and submodules with full history""
72
-
```yaml
73
-
Dependencies:
74
-
...
75
-
Source:
76
-
Git:
77
-
URL: "https://github.com/MyUser/MyLibrary.git"
78
-
Branch: "SpecialBranch"
79
-
FullHistory: true
80
-
SubmoduleInitType: "Full"
81
-
...
82
-
```
71
+
???+ example "Example "Not using default and cloning a specify branch and submodules with full history""
72
+
```yaml
73
+
Dependencies:
74
+
...
75
+
Source:
76
+
Git:
77
+
URL: "https://github.com/MyUser/MyLibrary.git"
78
+
Branch: "SpecialBranch"
79
+
FullHistory: true
80
+
SubmoduleInitType: "Full"
81
+
...
82
+
```
83
83
84
84
---
85
85
86
86
## Adding Include Paths And Link Settings
87
87
88
88
### Include Paths
89
89
90
-
Include paths can be specified using the `IncludePaths` field. These paths are relative to the dependency's root directory:
90
+
Include paths can be specified using the `IncludePaths` field.
91
+
These paths are relative to the dependency's root directory:
91
92
92
93
???+ example
93
94
```yaml
@@ -104,22 +105,7 @@ Include paths can be specified using the `IncludePaths` field. These paths are r
104
105
105
106
For non-header libraries, you need to specify how to link against the library using `LinkProperties`:
106
107
107
-
???+ example "Basic Link Settings"
108
-
```yaml
109
-
Dependencies:
110
-
- Name: MyLibrary
111
-
LibraryType: Static
112
-
LinkProperties:
113
-
DefaultPlatform:
114
-
"g++":
115
-
# Names to search for when looking for library files
116
-
SearchLibraryNames: ["MyLibrary"]
117
-
# Where to look for the library files
118
-
SearchDirectories: ["build"]
119
-
# ... other fields ...
120
-
```
121
-
122
-
??? example "Platform-Specific Link Settings"
108
+
???+ example
123
109
```yaml
124
110
Dependencies:
125
111
- Name: MyLibrary
@@ -146,7 +132,8 @@ For non-header libraries, you need to specify how to link against the library us
146
132
147
133
### Excluding Libraries
148
134
149
-
Sometimes a dependency might have multiple library files, but you only want to link against specific ones.
135
+
Sometimes a dependency might have multiple library files,
136
+
but you only want to link against specific ones.
150
137
151
138
Use `ExcludeLibraryNames` to skip certain libraries:
152
139
@@ -169,9 +156,12 @@ Use `ExcludeLibraryNames` to skip certain libraries:
169
156
170
157
## Adding Setup, Build and Cleanup Commands
171
158
172
-
runcpp2 supports external dependencies with any build systems by allowing you to specify different command hooks similar to [command hooks in your project](building_project_sources.md#adding-command-hooks)
159
+
runcpp2 supports external dependencies with any build systems by allowing you
160
+
to specify different command hooks similar to
161
+
[command hooks in your project](building_project_sources.md#adding-command-hooks)
173
162
174
-
The only difference is that `PreBuild` and `PostBuild` hooks are replaced with `Build` hook which is run together when building your project source files.
163
+
The only difference is that `PreBuild` and `PostBuild` hooks are replaced with
164
+
`Build` hook which is run together when building your project source files.
175
165
176
166
??? example
177
167
```yaml
@@ -196,26 +186,23 @@ The only difference is that `PreBuild` and `PostBuild` hooks are replaced with `
196
186
197
187
## Copying Files
198
188
199
-
Sometimes dependencies need additional files (like DLLs, shaders, or assets) to be copied next to your executable. You can specify these files using the `FilesToCopy` field.
189
+
Sometimes dependencies need additional files (like DLLs, shaders, or assets) to be copied next
190
+
to your executable. You can specify these files using the `FilesToCopy` field.
200
191
201
-
All paths are relative to the dependency's root directory. The files are copied to the output directory where the executable is located.
192
+
All paths are relative to the dependency's root directory.
193
+
The files are copied to the output directory where the executable is located.
0 commit comments