Skip to content

Commit 0892c04

Browse files
committed
Build QLStephen for only OS X 10.8 or later
1 parent cf269ed commit 0892c04

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

src/MacVim/MacVim.xcodeproj/project.pbxproj

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
1DE9B9500D341AB8008FEDD4 /* MMWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DE9B94E0D341AB8008FEDD4 /* MMWindow.m */; };
6565
1DED78600C6DE43D0079945F /* vimrc in Copy Vim Runtime Files */ = {isa = PBXBuildFile; fileRef = 1DED785F0C6DE43D0079945F /* vimrc */; };
6666
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D493DB90C52533B00AB718C /* PSMTabBarControl.framework */; };
67-
52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */ = {isa = PBXBuildFile; fileRef = 52818AFF1C1C075300F59085 /* QLStephen.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
6867
8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; };
6968
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
7069
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
@@ -93,13 +92,6 @@
9392
remoteGlobalIDString = 8D576316048677EA00EA77CD;
9493
remoteInfo = QuickLookStephen;
9594
};
96-
52818B001C1C084100F59085 /* PBXContainerItemProxy */ = {
97-
isa = PBXContainerItemProxy;
98-
containerPortal = 52818AFA1C1C075300F59085 /* QuickLookStephen.xcodeproj */;
99-
proxyType = 1;
100-
remoteGlobalIDString = 8D57630D048677EA00EA77CD;
101-
remoteInfo = QuickLookStephen;
102-
};
10395
/* End PBXContainerItemProxy section */
10496

10597
/* Begin PBXCopyFilesBuildPhase section */
@@ -138,17 +130,6 @@
138130
name = "Copy Vim Runtime Files";
139131
runOnlyForDeploymentPostprocessing = 0;
140132
};
141-
52818B021C1C088000F59085 /* Copy QuickLookPlugin */ = {
142-
isa = PBXCopyFilesBuildPhase;
143-
buildActionMask = 2147483647;
144-
dstPath = ../Library/QuickLook;
145-
dstSubfolderSpec = 6;
146-
files = (
147-
52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */,
148-
);
149-
name = "Copy QuickLookPlugin";
150-
runOnlyForDeploymentPostprocessing = 0;
151-
};
152133
/* End PBXCopyFilesBuildPhase section */
153134

154135
/* Begin PBXFileReference section */
@@ -457,15 +438,14 @@
457438
8D11072E0486CEB800E47090 /* Frameworks */,
458439
1D0DCAD80BA3604D00B6CCFA /* Copy Executables */,
459440
1D9EB2840C366D7B0074B739 /* Copy Frameworks */,
460-
52818B021C1C088000F59085 /* Copy QuickLookPlugin */,
461441
1DE608B80C58807F0055263D /* Copy Vim Runtime Files */,
462442
1D1C31F00EFFBFD6003FE9A5 /* Make Document Icons */,
443+
520E0E2B1C2FBAF300949DD8 /* ShellScript */,
463444
);
464445
buildRules = (
465446
);
466447
dependencies = (
467448
1D493DCD0C5254A400AB718C /* PBXTargetDependency */,
468-
52818B011C1C084100F59085 /* PBXTargetDependency */,
469449
);
470450
name = MacVim;
471451
productInstallPath = "$(HOME)/Applications";
@@ -588,6 +568,19 @@
588568
shellScript = "# Clear deployment target, else the python script always thinks we're building on Tiger\nunset MACOSX_DEPLOYMENT_TARGET\n\n# Generate the icons (redirect stderr to ignore warnings)\ncd \"$PROJECT_DIR\"/icons/\nmake OUTDIR=\"$TARGET_BUILD_DIR\"/$UNLOCALIZED_RESOURCES_FOLDER_PATH 2> /dev/null\n";
589569
showEnvVarsInLog = 0;
590570
};
571+
520E0E2B1C2FBAF300949DD8 /* ShellScript */ = {
572+
isa = PBXShellScriptBuildPhase;
573+
buildActionMask = 2147483647;
574+
files = (
575+
);
576+
inputPaths = (
577+
);
578+
outputPaths = (
579+
);
580+
runOnlyForDeploymentPostprocessing = 0;
581+
shellPath = /bin/sh;
582+
shellScript = "OSX_MINOR_VERSION=`/usr/bin/sw_vers -productVersion|cut -f2 -d'.'`\nif [ $OSX_MINOR_VERSION -ge 8 ]; then\n xcodebuild -project qlstephen/QuickLookStephen.xcodeproj\n mkdir -p $CONTENTS_FOLDER_PATH/Library/QuickLook\n cp -pr qlstephen/build/Release/QLStephen.qlgenerator $CONTENTS_FOLDER_PATH/Library/QuickLook\nfi";
583+
};
591584
/* End PBXShellScriptBuildPhase section */
592585

593586
/* Begin PBXSourcesBuildPhase section */
@@ -625,11 +618,6 @@
625618
name = PSMTabBarControlFramework;
626619
targetProxy = 1D493DCC0C5254A400AB718C /* PBXContainerItemProxy */;
627620
};
628-
52818B011C1C084100F59085 /* PBXTargetDependency */ = {
629-
isa = PBXTargetDependency;
630-
name = QuickLookStephen;
631-
targetProxy = 52818B001C1C084100F59085 /* PBXContainerItemProxy */;
632-
};
633621
/* End PBXTargetDependency section */
634622

635623
/* Begin PBXVariantGroup section */

0 commit comments

Comments
 (0)