Skip to content

Commit

Permalink
Make cmd tool a lot fancier and embed relocator
Browse files Browse the repository at this point in the history
  • Loading branch information
mologie committed Jul 20, 2018
1 parent 556c2c2 commit 381696b
Show file tree
Hide file tree
Showing 5 changed files with 431 additions and 53 deletions.
101 changes: 99 additions & 2 deletions NXBoot.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
A78865E520FAAF6A00ECA2B2 /* AssetsLegacy.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A78865E420FAAF6A00ECA2B2 /* AssetsLegacy.xcassets */; };
A78BBEC920EE30F4007C3514 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A78BBEC820EE30F4007C3514 /* IOKit.framework */; };
A78D523520F343EC0045FC4F /* AboutScreenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A78D523420F343EC0045FC4F /* AboutScreenViewController.m */; };
A795B6BC21015F970008820F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A718F2302100CD1C009BD181 /* main.m */; };
A795B6BD21015FD30008820F /* libNXBootKit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A718F21C2100CBB7009BD181 /* libNXBootKit.a */; };
A795B6BE21015FD80008820F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A718F2332100CDC1009BD181 /* IOKit.framework */; };
A7999ECA20F5761B00F659EB /* PackageIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = A7999EC920F5761B00F659EB /* PackageIcon.png */; };
A7AD2A1120F63A3500D1A400 /* libMobileGestalt.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A7AD2A1020F63A3500D1A400 /* libMobileGestalt.tbd */; };
A7B7E1FD20EE738300F39094 /* BootProfilesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A7B7E1FC20EE738300F39094 /* BootProfilesViewController.m */; };
Expand All @@ -68,6 +71,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A795B6B321015F880008820F /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -107,6 +119,7 @@
A78BBEC820EE30F4007C3514 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; };
A78D523320F343EC0045FC4F /* AboutScreenViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AboutScreenViewController.h; sourceTree = "<group>"; };
A78D523420F343EC0045FC4F /* AboutScreenViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AboutScreenViewController.m; sourceTree = "<group>"; };
A795B6B521015F880008820F /* nxboot */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = nxboot; sourceTree = BUILT_PRODUCTS_DIR; };
A7999EC920F5761B00F659EB /* PackageIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PackageIcon.png; sourceTree = "<group>"; };
A7AD2A1020F63A3500D1A400 /* libMobileGestalt.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libMobileGestalt.tbd; path = usr/lib/libMobileGestalt.tbd; sourceTree = SDKROOT; };
A7B494EB20FAA4000006E028 /* NXBootLegacy.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NXBootLegacy.entitlements; sourceTree = "<group>"; };
Expand Down Expand Up @@ -154,6 +167,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A795B6B221015F880008820F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A795B6BE21015FD80008820F /* IOKit.framework in Frameworks */,
A795B6BD21015FD30008820F /* libNXBootKit.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A7FDBE1120EE27DD00E59587 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -280,10 +302,10 @@
isa = PBXGroup;
children = (
A7FDBE2D20EE2A1700E59587 /* Frameworks */,
A7FDBE1620EE27DD00E59587 /* NXBoot */,
A718F22F2100CD1C009BD181 /* NXBootCmd */,
A73FDCE420FA9C5C007EBF4F /* NXBootKit */,
A7FDBE1620EE27DD00E59587 /* NXBoot */,
A73FDD1720FA9FBC007EBF4F /* NXBootLegacy */,
A718F22F2100CD1C009BD181 /* NXBootCmd */,
422DE3698D5FA49548658B9F /* Pods */,
A7FDBE1520EE27DD00E59587 /* Products */,
);
Expand All @@ -296,6 +318,7 @@
A73FDCE320FA9C5C007EBF4F /* libNXBootKit.a */,
A73FDD1520FA9F5A007EBF4F /* NXBootLegacy.app */,
A718F21C2100CBB7009BD181 /* libNXBootKit.a */,
A795B6B521015F880008820F /* nxboot */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -399,6 +422,23 @@
productReference = A73FDD1520FA9F5A007EBF4F /* NXBootLegacy.app */;
productType = "com.apple.product-type.application";
};
A795B6B421015F880008820F /* NXBootCmdMac */ = {
isa = PBXNativeTarget;
buildConfigurationList = A795B6BB21015F880008820F /* Build configuration list for PBXNativeTarget "NXBootCmdMac" */;
buildPhases = (
A795B6B121015F880008820F /* Sources */,
A795B6B221015F880008820F /* Frameworks */,
A795B6B321015F880008820F /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = NXBootCmdMac;
productName = NXBootCmd;
productReference = A795B6B521015F880008820F /* nxboot */;
productType = "com.apple.product-type.tool";
};
A7FDBE1320EE27DD00E59587 /* NXBoot */ = {
isa = PBXNativeTarget;
buildConfigurationList = A7FDBE2A20EE27DE00E59587 /* Build configuration list for PBXNativeTarget "NXBoot" */;
Expand Down Expand Up @@ -439,6 +479,9 @@
};
};
};
A795B6B421015F880008820F = {
CreatedOnToolsVersion = 9.4.1;
};
A7FDBE1320EE27DD00E59587 = {
CreatedOnToolsVersion = 9.4.1;
SystemCapabilities = {
Expand Down Expand Up @@ -466,6 +509,7 @@
A73FDCF920FA9F5A007EBF4F /* NXBootLegacy */,
A73FDCE220FA9C5C007EBF4F /* NXBootKit */,
A718F21B2100CBB7009BD181 /* NXBootKitMac */,
A795B6B421015F880008820F /* NXBootCmdMac */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -562,6 +606,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A795B6B121015F880008820F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A795B6BC21015F970008820F /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A7FDBE1020EE27DD00E59587 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -722,6 +774,42 @@
};
name = Release;
};
A795B6B921015F880008820F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"NXBOOT_VERSION=\\\"PLACEHOLDER\\\"",
"NXBOOT_BUILDNO=0",
"DEBUG=1",
"$(inherited)",
);
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = nxboot;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
};
name = Debug;
};
A795B6BA21015F880008820F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"NXBOOT_VERSION=\\\"PLACEHOLDER\\\"",
"NXBOOT_BUILDNO=0",
);
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_NAME = nxboot;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
};
name = Release;
};
A7FDBE2820EE27DE00E59587 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -916,6 +1004,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A795B6BB21015F880008820F /* Build configuration list for PBXNativeTarget "NXBootCmdMac" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A795B6B921015F880008820F /* Debug */,
A795B6BA21015F880008820F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A7FDBE0F20EE27DD00E59587 /* Build configuration list for PBXProject "NXBoot" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
91 changes: 91 additions & 0 deletions NXBoot.xcodeproj/xcshareddata/xcschemes/NXBootCmdMac.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A795B6B421015F880008820F"
BuildableName = "nxboot"
BlueprintName = "NXBootCmdMac"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A795B6B421015F880008820F"
BuildableName = "nxboot"
BlueprintName = "NXBootCmdMac"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A795B6B421015F880008820F"
BuildableName = "nxboot"
BlueprintName = "NXBootCmdMac"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A795B6B421015F880008820F"
BuildableName = "nxboot"
BlueprintName = "NXBootCmdMac"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
103 changes: 103 additions & 0 deletions NXBoot.xcodeproj/xcshareddata/xcschemes/NXBootKitAll.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A73FDCE220FA9C5C007EBF4F"
BuildableName = "libNXBootKit.a"
BlueprintName = "NXBootKit"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A718F21B2100CBB7009BD181"
BuildableName = "libNXBootKit.a"
BlueprintName = "NXBootKitMac"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A73FDCE220FA9C5C007EBF4F"
BuildableName = "libNXBootKit.a"
BlueprintName = "NXBootKit"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A73FDCE220FA9C5C007EBF4F"
BuildableName = "libNXBootKit.a"
BlueprintName = "NXBootKit"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A73FDCE220FA9C5C007EBF4F"
BuildableName = "libNXBootKit.a"
BlueprintName = "NXBootKit"
ReferencedContainer = "container:NXBoot.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit 381696b

Please sign in to comment.