Sfoglia il codice sorgente

added a target to build universalize bin

Kevin Bradley 3 anni fa
parent
commit
c7edeedf19
2 ha cambiato i file con 129 aggiunte e 0 eliminazioni
  1. 105 0
      bootstrapTool.xcodeproj/project.pbxproj
  2. 24 0
      univerisalize/main.m

+ 105 - 0
bootstrapTool.xcodeproj/project.pbxproj

@@ -16,6 +16,8 @@
 		325A24C020E83F97001D1BAD /* NSString+Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 325A24B420E83EF8001D1BAD /* NSString+Additions.m */; };
 		325A24C120E83FCA001D1BAD /* InputPackageFIle.m in Sources */ = {isa = PBXBuildFile; fileRef = 325A24B820E83EF8001D1BAD /* InputPackageFIle.m */; };
 		32B2C838236BC8270085F065 /* Universalize.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B2C837236BC8270085F065 /* Universalize.m */; };
+		4C56B59D29E670DD00D47844 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C56B59C29E670DD00D47844 /* main.m */; };
+		4C56B5A129E670F000D47844 /* Universalize.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B2C837236BC8270085F065 /* Universalize.m */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXCopyFilesBuildPhase section */
@@ -28,6 +30,15 @@
 			);
 			runOnlyForDeploymentPostprocessing = 1;
 		};
+		4C56B59829E670DD00D47844 /* CopyFiles */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = /usr/share/man/man1/;
+			dstSubfolderSpec = 0;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 1;
+		};
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
@@ -50,6 +61,8 @@
 		325A24C220E84033001D1BAD /* Defines.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = Defines.h; path = Classes/Defines.h; sourceTree = "<group>"; };
 		32B2C837236BC8270085F065 /* Universalize.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Universalize.m; sourceTree = "<group>"; };
 		32B2C839236D1BD40085F065 /* Universalize.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Universalize.h; sourceTree = "<group>"; };
+		4C56B59A29E670DD00D47844 /* universalize */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = universalize; sourceTree = BUILT_PRODUCTS_DIR; };
+		4C56B59C29E670DD00D47844 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -60,6 +73,13 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		4C56B59729E670DD00D47844 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXFrameworksBuildPhase section */
 
 /* Begin PBXGroup section */
@@ -67,6 +87,7 @@
 			isa = PBXGroup;
 			children = (
 				3249302920E4E29700E99767 /* bootstrapTool */,
+				4C56B59B29E670DD00D47844 /* univerisalize */,
 				3249302820E4E29700E99767 /* Products */,
 			);
 			sourceTree = "<group>";
@@ -75,6 +96,7 @@
 			isa = PBXGroup;
 			children = (
 				3249302720E4E29700E99767 /* bootstrapTool */,
+				4C56B59A29E670DD00D47844 /* universalize */,
 			);
 			name = Products;
 			sourceTree = "<group>";
@@ -112,6 +134,14 @@
 			path = Classes;
 			sourceTree = "<group>";
 		};
+		4C56B59B29E670DD00D47844 /* univerisalize */ = {
+			isa = PBXGroup;
+			children = (
+				4C56B59C29E670DD00D47844 /* main.m */,
+			);
+			path = univerisalize;
+			sourceTree = "<group>";
+		};
 /* End PBXGroup section */
 
 /* Begin PBXNativeTarget section */
@@ -132,6 +162,23 @@
 			productReference = 3249302720E4E29700E99767 /* bootstrapTool */;
 			productType = "com.apple.product-type.tool";
 		};
+		4C56B59929E670DD00D47844 /* universalize */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 4C56B5A029E670DD00D47844 /* Build configuration list for PBXNativeTarget "universalize" */;
+			buildPhases = (
+				4C56B59629E670DD00D47844 /* Sources */,
+				4C56B59729E670DD00D47844 /* Frameworks */,
+				4C56B59829E670DD00D47844 /* CopyFiles */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = universalize;
+			productName = univerisalize;
+			productReference = 4C56B59A29E670DD00D47844 /* universalize */;
+			productType = "com.apple.product-type.tool";
+		};
 /* End PBXNativeTarget section */
 
 /* Begin PBXProject section */
@@ -145,6 +192,10 @@
 						CreatedOnToolsVersion = 9.0;
 						ProvisioningStyle = Automatic;
 					};
+					4C56B59929E670DD00D47844 = {
+						CreatedOnToolsVersion = 14.2;
+						ProvisioningStyle = Automatic;
+					};
 				};
 			};
 			buildConfigurationList = 3249302220E4E29700E99767 /* Build configuration list for PBXProject "bootstrapTool" */;
@@ -160,6 +211,7 @@
 			projectRoot = "";
 			targets = (
 				3249302620E4E29700E99767 /* bootstrapTool */,
+				4C56B59929E670DD00D47844 /* universalize */,
 			);
 		};
 /* End PBXProject section */
@@ -181,6 +233,15 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		4C56B59629E670DD00D47844 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				4C56B5A129E670F000D47844 /* Universalize.m in Sources */,
+				4C56B59D29E670DD00D47844 /* main.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXSourcesBuildPhase section */
 
 /* Begin XCBuildConfiguration section */
@@ -311,6 +372,41 @@
 			};
 			name = Release;
 		};
+		4C56B59E29E670DD00D47844 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CODE_SIGN_STYLE = Automatic;
+				DEVELOPMENT_TEAM = 9EUFEA5U7G;
+				ENABLE_HARDENED_RUNTIME = YES;
+				MACOSX_DEPLOYMENT_TARGET = 12.6;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Debug;
+		};
+		4C56B59F29E670DD00D47844 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CODE_SIGN_STYLE = Automatic;
+				DEVELOPMENT_TEAM = 9EUFEA5U7G;
+				ENABLE_HARDENED_RUNTIME = YES;
+				MACOSX_DEPLOYMENT_TARGET = 12.6;
+				MTL_FAST_MATH = YES;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+			};
+			name = Release;
+		};
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
@@ -332,6 +428,15 @@
 			defaultConfigurationIsVisible = 0;
 			defaultConfigurationName = Release;
 		};
+		4C56B5A029E670DD00D47844 /* Build configuration list for PBXNativeTarget "universalize" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				4C56B59E29E670DD00D47844 /* Debug */,
+				4C56B59F29E670DD00D47844 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
 /* End XCConfigurationList section */
 	};
 	rootObject = 3249301F20E4E29700E99767 /* Project object */;

+ 24 - 0
univerisalize/main.m

@@ -0,0 +1,24 @@
+//
+//  main.m
+//  univerisalize
+//
+//  Created by Kevin Bradley on 4/12/23.
+//  Copyright © 2023 nito. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "Universalize.h"
+
+int main(int argc, const char * argv[]) {
+    @autoreleasepool {
+        // insert code here...
+        NSLog(@"agc: %i", argc);
+        if (argc > 1) {
+            NSString *file = [NSString stringWithUTF8String:argv[1]];
+            NSLog(@"file: %@", file);
+            [Universalize universalize:file];
+            
+        }
+    }
+    return 0;
+}