mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
spm hide daemon behind ifdef
This commit is contained in:
@@ -206,12 +206,16 @@ extension Product {
|
|||||||
|
|
||||||
// `.app` Executables
|
// `.app` Executables
|
||||||
SideStore_app,
|
SideStore_app,
|
||||||
]
|
] + cliProducts
|
||||||
|
|
||||||
// CLI Executables
|
// CLI Executables
|
||||||
|
#if HAVE_MACOS_DAEMON
|
||||||
static let cliProducts: [Product] = [
|
static let cliProducts: [Product] = [
|
||||||
SideDaemon
|
SideDaemon
|
||||||
]
|
]
|
||||||
|
#else
|
||||||
|
static let cliProducts: [Product] = []
|
||||||
|
#endif
|
||||||
|
|
||||||
// SideStoreAppKit
|
// SideStoreAppKit
|
||||||
static let SideStoreAppKit = librarySet("SideStoreAppKit")
|
static let SideStoreAppKit = librarySet("SideStoreAppKit")
|
||||||
@@ -225,8 +229,10 @@ extension Product {
|
|||||||
// SideStore Executable
|
// SideStore Executable
|
||||||
static let SideStore_app: Product = .executable( name: "SideStore", targets: ["SideStore"])
|
static let SideStore_app: Product = .executable( name: "SideStore", targets: ["SideStore"])
|
||||||
|
|
||||||
|
#if HAVE_MACOS_DAEMON
|
||||||
// SideDaemon Executable
|
// SideDaemon Executable
|
||||||
static let SideDaemon : Product = .executable(name: "SideDaemon", targets: ["SideDaemon"])
|
static let SideDaemon : Product = .executable(name: "SideDaemon", targets: ["SideDaemon"])
|
||||||
|
#endif
|
||||||
|
|
||||||
#if USE_CARGO_BUILD_PLUGIN
|
#if USE_CARGO_BUILD_PLUGIN
|
||||||
// Cargo Plugin (WIP)
|
// Cargo Plugin (WIP)
|
||||||
@@ -270,10 +276,6 @@ extension Target.SideStore {
|
|||||||
// SideBackup Executable
|
// SideBackup Executable
|
||||||
SideBackup,
|
SideBackup,
|
||||||
|
|
||||||
// SideDaemon
|
|
||||||
SideDaemon.target,
|
|
||||||
SideDaemon.testTarget,
|
|
||||||
|
|
||||||
// SidePatcher
|
// SidePatcher
|
||||||
SidePatcher.target,
|
SidePatcher.target,
|
||||||
SidePatcher.testTarget,
|
SidePatcher.testTarget,
|
||||||
@@ -282,6 +284,16 @@ extension Target.SideStore {
|
|||||||
Apps.SideStore_app,
|
Apps.SideStore_app,
|
||||||
].compactMap{$0}
|
].compactMap{$0}
|
||||||
|
|
||||||
|
#if HAVE_MACOS_DAEMON
|
||||||
|
static let cliTargets: [Target] = [
|
||||||
|
// SideDaemon
|
||||||
|
SideDaemon.target,
|
||||||
|
SideDaemon.testTarget,
|
||||||
|
]
|
||||||
|
#else
|
||||||
|
static let cliTargets: [Target] = []
|
||||||
|
#endif
|
||||||
|
|
||||||
/// __PluginTargets__
|
/// __PluginTargets__
|
||||||
static let pluginTargets: [Target] = {
|
static let pluginTargets: [Target] = {
|
||||||
Cargo.Plugins
|
Cargo.Plugins
|
||||||
@@ -338,6 +350,7 @@ extension Target.SideStore {
|
|||||||
name: "SideStoreCoreTests",
|
name: "SideStoreCoreTests",
|
||||||
dependencies: ["SideStoreCore", "KeychainAccess", "AltSign", "SemanticVersion", "SideKit"]))
|
dependencies: ["SideStoreCore", "KeychainAccess", "AltSign", "SemanticVersion", "SideKit"]))
|
||||||
|
|
||||||
|
#if HAVE_MACOS_DAEMON
|
||||||
// MARK: - SideDaemon
|
// MARK: - SideDaemon
|
||||||
/// This is mostly leftover from `AltDaemon`
|
/// This is mostly leftover from `AltDaemon`
|
||||||
/// We don't need or use it, but it felt bad to just delete it at the moment.
|
/// We don't need or use it, but it felt bad to just delete it at the moment.
|
||||||
@@ -349,11 +362,12 @@ extension Target.SideStore {
|
|||||||
"SideKit",
|
"SideKit",
|
||||||
CoreCrypto,
|
CoreCrypto,
|
||||||
CCoreCrypto,
|
CCoreCrypto,
|
||||||
.product(name: "LaunchAtLogin", package: "LaunchAtLogin"),
|
.product(name: "LaunchAtLogin", package: "LaunchAtLogin", condition: .when(platforms: [.macOS])),
|
||||||
],
|
],
|
||||||
plugins: commonPlugins
|
plugins: commonPlugins
|
||||||
),
|
),
|
||||||
.testTarget(name: "SideDaemonTests", dependencies: ["SideDaemon"]))
|
.testTarget(name: "SideDaemonTests", dependencies: ["SideDaemon"]))
|
||||||
|
#endif
|
||||||
|
|
||||||
// MARK: - SideBackup
|
// MARK: - SideBackup
|
||||||
static let SideBackup: Target = .executableTarget(
|
static let SideBackup: Target = .executableTarget(
|
||||||
|
|||||||
Reference in New Issue
Block a user