|
@@ -36,27 +36,16 @@ rm -rf {../build,.,build}/CMakeCache.txt {../build,.,build}/CMakeFiles
|
|
|
cmake -E chdir Build cmake -G "Xcode" $SOURCE $@
|
|
cmake -E chdir Build cmake -G "Xcode" $SOURCE $@
|
|
|
|
|
|
|
|
# Below temporary fix may no longer be required by newer version of CMake
|
|
# Below temporary fix may no longer be required by newer version of CMake
|
|
|
-sed -i.bak 's/lastKnownFileType = sourcecode; name = "as_callfunc_arm_xcode.S"/lastKnownFileType = sourcecode.asm; name = "as_callfunc_arm_xcode.S"/g' Build/Urho3D.xcodeproj/project.pbxproj
|
|
|
|
|
|
|
+sed -i.bak 's/lastKnownFileType = sourcecode; name = "as_callfunc_arm_xcode.S"/lastKnownFileType = sourcecode.asm; name = "as_callfunc_arm_xcode.S"/g' Build/*.xcodeproj/project.pbxproj
|
|
|
|
|
|
|
|
# Apple always uses OpenGL
|
|
# Apple always uses OpenGL
|
|
|
sed 's/OpenGL/Direct3D9/g' Docs/Doxyfile.in >Doxyfile
|
|
sed 's/OpenGL/Direct3D9/g' Docs/Doxyfile.in >Doxyfile
|
|
|
|
|
|
|
|
-if [ $1 == "-DIOS=1" ]
|
|
|
|
|
-then
|
|
|
|
|
|
|
+if [ $1 == "-DIOS=1" ]; then
|
|
|
# Due to a bug in the CMake/Xcode generator where it has wrongly assumed the IOS bundle structure to be the same as MacOSX bundle structure,
|
|
# Due to a bug in the CMake/Xcode generator where it has wrongly assumed the IOS bundle structure to be the same as MacOSX bundle structure,
|
|
|
# below temporary fix is required in order to solve the auto-linking issue when dependent libraries is changed.
|
|
# below temporary fix is required in order to solve the auto-linking issue when dependent libraries is changed.
|
|
|
sed -i.bak 's/\/Contents\/MacOS//g' Build/CMakeScripts/XCODE_DEPEND_HELPER.make
|
|
sed -i.bak 's/\/Contents\/MacOS//g' Build/CMakeScripts/XCODE_DEPEND_HELPER.make
|
|
|
echo -e "\tsed -i.bak 's/\/Contents\/MacOS//g' CMakeScripts/XCODE_DEPEND_HELPER.make" >> Build/CMakeScripts/ReRunCMake.make
|
|
echo -e "\tsed -i.bak 's/\/Contents\/MacOS//g' CMakeScripts/XCODE_DEPEND_HELPER.make" >> Build/CMakeScripts/ReRunCMake.make
|
|
|
-else
|
|
|
|
|
- # Create symbolic links in the respective Xcode configuration subdir to allow running Urho3D within the xcode itself
|
|
|
|
|
- mkdir -p Build/Tools/Urho3D
|
|
|
|
|
- cd Build/Tools/Urho3D
|
|
|
|
|
- for conf in Debug RelWithDebInfo Release; do
|
|
|
|
|
- if [ ! -d $conf ]; then mkdir $conf; fi
|
|
|
|
|
- for dir in CoreData Data; do
|
|
|
|
|
- cmake -E create_symlink ../../../../Bin/$dir $conf/$dir
|
|
|
|
|
- done
|
|
|
|
|
- done
|
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# vi: set ts=4 sw=4 expandtab:
|
|
# vi: set ts=4 sw=4 expandtab:
|