mirror of https://github.com/axmolengine/axmol.git
fix ios/mac/win32/win8.1 compile error
This commit is contained in:
parent
451bedbaad
commit
dda07bebf5
|
@ -5,16 +5,21 @@ $mycocos new -l $1
|
||||||
if [ $1 = "cpp" ];then
|
if [ $1 = "cpp" ];then
|
||||||
schemename="MyCppGame-mobile"
|
schemename="MyCppGame-mobile"
|
||||||
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
||||||
|
cocos_project_path="MyCppGame"
|
||||||
elif [ $1 = "lua" ];then
|
elif [ $1 = "lua" ];then
|
||||||
schemename="MyLuaGame-mobile"
|
schemename="MyLuaGame-mobile"
|
||||||
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
||||||
|
cocos_project_path="MyLuaGame"
|
||||||
elif [ $1 = "js" ];then
|
elif [ $1 = "js" ];then
|
||||||
schemename="MyJSGame-mobile"
|
schemename="MyJSGame-mobile"
|
||||||
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
||||||
|
cocos_project_path="MyJSGame"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "start building..."
|
echo "start building..."
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
|
cocos compile -p ios -s $cocos_project_path | xcpretty
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
|
cocos compile -p ios -s $cocos_project_path
|
||||||
#the following commands must not be removed
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
|
||||||
|
# #the following commands must not be removed
|
||||||
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
||||||
|
|
|
@ -5,15 +5,21 @@ $mycocos new -l $1
|
||||||
if [ $1 = "cpp" ];then
|
if [ $1 = "cpp" ];then
|
||||||
schemename="MyCppGame-desktop"
|
schemename="MyCppGame-desktop"
|
||||||
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
||||||
|
cocos_project_path="MyCppGame"
|
||||||
elif [ $1 = "lua" ];then
|
elif [ $1 = "lua" ];then
|
||||||
schemename="MyLuaGame-desktop"
|
schemename="MyLuaGame-desktop"
|
||||||
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
||||||
|
cocos_project_path="MyLuaGame"
|
||||||
elif [ $1 = "js" ];then
|
elif [ $1 = "js" ];then
|
||||||
schemename="MyJSGame-desktop"
|
schemename="MyJSGame-desktop"
|
||||||
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
||||||
|
cocos_project_path="MyJSGame"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
|
cocos compile -p mac -s $cocos_project_path | xcpretty
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
|
cocos compile -p mac -s $cocos_project_path
|
||||||
#the following commands must not be removed
|
|
||||||
xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
|
||||||
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
|
||||||
|
# #the following commands must not be removed
|
||||||
|
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build
|
||||||
|
|
|
@ -11,4 +11,4 @@ if "%language%"=="js" set projectname=MyJSGame/frameworks/runtime-src/proj.win32
|
||||||
|
|
||||||
echo %projectname%
|
echo %projectname%
|
||||||
call "%VS120COMNTOOLS%vsvars32.bat"
|
call "%VS120COMNTOOLS%vsvars32.bat"
|
||||||
msbuild %projectname% /t:Build /p:Platform="Win32" /p:Configuration="Release" /m
|
msbuild %projectname% /t:Build
|
||||||
|
|
|
@ -11,4 +11,4 @@ if "%language%"=="js" set projectname=MyJSGame/frameworks/runtime-src/proj.win8.
|
||||||
|
|
||||||
echo %projectname%
|
echo %projectname%
|
||||||
call "%VS120COMNTOOLS%vsvars32.bat"
|
call "%VS120COMNTOOLS%vsvars32.bat"
|
||||||
msbuild %projectname% /t:Build /p:Platform="Win32" /p:Configuration="Release" /m
|
msbuild %projectname% /t:Build
|
||||||
|
|
Loading…
Reference in New Issue