Exclude product of a package from platform

Hi, I'm working on a multiplatform library for logging.
A product inside the Package.swift is reserved only for iOS/macOS; is there a way to exclude it from being built in Linux?

That's the package: Glider/Package.swift at main · immobiliare/Glider · GitHub
I would to exclude .library(name: "GliderSentry", targets: ["GliderSentry"]), which is only for iOS and mac.

You could

#if os(Linux)
#else
#endif

the library declaration

3 Likes

Thank you!