Permalink
Browse files

Use CLITool+InfoPlist Xcode plugin to process the Info.plist

  • Loading branch information...
1 parent 68e93d6 commit 2894608a31abcb2a5310fe6631b3ed4bb6d069e6 @0xced committed Oct 29, 2010
Showing with 26 additions and 11 deletions.
  1. +5 −5 Info.plist
  2. +21 −6 pdfrasterize.xcodeproj/project.pbxproj
View
@@ -5,16 +5,16 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
- <string>pdfrasterize</string>
+ <string>${EXECUTABLE_NAME}</string>
<key>CFBundleName</key>
- <string>pdfrasterize</string>
+ <string>${PRODUCT_NAME}</string>
<key>CFBundleIdentifier</key>
- <string>ch.pitaya.pdfrasterize</string>
+ <string>ch.pitaya.${PRODUCT_NAME:identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleVersion</key>
- <string>1.0</string>
+ <string>${CURRENT_PROJECT_VERSION}</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>${CURRENT_PROJECT_VERSION}</string>
</dict>
</plist>
@@ -157,6 +157,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "pdfrasterize" */;
buildPhases = (
+ DAE54BAF1278654E0022362C /* Check CLITool+InfoPlist */,
8DD76F990486AA7600D96B5E /* Sources */,
8DD76F9B0486AA7600D96B5E /* Frameworks */,
8DD76F9E0486AA7600D96B5E /* CopyFiles */,
@@ -219,6 +220,24 @@
};
/* End PBXReferenceProxy section */
+/* Begin PBXShellScriptBuildPhase section */
+ DAE54BAF1278654E0022362C /* Check CLITool+InfoPlist */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Check CLITool+InfoPlist";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "if [ -z \"$CLITOOL_INFOPLIST\" ]; then\n\techo \"error: CLITool+InfoPlist Xcode plugin is not installed, get it at http://github.com/0xced/CLITool-InfoPlist\"\n\texit 1\nfi\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
8DD76F990486AA7600D96B5E /* Sources */ = {
isa = PBXSourcesBuildPhase;
@@ -254,12 +273,6 @@
GCC_PREFIX_HEADER = pdfrasterize_Prefix.pch;
HEADER_SEARCH_PATHS = "ddcli-1.0/lib";
INSTALL_PATH = /bin;
- OTHER_LDFLAGS = (
- "-sectcreate",
- __TEXT,
- __info_plist,
- "$(INFOPLIST_FILE)",
- );
PRODUCT_NAME = pdfrasterize;
};
name = Debug;
@@ -288,6 +301,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ CURRENT_PROJECT_VERSION = 1.0;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -305,6 +319,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ CURRENT_PROJECT_VERSION = 1.0;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;

0 comments on commit 2894608

Please sign in to comment.