diff options
author | Katalin Rebhan <me@dblsaiko.net> | 2025-07-15 23:54:12 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2025-07-25 11:15:13 -0700 |
commit | 555df4d863793027df8fca6d3eb6e18295770831 (patch) | |
tree | 26b9bacd474dbfddfcf9cd4b0266c8c931aef659 /docs/markdown/snippets | |
parent | 41eb18d16366002db123cba0fa0b72f62f2426f8 (diff) | |
download | meson-master.zip meson-master.tar.gz meson-master.tar.bz2 |
Allows explicitly setting the Swift module name. By default, this is set
to the target name, which we might want to change for various reasons,
for example when it isn't a valid module name, or when building two
targets with the same module name (e.g. a host and native variant).
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/swift-module-name.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/swift-module-name.md b/docs/markdown/snippets/swift-module-name.md new file mode 100644 index 0000000..689dd84 --- /dev/null +++ b/docs/markdown/snippets/swift-module-name.md @@ -0,0 +1,9 @@ +## Explicitly setting Swift module name is now supported + +It is now possible to set the Swift module name for a target via the +*swift_module_name* target kwarg, overriding the default inferred from the +target name. + +```meson +lib = library('foo', 'foo.swift', swift_module_name: 'Foo') +``` |