@@ -310,19 +310,28 @@ subroutine cmd_new(settings)
310
310
&' # modules. For example, src/a/b/c/d.f90 must define a module called a_b_c_d. ' ,&
311
311
&' # Again, this is not enforced but may be required in future releases. ' ,&
312
312
&' ' ,&
313
- &' # Set `shared=true` to build dynamic libraries (.so/.dylib/.dll) ' ,&
314
- &' # instead of a static archive (.a). When enabled, each package in the ' ,&
315
- &' # dependency graph will be compiled to its own shared library. ' ,&
313
+ &' ### Library type ' ,&
314
+ &' # Set `type = "shared"` to build dynamic libraries (.so/.dylib/.dll) ' ,&
315
+ &' # instead of a static archive. You can also set `type = "static"` to ' ,&
316
+ &' # generate per-package archives, or use `type = "monolithic"` (default) ' ,&
317
+ &' # to bundle all sources and dependencies into a single archive. ' ,&
316
318
&' # ' ,&
317
- &' # This is useful for plugin systems, dynamic linking, or when building ' ,&
318
- &' # language bindings. ' ,&
319
+ &' # Supported types: ' ,&
319
320
&' # ' ,&
320
- &' # Note: shared libraries are not installed unless `[install] library=true` ' ,&
321
+ &' # + "monolithic": Single archive with used sources and dependencies. ' ,&
322
+ &' # + "static": One full archive per package (for external integration). ' ,&
323
+ &' # + "shared": One shared library per package, for dynamic linking. ' ,&
324
+ &' # ' ,&
325
+ &' # Shared libraries are useful for plugin systems, dynamic linking, or ' ,&
326
+ &' # language bindings. Static per-package archives may aid external reuse. ' ,&
327
+ &' # ' ,&
328
+ &' # Note: library files are not installed unless `[install] library=true` ' ,&
321
329
&' # is also enabled. ' ,&
322
330
&' # ' ,&
323
331
&' # Example: ' ,&
324
- &' shared = false ' ,&
325
-
332
+ &' ' ,&
333
+ &' type = "shared" ' ,&
334
+ &' ' ,&
326
335
&' ' ]
327
336
endif
328
337
! create placeholder module src/bname.f90
0 commit comments