Skip to content

Commit

Permalink
Add precompiled header file
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Nov 15, 2012
1 parent 78df9a2 commit bdc0a93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tools/CocoaPods/CoconutKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/**/*.{h,m}', 'PublicHeaders/**/*.h'
s.resources = 'CoconutKit-resources.bundle'
s.public_header_files = 'PublicHeaders/*.h'
s.prefix_header_file = 'CoconutKit-Prefix.pch'

s.frameworks = 'CoreData', 'MessageUI', 'QuartzCore'
s.requires_arc = false
Expand Down
8 changes: 8 additions & 0 deletions Tools/CocoaPods/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ OUTPUT_DIR="$SCRIPT_FILE_DIR/Files"
PUBLIC_HEADERS_OUTPUT_DIR="$OUTPUT_DIR/PublicHeaders"
GLOBAL_HEADER_FILE="$PUBLIC_HEADERS_OUTPUT_DIR/CoconutKit.h"
PRECOMPILED_HEADER_FILE="$COCONUT_KIT_DIR/CoconutKit-Prefix.pch"
LICENSE_FILE="$MAIN_DIR/LICENSE"

# Cleanup any existing package, and create a package directory
if [ -d "$OUTPUT_DIR" ]; then
Expand Down Expand Up @@ -63,4 +64,11 @@ do
fi
done

# Copy precompiled header
cp "$PRECOMPILED_HEADER_FILE" "$OUTPUT_DIR"

# Copy license file
echo "Copying license file..."
cp "$LICENSE_FILE" "$OUTPUT_DIR"

echo "Done"

0 comments on commit bdc0a93

Please sign in to comment.