forked from adobe/brackets-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-xcode.sh
More file actions
20 lines (16 loc) · 1.28 KB
/
fix-xcode.sh
File metadata and controls
20 lines (16 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Fix up paths
sed 's:exec mac/:exec tools/:' appshell.xcodeproj/project.pbxproj > tmp_pbxproj.txt
mv tmp_pbxproj.txt appshell.xcodeproj/project.pbxproj
sed 's:SYMROOT = \([^\;]*\);:SYMROOT = xcodebuild;:' appshell.xcodeproj/project.pbxproj > tmp_pbxproj.txt
mv tmp_pbxproj.txt appshell.xcodeproj/project.pbxproj
# Included chromium .gypi files set SDK to 10.7 in a couple places. Replace with empty string
# to use default SDK
sed 's:macosx10.7:"":' appshell.xcodeproj/project.pbxproj > tmp_pbxproj.txt
mv tmp_pbxproj.txt appshell.xcodeproj/project.pbxproj
# XCode is complaining about the "All" target not being optimized for multi-resolution images.
# I couldn't find a clean way to fix that in the .gyp file, so it is hard-coded here.
sed 's:PRODUCT_NAME = All;:PRODUCT_NAME = All; COMBINE_HIDPI_IMAGES = YES;:' appshell.xcodeproj/project.pbxproj > tmp_pbxproj.txt
mv tmp_pbxproj.txt appshell.xcodeproj/project.pbxproj
# fix naming issues with CEF
cat appshell.xcodeproj/project.pbxproj | sed 's/$(CONFIGURATION)\/Chromium Embedded Framework.framework/$(CONFIGURATION)/' | sed 's/lastKnownFileType = text; name = \"Chromium Embedded Framework\"/explicitFileType = \"compiled.mach-o.dylib\"; name = \"Chromium Embedded Framework\"/' > tmp_pbxproj.txt
mv tmp_pbxproj.txt appshell.xcodeproj/project.pbxproj