Browse Source

Also allow skipping of dSYM generation for external project.
This should make incremental build using Debug configuration much faster during development.

Yao Wei Tjong 姚伟忠 11 years ago
parent
commit
85b1095fdf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cmake_macosx.sh

+ 2 - 2
cmake_macosx.sh

@@ -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: