/
mpv_med
/
feature2module
Обзор
Документация
Войти
/
mpv_med
/
feature2module
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
Package.swift
43 строки
1 KB
Artem Zabludovskii
add module 1 as dependency
20 янв 2025, 17:34
20 янв 2025, 17:34
12415ab
Код
Авторство
О чём код?
// swift-tools-version: 6.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "Feature2Module", products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "Feature2Module", targets: ["Feature2Module"] ), .library( name: "Feature2InterfaceModule", targets: ["Feature2InterfaceModule"] ), ], dependencies: [ .package(name: "Feature1Module", path: "../feature1module") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: "Feature2Module", dependencies: [ "Feature2InterfaceModule", .product(name: "Feature1InterfaceModule", package: "Feature1Module") ] ), .target( name: "Feature2InterfaceModule" ), .testTarget( name: "Feature2ModuleTests", dependencies: ["Feature2Module"] ), ] )