mirror of https://github.com/axmolengine/axmol.git
Merge pull request #12727 from andyque/improve-template-dialy-build
[ci skip]fix ios/mac/win32/win8.1 compile error
This commit is contained in:
commit
e162edd867
|
@ -5,16 +5,21 @@ $mycocos new -l $1
|
|||
if [ $1 = "cpp" ];then
|
||||
schemename="MyCppGame-mobile"
|
||||
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
||||
cocos_project_path="MyCppGame"
|
||||
elif [ $1 = "lua" ];then
|
||||
schemename="MyLuaGame-mobile"
|
||||
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
||||
cocos_project_path="MyLuaGame"
|
||||
elif [ $1 = "js" ];then
|
||||
schemename="MyJSGame-mobile"
|
||||
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
||||
cocos_project_path="MyJSGame"
|
||||
fi
|
||||
|
||||
echo "start building..."
|
||||
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
|
||||
cocos compile -p ios -s $cocos_project_path | xcpretty
|
||||
cocos compile -p ios -s $cocos_project_path
|
||||
# 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
|
||||
|
|
|
@ -5,15 +5,21 @@ $mycocos new -l $1
|
|||
if [ $1 = "cpp" ];then
|
||||
schemename="MyCppGame-desktop"
|
||||
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
||||
cocos_project_path="MyCppGame"
|
||||
elif [ $1 = "lua" ];then
|
||||
schemename="MyLuaGame-desktop"
|
||||
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
||||
cocos_project_path="MyLuaGame"
|
||||
elif [ $1 = "js" ];then
|
||||
schemename="MyJSGame-desktop"
|
||||
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
||||
cocos_project_path="MyJSGame"
|
||||
fi
|
||||
|
||||
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
|
||||
cocos compile -p mac -s $cocos_project_path | xcpretty
|
||||
cocos compile -p mac -s $cocos_project_path
|
||||
|
||||
# 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%
|
||||
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%
|
||||
call "%VS120COMNTOOLS%vsvars32.bat"
|
||||
msbuild %projectname% /t:Build /p:Platform="Win32" /p:Configuration="Release" /m
|
||||
msbuild %projectname% /t:Build
|
||||
|
|
Loading…
Reference in New Issue