Skip to content

Commit c467bea

Browse files
authored
document multiple library targets (#171)
1 parent 161d9e7 commit c467bea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/spec/manifest.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,15 @@ type = "monolithic" # Default: single static archive bundling all code
230230
# type = "shared" # Per-package shared libraries (.so, .dll, .dylib)
231231
```
232232

233+
Since `fpm v0.14.0`, you can also build **multiple library types simultaneously** by specifying an array of types:
234+
235+
```toml
236+
[library]
237+
type = ["shared", "static"] # Build both shared and static libraries
238+
```
239+
240+
This allows a single package to provide both shared and static library variants, giving downstream users the flexibility to choose the linking approach that best suits their needs. Note that the `"monolithic"` type (the default) cannot be combined with other types in the array.
241+
233242
### 📦 Build types
234243

235244
* **`monolithic`** *(default)*:

0 commit comments

Comments
 (0)