SPB Git

Repository Public

Package.swift 6.9 KB 154 lines swift

1// swift-tools-version: 6.02// =============================================================================3//                  SP BOUCHER | SOFTWARE & RESEARCH4//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5// =============================================================================6//7// PROJECT METADATA8// -----------------------------------------------------------------------------9// Project          : ORIX Cosmos10// File             : Package.swift11// Description      : Single SwiftPM manifest for every Cosmos module. One12//                    target per directory under Packages/, strict layering, no13//                    circular dependencies.14// Repository       : https://git.spboucher.ai/orix-cosmos15// Project Website  : https://www.orixlab.dev16// Created          : 2026-11-2417// Last Modified    : 2026-11-2418//19// =============================================================================20// AUTHOR & PROFESSIONAL AFFILIATION21// =============================================================================22//23// Author           : Simon-Pierre Boucher24// Position         : Professor of Finance25// Institution      : Université du Québec en Outaouais (UQO)26// Department       : Département des sciences administratives27// Organization     : SP Boucher28//29// Website          : https://spboucher.ai30// Git              : https://git.spboucher.ai31//32// =============================================================================33// OFFICIAL CONTACT DIRECTORY34// =============================================================================35//36// General          : info@spboucher.ai37// Professional     : contact@spboucher.ai38// Direct           : simon@spboucher.ai39// Research         : research@spboucher.ai40// Development      : dev@spboucher.ai41// Support          : support@spboucher.ai42// Security/Admin   : admin@spboucher.ai43// Notifications    : notifications@spboucher.ai44//45// Preferred Contact: support@spboucher.ai46//47// =============================================================================48// COPYRIGHT & INTELLECTUAL PROPERTY49// =============================================================================50//51// Copyright (c) 202652// Simon-Pierre Boucher53//54// All rights reserved where applicable.55//56// This file is governed by the applicable project license,57// copyright notices, institutional agreements and relevant law.58//59// Unless expressly authorized by the applicable license or60// rights holder, copying, redistribution, sublicensing,61// publication and commercial exploitation are not permitted.62//63// Existing third-party rights and notices remain unaffected.64//65// =============================================================================66// CONFIDENTIALITY & SECURITY67// =============================================================================68//69// Classification   : Public70// Distribution     : Public repository; use is governed by the project license71// Security Contact : admin@spboucher.ai72//73// Access to this source does not independently grant permission74// to redistribute or disclose confidential materials.75//76// Do not embed credentials, private keys, access tokens,77// certificates or confidential personal information.78//79// =============================================================================80// LICENSE & MAINTENANCE81// =============================================================================82//83// License          : None specified (no license file in this repository)84// Maintainer       : Simon-Pierre Boucher85// Technical Contact: dev@spboucher.ai86//87// =============================================================================88// END OF SP BOUCHER SOURCE HEADER89// =============================================================================9091import PackageDescription9293// Layering (a module may only depend on modules listed for it here):94//   Core  <-  Math  <-  Time  <-  Coordinates  <-  Ephemeris  <-  Astrodynamics / Observation95//   Core  <-  Catalog, Spatial, Cosmology, Laboratory, DataPacks, Export, Planetary, Render96//   Scripting, AI and UI sit on top. Render never imports catalog/simulation modules: it draws a scene description.97let modules: [(name: String, deps: [String], resources: Bool)] = [98    ("CosmosCore", [], false),99    ("CosmosMath", ["CosmosCore"], false),100    ("CosmosTime", ["CosmosCore", "CosmosMath"], true),101    ("CosmosCoordinates", ["CosmosCore", "CosmosMath", "CosmosTime"], false),102    ("CosmosEphemeris", ["CosmosCore", "CosmosMath"], false),103    ("CosmosCatalog", ["CosmosCore", "CosmosMath"], false),104    ("CosmosSpatial", ["CosmosCore", "CosmosMath"], false),105    ("CosmosRender", ["CosmosCore", "CosmosMath"], true),106    ("CosmosPlanetary", ["CosmosCore", "CosmosMath"], false),107    ("CosmosAstrodynamics", ["CosmosCore", "CosmosMath", "CosmosTime", "CosmosCoordinates", "CosmosEphemeris"], true),108    ("CosmosCosmology", ["CosmosCore", "CosmosMath"], false),109    ("CosmosObservation", ["CosmosCore", "CosmosMath", "CosmosTime", "CosmosCoordinates", "CosmosEphemeris", "CosmosCatalog"], false),110    ("CosmosLaboratory", ["CosmosCore", "CosmosMath"], false),111    ("CosmosDataPacks", ["CosmosCore"], false),112    ("CosmosExport", ["CosmosCore"], false),113    ("CosmosScripting", ["CosmosCore", "CosmosMath", "CosmosTime", "CosmosCoordinates", "CosmosEphemeris", "CosmosCatalog", "CosmosCosmology", "CosmosLaboratory", "CosmosAstrodynamics"], false),114    ("CosmosAI", ["CosmosCore", "CosmosScripting"], false),115    ("CosmosUI", ["CosmosCore", "CosmosMath", "CosmosTime", "CosmosCoordinates", "CosmosEphemeris", "CosmosCatalog", "CosmosSpatial", "CosmosRender", "CosmosPlanetary", "CosmosAstrodynamics", "CosmosCosmology", "CosmosObservation", "CosmosLaboratory", "CosmosDataPacks", "CosmosExport", "CosmosScripting", "CosmosAI"], true),116]117118let swiftSettings: [SwiftSetting] = [.swiftLanguageMode(.v6)]119120var targets: [Target] = []121for m in modules {122    targets.append(.target(123        name: m.name,124        dependencies: m.deps.map { .byName(name: $0) },125        path: "Packages/\(m.name)/Sources",126        resources: m.resources ? [.process("Resources")] : [],127        swiftSettings: swiftSettings128    ))129    targets.append(.testTarget(130        name: "\(m.name)Tests",131        dependencies: [.byName(name: m.name)],132        path: "Packages/\(m.name)/Tests",133        // Test fixtures (reference vectors, sample files) are isolated from production data.134        resources: [.copy("Fixtures")],135        swiftSettings: swiftSettings136    ))137}138139// Headless benchmark runner (no XCTest): `swift run -c release cosmos-bench`.140targets.append(.executableTarget(141    name: "cosmos-bench",142    dependencies: modules.map { .byName(name: $0.name) }.filter { _ in true },143    path: "Benchmarks/Sources",144    swiftSettings: swiftSettings145))146147let package = Package(148    name: "ORIXCosmos",149    defaultLocalization: "en",150    platforms: [.macOS(.v15)],151    products: modules.map { .library(name: $0.name, targets: [$0.name]) },152    targets: targets153)154
Files main
Menu

Theme