Skip to content

Commit e53c0e0

Browse files
committed
document multiple library targets
1 parent c046a29 commit e53c0e0

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.claude/settings.local.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:github.com)"
5+
],
6+
"deny": [],
7+
"ask": []
8+
}
9+
}

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)