From 0892c04abaa13823337367eca686e49a05aab568 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Sat, 26 Dec 2015 23:07:36 -0800 Subject: [PATCH] Build QLStephen for only OS X 10.8 or later --- src/MacVim/MacVim.xcodeproj/project.pbxproj | 40 ++++++++------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/src/MacVim/MacVim.xcodeproj/project.pbxproj b/src/MacVim/MacVim.xcodeproj/project.pbxproj index 7477166b4b..79935789c4 100644 --- a/src/MacVim/MacVim.xcodeproj/project.pbxproj +++ b/src/MacVim/MacVim.xcodeproj/project.pbxproj @@ -64,7 +64,6 @@ 1DE9B9500D341AB8008FEDD4 /* MMWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DE9B94E0D341AB8008FEDD4 /* MMWindow.m */; }; 1DED78600C6DE43D0079945F /* vimrc in Copy Vim Runtime Files */ = {isa = PBXBuildFile; fileRef = 1DED785F0C6DE43D0079945F /* vimrc */; }; 1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D493DB90C52533B00AB718C /* PSMTabBarControl.framework */; }; - 52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */ = {isa = PBXBuildFile; fileRef = 52818AFF1C1C075300F59085 /* QLStephen.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; @@ -93,13 +92,6 @@ remoteGlobalIDString = 8D576316048677EA00EA77CD; remoteInfo = QuickLookStephen; }; - 52818B001C1C084100F59085 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 52818AFA1C1C075300F59085 /* QuickLookStephen.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 8D57630D048677EA00EA77CD; - remoteInfo = QuickLookStephen; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -138,17 +130,6 @@ name = "Copy Vim Runtime Files"; runOnlyForDeploymentPostprocessing = 0; }; - 52818B021C1C088000F59085 /* Copy QuickLookPlugin */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ../Library/QuickLook; - dstSubfolderSpec = 6; - files = ( - 52818B031C1C08CE00F59085 /* QLStephen.qlgenerator in Copy QuickLookPlugin */, - ); - name = "Copy QuickLookPlugin"; - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -457,15 +438,14 @@ 8D11072E0486CEB800E47090 /* Frameworks */, 1D0DCAD80BA3604D00B6CCFA /* Copy Executables */, 1D9EB2840C366D7B0074B739 /* Copy Frameworks */, - 52818B021C1C088000F59085 /* Copy QuickLookPlugin */, 1DE608B80C58807F0055263D /* Copy Vim Runtime Files */, 1D1C31F00EFFBFD6003FE9A5 /* Make Document Icons */, + 520E0E2B1C2FBAF300949DD8 /* ShellScript */, ); buildRules = ( ); dependencies = ( 1D493DCD0C5254A400AB718C /* PBXTargetDependency */, - 52818B011C1C084100F59085 /* PBXTargetDependency */, ); name = MacVim; productInstallPath = "$(HOME)/Applications"; @@ -588,6 +568,19 @@ 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"; showEnvVarsInLog = 0; }; + 520E0E2B1C2FBAF300949DD8 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -625,11 +618,6 @@ name = PSMTabBarControlFramework; targetProxy = 1D493DCC0C5254A400AB718C /* PBXContainerItemProxy */; }; - 52818B011C1C084100F59085 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = QuickLookStephen; - targetProxy = 52818B001C1C084100F59085 /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */