소스 검색

Convert to using a library

Sam Jaffe 7 년 전
부모
커밋
de206dd77f
1개의 변경된 파일115개의 추가작업 그리고 14개의 파일을 삭제
  1. 115 14
      dice-roll.xcodeproj/project.pbxproj

+ 115 - 14
dice-roll.xcodeproj/project.pbxproj

@@ -7,12 +7,23 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		CD8F1ABE21B31E9E00CBB3CA /* roll.cxx in Sources */ = {isa = PBXBuildFile; fileRef = CD8F1ABD21B31E9E00CBB3CA /* roll.cxx */; };
+		CD38F50D21C83926007A732C /* die.cxx in Sources */ = {isa = PBXBuildFile; fileRef = CDED6A3021B2F2DC00AB91D0 /* die.cxx */; };
+		CD38F50E21C83929007A732C /* roll.cxx in Sources */ = {isa = PBXBuildFile; fileRef = CD8F1ABD21B31E9E00CBB3CA /* roll.cxx */; };
+		CD38F50F21C83936007A732C /* libdice.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CD38F50921C83912007A732C /* libdice.dylib */; };
+		CD38F51221C8397A007A732C /* libshared_random_generator.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDED6A6021B2F89900AB91D0 /* libshared_random_generator.dylib */; };
 		CDED6A2721B2F28A00AB91D0 /* main.cxx in Sources */ = {isa = PBXBuildFile; fileRef = CDED6A2621B2F28A00AB91D0 /* main.cxx */; };
-		CDED6A3121B2F2DC00AB91D0 /* die.cxx in Sources */ = {isa = PBXBuildFile; fileRef = CDED6A3021B2F2DC00AB91D0 /* die.cxx */; };
-		CDED6A6121B2F89900AB91D0 /* libshared_random_generator.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CDED6A6021B2F89900AB91D0 /* libshared_random_generator.dylib */; };
 /* End PBXBuildFile section */
 
+/* Begin PBXContainerItemProxy section */
+		CD38F51021C83950007A732C /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = CDED6A1B21B2F28A00AB91D0 /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = CD38F50821C83912007A732C;
+			remoteInfo = dice;
+		};
+/* End PBXContainerItemProxy section */
+
 /* Begin PBXCopyFilesBuildPhase section */
 		CDED6A2121B2F28A00AB91D0 /* CopyFiles */ = {
 			isa = PBXCopyFilesBuildPhase;
@@ -26,9 +37,10 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
+		CD38F50921C83912007A732C /* libdice.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libdice.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
 		CD8F1ABC21B31E9E00CBB3CA /* roll.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = roll.h; sourceTree = "<group>"; };
 		CD8F1ABD21B31E9E00CBB3CA /* roll.cxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = roll.cxx; sourceTree = "<group>"; };
-		CDED6A2321B2F28A00AB91D0 /* dice-roll */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "dice-roll"; sourceTree = BUILT_PRODUCTS_DIR; };
+		CDED6A2321B2F28A00AB91D0 /* simple_dice */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = simple_dice; sourceTree = BUILT_PRODUCTS_DIR; };
 		CDED6A2621B2F28A00AB91D0 /* main.cxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cxx; sourceTree = "<group>"; };
 		CDED6A2F21B2F2DC00AB91D0 /* die.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = die.h; sourceTree = "<group>"; };
 		CDED6A3021B2F2DC00AB91D0 /* die.cxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = die.cxx; sourceTree = "<group>"; };
@@ -38,11 +50,19 @@
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
+		CD38F50721C83912007A732C /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				CD38F51221C8397A007A732C /* libshared_random_generator.dylib in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		CDED6A2021B2F28A00AB91D0 /* Frameworks */ = {
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				CDED6A6121B2F89900AB91D0 /* libshared_random_generator.dylib in Frameworks */,
+				CD38F50F21C83936007A732C /* libdice.dylib in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -63,7 +83,8 @@
 		CDED6A2421B2F28A00AB91D0 /* Products */ = {
 			isa = PBXGroup;
 			children = (
-				CDED6A2321B2F28A00AB91D0 /* dice-roll */,
+				CDED6A2321B2F28A00AB91D0 /* simple_dice */,
+				CD38F50921C83912007A732C /* libdice.dylib */,
 			);
 			name = Products;
 			sourceTree = "<group>";
@@ -106,10 +127,37 @@
 		};
 /* End PBXGroup section */
 
+/* Begin PBXHeadersBuildPhase section */
+		CD38F50521C83912007A732C /* Headers */ = {
+			isa = PBXHeadersBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXHeadersBuildPhase section */
+
 /* Begin PBXNativeTarget section */
-		CDED6A2221B2F28A00AB91D0 /* dice-roll */ = {
+		CD38F50821C83912007A732C /* dice */ = {
 			isa = PBXNativeTarget;
-			buildConfigurationList = CDED6A2A21B2F28A00AB91D0 /* Build configuration list for PBXNativeTarget "dice-roll" */;
+			buildConfigurationList = CD38F50A21C83912007A732C /* Build configuration list for PBXNativeTarget "dice" */;
+			buildPhases = (
+				CD38F50521C83912007A732C /* Headers */,
+				CD38F50621C83912007A732C /* Sources */,
+				CD38F50721C83912007A732C /* Frameworks */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = dice;
+			productName = dice;
+			productReference = CD38F50921C83912007A732C /* libdice.dylib */;
+			productType = "com.apple.product-type.library.dynamic";
+		};
+		CDED6A2221B2F28A00AB91D0 /* simple_dice */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = CDED6A2A21B2F28A00AB91D0 /* Build configuration list for PBXNativeTarget "simple_dice" */;
 			buildPhases = (
 				CDED6A1F21B2F28A00AB91D0 /* Sources */,
 				CDED6A2021B2F28A00AB91D0 /* Frameworks */,
@@ -118,10 +166,11 @@
 			buildRules = (
 			);
 			dependencies = (
+				CD38F51121C83950007A732C /* PBXTargetDependency */,
 			);
-			name = "dice-roll";
+			name = simple_dice;
 			productName = "dice-roll";
-			productReference = CDED6A2321B2F28A00AB91D0 /* dice-roll */;
+			productReference = CDED6A2321B2F28A00AB91D0 /* simple_dice */;
 			productType = "com.apple.product-type.tool";
 		};
 /* End PBXNativeTarget section */
@@ -133,6 +182,9 @@
 				LastUpgradeCheck = 1010;
 				ORGANIZATIONNAME = "Sam Jaffe";
 				TargetAttributes = {
+					CD38F50821C83912007A732C = {
+						CreatedOnToolsVersion = 10.1;
+					};
 					CDED6A2221B2F28A00AB91D0 = {
 						CreatedOnToolsVersion = 10.1;
 					};
@@ -150,25 +202,65 @@
 			projectDirPath = "";
 			projectRoot = "";
 			targets = (
-				CDED6A2221B2F28A00AB91D0 /* dice-roll */,
+				CDED6A2221B2F28A00AB91D0 /* simple_dice */,
+				CD38F50821C83912007A732C /* dice */,
 			);
 		};
 /* End PBXProject section */
 
 /* Begin PBXSourcesBuildPhase section */
+		CD38F50621C83912007A732C /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				CD38F50E21C83929007A732C /* roll.cxx in Sources */,
+				CD38F50D21C83926007A732C /* die.cxx in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		CDED6A1F21B2F28A00AB91D0 /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				CDED6A3121B2F2DC00AB91D0 /* die.cxx in Sources */,
 				CDED6A2721B2F28A00AB91D0 /* main.cxx in Sources */,
-				CD8F1ABE21B31E9E00CBB3CA /* roll.cxx in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 /* End PBXSourcesBuildPhase section */
 
+/* Begin PBXTargetDependency section */
+		CD38F51121C83950007A732C /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = CD38F50821C83912007A732C /* dice */;
+			targetProxy = CD38F51021C83950007A732C /* PBXContainerItemProxy */;
+		};
+/* End PBXTargetDependency section */
+
 /* Begin XCBuildConfiguration section */
+		CD38F50B21C83912007A732C /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_STYLE = Automatic;
+				DYLIB_COMPATIBILITY_VERSION = 1;
+				DYLIB_CURRENT_VERSION = 1;
+				EXECUTABLE_PREFIX = lib;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SKIP_INSTALL = YES;
+			};
+			name = Debug;
+		};
+		CD38F50C21C83912007A732C /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CODE_SIGN_STYLE = Automatic;
+				DYLIB_COMPATIBILITY_VERSION = 1;
+				DYLIB_CURRENT_VERSION = 1;
+				EXECUTABLE_PREFIX = lib;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SKIP_INSTALL = YES;
+			};
+			name = Release;
+		};
 		CDED6A2821B2F28A00AB91D0 /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
@@ -309,6 +401,15 @@
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
+		CD38F50A21C83912007A732C /* Build configuration list for PBXNativeTarget "dice" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				CD38F50B21C83912007A732C /* Debug */,
+				CD38F50C21C83912007A732C /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
 		CDED6A1E21B2F28A00AB91D0 /* Build configuration list for PBXProject "dice-roll" */ = {
 			isa = XCConfigurationList;
 			buildConfigurations = (
@@ -318,7 +419,7 @@
 			defaultConfigurationIsVisible = 0;
 			defaultConfigurationName = Release;
 		};
-		CDED6A2A21B2F28A00AB91D0 /* Build configuration list for PBXNativeTarget "dice-roll" */ = {
+		CDED6A2A21B2F28A00AB91D0 /* Build configuration list for PBXNativeTarget "simple_dice" */ = {
 			isa = XCConfigurationList;
 			buildConfigurations = (
 				CDED6A2B21B2F28A00AB91D0 /* Debug */,