Skip to content

Commit dbbe941

Browse files
committed
Add Swift Package manager support
1 parent 33154fe commit dbbe941

File tree

5 files changed

+422
-0
lines changed

5 files changed

+422
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ xcuserdata
55
*.pbxuser
66
*.xcuserdatad
77
*.xccheckout
8+
.idea/
9+
.build/

Package.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// swift-tools-version:4.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Prelude",
7+
products: [
8+
.library(name: "Prelude", targets: ["Prelude"])
9+
],
10+
dependencies: [],
11+
targets: [
12+
.target(name: "Prelude", dependencies: [], path: "Prelude"),
13+
.testTarget(name: "PreludeTests", dependencies: ["Prelude"], path: "PreludeTests")
14+
],
15+
swiftLanguageVersions: [3]
16+
)

Prelude.xcodeproj/project.pbxproj

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@
4444
D4D33D9F19FE8FAE001D051D /* Prelude.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D33D9E19FE8FAE001D051D /* Prelude.swift */; };
4545
D4E7A8091A2D3A6A0080A4DF /* Curry.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4E7A8081A2D3A6A0080A4DF /* Curry.swift */; };
4646
D4E7A80B1A2D3A740080A4DF /* CurryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4E7A80A1A2D3A740080A4DF /* CurryTests.swift */; };
47+
D695FC3720C72C1100F69CA5 /* Tuple.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1168F80B1CF91A7E00DE07DC /* Tuple.swift */; };
48+
D695FC3820C72C1100F69CA5 /* Application.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BC08F21A3385BE007D52F8 /* Application.swift */; };
49+
D695FC3920C72C1100F69CA5 /* Prelude.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D33D9E19FE8FAE001D051D /* Prelude.swift */; };
50+
D695FC3A20C72C1100F69CA5 /* Optional.swift in Sources */ = {isa = PBXBuildFile; fileRef = D461E3F61A943DA6005E6A15 /* Optional.swift */; };
51+
D695FC3B20C72C1100F69CA5 /* Compose.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BAEF821A2D6091006E25DF /* Compose.swift */; };
52+
D695FC3C20C72C1100F69CA5 /* Curry.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4E7A8081A2D3A6A0080A4DF /* Curry.swift */; };
53+
D695FC3D20C72C1100F69CA5 /* Flip.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4C9A1161A34D5E5009C6CD3 /* Flip.swift */; };
54+
D695FC3E20C72C1100F69CA5 /* Fix.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BAF0411A2E79D6006E25DF /* Fix.swift */; };
55+
D695FC4020C72C1100F69CA5 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D47940841B263CA700D3962E /* CoreFoundation.framework */; };
56+
D695FC4220C72C1100F69CA5 /* Prelude.h in Headers */ = {isa = PBXBuildFile; fileRef = D4D33D8719FE8F8C001D051D /* Prelude.h */; settings = {ATTRIBUTES = (Public, ); }; };
57+
D695FC4D20C72C1F00F69CA5 /* TupleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1168F80D1CF91B1700DE07DC /* TupleTests.swift */; };
58+
D695FC4E20C72C1F00F69CA5 /* FlipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4C9A1181A34D606009C6CD3 /* FlipTests.swift */; };
59+
D695FC4F20C72C1F00F69CA5 /* PreludeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D33D9419FE8F8C001D051D /* PreludeTests.swift */; };
60+
D695FC5020C72C1F00F69CA5 /* CurryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4E7A80A1A2D3A740080A4DF /* CurryTests.swift */; };
61+
D695FC5120C72C1F00F69CA5 /* ConjunctionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D461E3F91A944388005E6A15 /* ConjunctionTests.swift */; };
62+
D695FC5220C72C1F00F69CA5 /* ApplicationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BC08F41A3385CC007D52F8 /* ApplicationTests.swift */; };
63+
D695FC5320C72C1F00F69CA5 /* ComposeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BAEF841A2D609A006E25DF /* ComposeTests.swift */; };
64+
D695FC5420C72C1F00F69CA5 /* FixTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BAF0431A2E79E5006E25DF /* FixTests.swift */; };
65+
D695FC5620C72C1F00F69CA5 /* Prelude.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4D33D8219FE8F8C001D051D /* Prelude.framework */; };
4766
/* End PBXBuildFile section */
4867

4968
/* Begin PBXContainerItemProxy section */
@@ -61,6 +80,13 @@
6180
remoteGlobalIDString = D4D33D8119FE8F8C001D051D;
6281
remoteInfo = Prelude;
6382
};
83+
D695FC4B20C72C1F00F69CA5 /* PBXContainerItemProxy */ = {
84+
isa = PBXContainerItemProxy;
85+
containerPortal = D4D33D7919FE8F8C001D051D /* Project object */;
86+
proxyType = 1;
87+
remoteGlobalIDString = D4D33D8119FE8F8C001D051D;
88+
remoteInfo = Prelude;
89+
};
6490
/* End PBXContainerItemProxy section */
6591

6692
/* Begin PBXFileReference section */
@@ -88,6 +114,8 @@
88114
D4D33D9E19FE8FAE001D051D /* Prelude.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Prelude.swift; sourceTree = "<group>"; };
89115
D4E7A8081A2D3A6A0080A4DF /* Curry.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Curry.swift; sourceTree = "<group>"; };
90116
D4E7A80A1A2D3A740080A4DF /* CurryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CurryTests.swift; sourceTree = "<group>"; };
117+
D695FC4720C72C1100F69CA5 /* Prelude.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Prelude.framework; sourceTree = BUILT_PRODUCTS_DIR; };
118+
D695FC5B20C72C1F00F69CA5 /* PreludeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PreludeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
91119
/* End PBXFileReference section */
92120

93121
/* Begin PBXFrameworksBuildPhase section */
@@ -122,6 +150,22 @@
122150
);
123151
runOnlyForDeploymentPostprocessing = 0;
124152
};
153+
D695FC3F20C72C1100F69CA5 /* Frameworks */ = {
154+
isa = PBXFrameworksBuildPhase;
155+
buildActionMask = 2147483647;
156+
files = (
157+
D695FC4020C72C1100F69CA5 /* CoreFoundation.framework in Frameworks */,
158+
);
159+
runOnlyForDeploymentPostprocessing = 0;
160+
};
161+
D695FC5520C72C1F00F69CA5 /* Frameworks */ = {
162+
isa = PBXFrameworksBuildPhase;
163+
buildActionMask = 2147483647;
164+
files = (
165+
D695FC5620C72C1F00F69CA5 /* Prelude.framework in Frameworks */,
166+
);
167+
runOnlyForDeploymentPostprocessing = 0;
168+
};
125169
/* End PBXFrameworksBuildPhase section */
126170

127171
/* Begin PBXGroup section */
@@ -141,6 +185,8 @@
141185
D4D33D8D19FE8F8C001D051D /* Prelude-MacTests.xctest */,
142186
547B480E1A39A78200B60CA9 /* Prelude.framework */,
143187
547B48181A39A78300B60CA9 /* Prelude-iOSTests.xctest */,
188+
D695FC4720C72C1100F69CA5 /* Prelude.framework */,
189+
D695FC5B20C72C1F00F69CA5 /* PreludeTests.xctest */,
144190
);
145191
name = Products;
146192
sourceTree = "<group>";
@@ -214,6 +260,14 @@
214260
);
215261
runOnlyForDeploymentPostprocessing = 0;
216262
};
263+
D695FC4120C72C1100F69CA5 /* Headers */ = {
264+
isa = PBXHeadersBuildPhase;
265+
buildActionMask = 2147483647;
266+
files = (
267+
D695FC4220C72C1100F69CA5 /* Prelude.h in Headers */,
268+
);
269+
runOnlyForDeploymentPostprocessing = 0;
270+
};
217271
/* End PBXHeadersBuildPhase section */
218272

219273
/* Begin PBXNativeTarget section */
@@ -289,6 +343,42 @@
289343
productReference = D4D33D8D19FE8F8C001D051D /* Prelude-MacTests.xctest */;
290344
productType = "com.apple.product-type.bundle.unit-test";
291345
};
346+
D695FC3520C72C1100F69CA5 /* Prelude */ = {
347+
isa = PBXNativeTarget;
348+
buildConfigurationList = D695FC4420C72C1100F69CA5 /* Build configuration list for PBXNativeTarget "Prelude" */;
349+
buildPhases = (
350+
D695FC3620C72C1100F69CA5 /* Sources */,
351+
D695FC3F20C72C1100F69CA5 /* Frameworks */,
352+
D695FC4120C72C1100F69CA5 /* Headers */,
353+
D695FC4320C72C1100F69CA5 /* Resources */,
354+
);
355+
buildRules = (
356+
);
357+
dependencies = (
358+
);
359+
name = Prelude;
360+
productName = Prelude;
361+
productReference = D695FC4720C72C1100F69CA5 /* Prelude.framework */;
362+
productType = "com.apple.product-type.framework";
363+
};
364+
D695FC4920C72C1F00F69CA5 /* PreludeTests */ = {
365+
isa = PBXNativeTarget;
366+
buildConfigurationList = D695FC5820C72C1F00F69CA5 /* Build configuration list for PBXNativeTarget "PreludeTests" */;
367+
buildPhases = (
368+
D695FC4C20C72C1F00F69CA5 /* Sources */,
369+
D695FC5520C72C1F00F69CA5 /* Frameworks */,
370+
D695FC5720C72C1F00F69CA5 /* Resources */,
371+
);
372+
buildRules = (
373+
);
374+
dependencies = (
375+
D695FC4A20C72C1F00F69CA5 /* PBXTargetDependency */,
376+
);
377+
name = PreludeTests;
378+
productName = PreludeTests;
379+
productReference = D695FC5B20C72C1F00F69CA5 /* PreludeTests.xctest */;
380+
productType = "com.apple.product-type.bundle.unit-test";
381+
};
292382
/* End PBXNativeTarget section */
293383

294384
/* Begin PBXProject section */
@@ -329,6 +419,8 @@
329419
D4D33D8C19FE8F8C001D051D /* Prelude-MacTests */,
330420
547B480D1A39A78200B60CA9 /* Prelude-iOS */,
331421
547B48171A39A78300B60CA9 /* Prelude-iOSTests */,
422+
D695FC3520C72C1100F69CA5 /* Prelude */,
423+
D695FC4920C72C1F00F69CA5 /* PreludeTests */,
332424
);
333425
};
334426
/* End PBXProject section */
@@ -362,6 +454,20 @@
362454
);
363455
runOnlyForDeploymentPostprocessing = 0;
364456
};
457+
D695FC4320C72C1100F69CA5 /* Resources */ = {
458+
isa = PBXResourcesBuildPhase;
459+
buildActionMask = 2147483647;
460+
files = (
461+
);
462+
runOnlyForDeploymentPostprocessing = 0;
463+
};
464+
D695FC5720C72C1F00F69CA5 /* Resources */ = {
465+
isa = PBXResourcesBuildPhase;
466+
buildActionMask = 2147483647;
467+
files = (
468+
);
469+
runOnlyForDeploymentPostprocessing = 0;
470+
};
365471
/* End PBXResourcesBuildPhase section */
366472

367473
/* Begin PBXSourcesBuildPhase section */
@@ -425,6 +531,36 @@
425531
);
426532
runOnlyForDeploymentPostprocessing = 0;
427533
};
534+
D695FC3620C72C1100F69CA5 /* Sources */ = {
535+
isa = PBXSourcesBuildPhase;
536+
buildActionMask = 2147483647;
537+
files = (
538+
D695FC3720C72C1100F69CA5 /* Tuple.swift in Sources */,
539+
D695FC3820C72C1100F69CA5 /* Application.swift in Sources */,
540+
D695FC3920C72C1100F69CA5 /* Prelude.swift in Sources */,
541+
D695FC3A20C72C1100F69CA5 /* Optional.swift in Sources */,
542+
D695FC3B20C72C1100F69CA5 /* Compose.swift in Sources */,
543+
D695FC3C20C72C1100F69CA5 /* Curry.swift in Sources */,
544+
D695FC3D20C72C1100F69CA5 /* Flip.swift in Sources */,
545+
D695FC3E20C72C1100F69CA5 /* Fix.swift in Sources */,
546+
);
547+
runOnlyForDeploymentPostprocessing = 0;
548+
};
549+
D695FC4C20C72C1F00F69CA5 /* Sources */ = {
550+
isa = PBXSourcesBuildPhase;
551+
buildActionMask = 2147483647;
552+
files = (
553+
D695FC4D20C72C1F00F69CA5 /* TupleTests.swift in Sources */,
554+
D695FC4E20C72C1F00F69CA5 /* FlipTests.swift in Sources */,
555+
D695FC4F20C72C1F00F69CA5 /* PreludeTests.swift in Sources */,
556+
D695FC5020C72C1F00F69CA5 /* CurryTests.swift in Sources */,
557+
D695FC5120C72C1F00F69CA5 /* ConjunctionTests.swift in Sources */,
558+
D695FC5220C72C1F00F69CA5 /* ApplicationTests.swift in Sources */,
559+
D695FC5320C72C1F00F69CA5 /* ComposeTests.swift in Sources */,
560+
D695FC5420C72C1F00F69CA5 /* FixTests.swift in Sources */,
561+
);
562+
runOnlyForDeploymentPostprocessing = 0;
563+
};
428564
/* End PBXSourcesBuildPhase section */
429565

430566
/* Begin PBXTargetDependency section */
@@ -438,6 +574,11 @@
438574
target = D4D33D8119FE8F8C001D051D /* Prelude-Mac */;
439575
targetProxy = D4D33D8F19FE8F8C001D051D /* PBXContainerItemProxy */;
440576
};
577+
D695FC4A20C72C1F00F69CA5 /* PBXTargetDependency */ = {
578+
isa = PBXTargetDependency;
579+
target = D4D33D8119FE8F8C001D051D /* Prelude-Mac */;
580+
targetProxy = D695FC4B20C72C1F00F69CA5 /* PBXContainerItemProxy */;
581+
};
441582
/* End PBXTargetDependency section */
442583

443584
/* Begin XCBuildConfiguration section */
@@ -679,6 +820,83 @@
679820
};
680821
name = Release;
681822
};
823+
D695FC4520C72C1100F69CA5 /* Debug */ = {
824+
isa = XCBuildConfiguration;
825+
buildSettings = {
826+
APPLICATION_EXTENSION_API_ONLY = YES;
827+
CLANG_ENABLE_MODULES = YES;
828+
COMBINE_HIDPI_IMAGES = YES;
829+
DEFINES_MODULE = YES;
830+
DYLIB_COMPATIBILITY_VERSION = 1;
831+
DYLIB_CURRENT_VERSION = 1.2;
832+
DYLIB_INSTALL_NAME_BASE = "@rpath";
833+
FRAMEWORK_VERSION = A;
834+
INFOPLIST_FILE = Prelude/Info.plist;
835+
INSTALL_PATH = "@rpath";
836+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
837+
PRODUCT_BUNDLE_IDENTIFIER = "com.antitypical.$(PRODUCT_NAME:rfc1034identifier)";
838+
PRODUCT_NAME = "$(TARGET_NAME)";
839+
SKIP_INSTALL = YES;
840+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
841+
VALID_ARCHS = x86_64;
842+
};
843+
name = Debug;
844+
};
845+
D695FC4620C72C1100F69CA5 /* Release */ = {
846+
isa = XCBuildConfiguration;
847+
buildSettings = {
848+
APPLICATION_EXTENSION_API_ONLY = YES;
849+
CLANG_ENABLE_MODULES = YES;
850+
COMBINE_HIDPI_IMAGES = YES;
851+
DEFINES_MODULE = YES;
852+
DYLIB_COMPATIBILITY_VERSION = 1;
853+
DYLIB_CURRENT_VERSION = 1.2;
854+
DYLIB_INSTALL_NAME_BASE = "@rpath";
855+
FRAMEWORK_VERSION = A;
856+
INFOPLIST_FILE = Prelude/Info.plist;
857+
INSTALL_PATH = "@rpath";
858+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
859+
PRODUCT_BUNDLE_IDENTIFIER = "com.antitypical.$(PRODUCT_NAME:rfc1034identifier)";
860+
PRODUCT_NAME = "$(TARGET_NAME)";
861+
SKIP_INSTALL = YES;
862+
VALID_ARCHS = x86_64;
863+
};
864+
name = Release;
865+
};
866+
D695FC5920C72C1F00F69CA5 /* Debug */ = {
867+
isa = XCBuildConfiguration;
868+
buildSettings = {
869+
COMBINE_HIDPI_IMAGES = YES;
870+
FRAMEWORK_SEARCH_PATHS = (
871+
"$(DEVELOPER_FRAMEWORKS_DIR)",
872+
"$(inherited)",
873+
);
874+
GCC_PREPROCESSOR_DEFINITIONS = (
875+
"DEBUG=1",
876+
"$(inherited)",
877+
);
878+
INFOPLIST_FILE = PreludeTests/Info.plist;
879+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
880+
PRODUCT_BUNDLE_IDENTIFIER = "com.antitypical.$(PRODUCT_NAME:rfc1034identifier)";
881+
PRODUCT_NAME = "$(TARGET_NAME)";
882+
};
883+
name = Debug;
884+
};
885+
D695FC5A20C72C1F00F69CA5 /* Release */ = {
886+
isa = XCBuildConfiguration;
887+
buildSettings = {
888+
COMBINE_HIDPI_IMAGES = YES;
889+
FRAMEWORK_SEARCH_PATHS = (
890+
"$(DEVELOPER_FRAMEWORKS_DIR)",
891+
"$(inherited)",
892+
);
893+
INFOPLIST_FILE = PreludeTests/Info.plist;
894+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
895+
PRODUCT_BUNDLE_IDENTIFIER = "com.antitypical.$(PRODUCT_NAME:rfc1034identifier)";
896+
PRODUCT_NAME = "$(TARGET_NAME)";
897+
};
898+
name = Release;
899+
};
682900
/* End XCBuildConfiguration section */
683901

684902
/* Begin XCConfigurationList section */
@@ -727,6 +945,24 @@
727945
defaultConfigurationIsVisible = 0;
728946
defaultConfigurationName = Release;
729947
};
948+
D695FC4420C72C1100F69CA5 /* Build configuration list for PBXNativeTarget "Prelude" */ = {
949+
isa = XCConfigurationList;
950+
buildConfigurations = (
951+
D695FC4520C72C1100F69CA5 /* Debug */,
952+
D695FC4620C72C1100F69CA5 /* Release */,
953+
);
954+
defaultConfigurationIsVisible = 0;
955+
defaultConfigurationName = Release;
956+
};
957+
D695FC5820C72C1F00F69CA5 /* Build configuration list for PBXNativeTarget "PreludeTests" */ = {
958+
isa = XCConfigurationList;
959+
buildConfigurations = (
960+
D695FC5920C72C1F00F69CA5 /* Debug */,
961+
D695FC5A20C72C1F00F69CA5 /* Release */,
962+
);
963+
defaultConfigurationIsVisible = 0;
964+
defaultConfigurationName = Release;
965+
};
730966
/* End XCConfigurationList section */
731967
};
732968
rootObject = D4D33D7919FE8F8C001D051D /* Project object */;

0 commit comments

Comments
 (0)