1717
1818// The swift-tools-version declares the minimum version of Swift required to build this package.
1919
20- import Foundation
2120import PackageDescription
2221
23- let gitCommit = ProcessInfo . processInfo. environment [ " GIT_COMMIT " ] ?? " unspecified "
24- let gitTag = ProcessInfo . processInfo. environment [ " GIT_TAG " ] ?? " "
25- let buildTime = ProcessInfo . processInfo. environment [ " BUILD_TIME " ] ?? " unspecified "
26-
2722let package = Package (
2823 name: " swift-vminitd " ,
2924 platforms: [ . macOS( " 15 " ) ] ,
3025 products: [
31- . library( name: " VminitdCore " , targets: [ " VminitdCore " ] ) ,
3226 . executable( name: " vminitd " , targets: [ " vminitd " ] ) ,
3327 . executable( name: " vmexec " , targets: [ " vmexec " ] ) ,
3428 ] ,
3529 dependencies: [
3630 . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.7.0 " ) ,
3731 . package ( url: " https://github.com/apple/swift-log.git " , from: " 1.10.1 " ) ,
38- . package ( url: " https://github.com/apple/swift-protobuf.git " , from: " 1.36.0 " ) ,
3932 . package ( url: " https://github.com/apple/swift-system.git " , from: " 1.6.4 " ) ,
40- . package ( url: " https://github.com/grpc/grpc-swift-2.git " , from: " 2.3.0 " ) ,
41- . package ( url: " https://github.com/grpc/grpc-swift-nio-transport.git " , from: " 2.4.4 " ) ,
42- . package ( url: " https://github.com/grpc/grpc-swift-protobuf.git " , from: " 2.2.0 " ) ,
4333 . package ( name: " containerization " , path: " ../ " ) ,
4434 ] ,
4535 targets: [
46- . target(
47- name: " CVersion " ,
48- cSettings: [
49- . define( " GIT_COMMIT " , to: " \" \( gitCommit) \" " ) ,
50- . define( " GIT_TAG " , to: " \" \( gitTag) \" " ) ,
51- . define( " BUILD_TIME " , to: " \" \( buildTime) \" " ) ,
52- ]
53- ) ,
54- . target(
55- name: " LCShim "
56- ) ,
57- . target(
58- name: " Cgroup " ,
59- dependencies: [
60- . product( name: " Logging " , package : " swift-log " ) ,
61- . product( name: " ContainerizationOCI " , package : " containerization " ) ,
62- . product( name: " ContainerizationOS " , package : " containerization " ) ,
63- . product( name: " SystemPackage " , package : " swift-system " ) ,
64- " LCShim " ,
65- ]
66- ) ,
67- . target(
68- name: " VminitdCore " ,
69- dependencies: [
70- . product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
71- . product( name: " Logging " , package : " swift-log " ) ,
72- . product( name: " Containerization " , package : " containerization " ) ,
73- . product( name: " ContainerizationArchive " , package : " containerization " ) ,
74- . product( name: " ContainerizationNetlink " , package : " containerization " ) ,
75- . product( name: " ContainerizationIO " , package : " containerization " ) ,
76- . product( name: " ContainerizationOS " , package : " containerization " ) ,
77- . product( name: " SystemPackage " , package : " swift-system " ) ,
78- . product( name: " GRPCCore " , package : " grpc-swift-2 " ) ,
79- . product( name: " GRPCNIOTransportHTTP2 " , package : " grpc-swift-nio-transport " ) ,
80- . product( name: " GRPCProtobuf " , package : " grpc-swift-protobuf " ) ,
81- " LCShim " ,
82- " CVersion " ,
83- " Cgroup " ,
84- ]
85- ) ,
8636 . executableTarget(
8737 name: " vminitd " ,
8838 dependencies: [
8939 . product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
9040 . product( name: " ContainerizationOS " , package : " containerization " ) ,
9141 . product( name: " Logging " , package : " swift-log " ) ,
92- " VminitdCore " ,
42+ . product ( name : " VminitdCore " , package : " containerization " ) ,
9343 ]
9444 ) ,
9545 . executableTarget(
@@ -100,8 +50,7 @@ let package = Package(
10050 . product( name: " SystemPackage " , package : " swift-system " ) ,
10151 . product( name: " Containerization " , package : " containerization " ) ,
10252 . product( name: " ContainerizationOS " , package : " containerization " ) ,
103- " LCShim " ,
104- " Cgroup " ,
53+ . product( name: " VminitdCore " , package : " containerization " ) ,
10554 ]
10655 ) ,
10756 ]
0 commit comments