Also allow skipping of dSYM generation for external project.

This should make incremental build using Debug configuration much faster during development.
This commit is contained in:
Yao Wei Tjong 姚伟忠 2014-07-21 20:11:40 +08:00
Родитель f8b1b2cc24
Коммит 85b1095fdf
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -52,8 +52,8 @@ if [ "$1" == "-DIOS=1" -a -e $BUILD/CMakeScripts/install_postBuildPhase.makeDebu
fi
# Set Xcode build settings to skip dSYM file generation for Debug configuration (other configurations still use the default dwarf-with-dsym)
if [ "$1" == "-DIOS=1" -a $(perl -v >/dev/null 2>&1) -e $BUILD/Urho3D.xcodeproj/project.pbxproj ]; then
perl -i -pe 'BEGIN { $/ = undef; } s/(Begin XCBuildConfiguration.*?Debug.*?Settings = {\n)/\1DEBUG_INFORMATION_FORMAT = dwarf;\n/s' $BUILD/Urho3D.xcodeproj/project.pbxproj
if [ "$1" == "-DIOS=1" -a $(perl -v >/dev/null 2>&1) -e $BUILD/*.xcodeproj/project.pbxproj ]; then
perl -i -pe 'BEGIN { $/ = undef; } s/(Begin XCBuildConfiguration.*?Debug.*?Settings = {\n)/\1DEBUG_INFORMATION_FORMAT = dwarf;\n/s' $BUILD/*.xcodeproj/project.pbxproj
fi
# vi: set ts=4 sw=4 expandtab: