forked from cocos2d/cocos2d-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed cocos2d#300 Cocos2d-win32 application wizard for vs ok.
- Loading branch information
Showing
9 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@echo off | ||
|
||
echo./* | ||
echo.* Check VC++ environment... | ||
echo.*/ | ||
echo. | ||
|
||
if defined VS90COMNTOOLS ( | ||
set VSVARS="%VS90COMNTOOLS%vsvars32.bat" | ||
) else ( | ||
if defined VS100COMNTOOLS ( | ||
set VSVARS="%VS100COMNTOOLS%vsvars32.bat" | ||
) | ||
) | ||
|
||
if not defined VSVARS ( | ||
echo Can't find VC2008 or VC2010 installed! | ||
goto ERROR | ||
) | ||
|
||
echo./* | ||
echo.* Building cocos2d-x library binary, please wait a while... | ||
echo.*/ | ||
echo. | ||
|
||
call %VSVARS% | ||
vcbuild cocos2d-win32.sln $ALL | ||
|
||
echo./* | ||
echo.* Check the cocos2d-win32 application "tests.exe" ... | ||
echo.*/ | ||
echo. | ||
|
||
set CC_TEST_PATH=".\Release.win32\tests.exe" | ||
if not exist %CC_TEST_PATH% ( | ||
echo Can't find the binary "tests.exe", is there build error? | ||
goto ERROR | ||
) | ||
|
||
echo./* | ||
echo.* Install Cocos2d-win32 application wizard... | ||
echo.*/ | ||
echo. | ||
|
||
set SCRIPT_LOG=InstallWizardLog.txt | ||
set SCRIPT_DIR=.\template\CCApplicationWizard.vs\ | ||
|
||
if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% | ||
cscript "%SCRIPT_DIR%InstallWizardForVC2008Express.js" /quiet | ||
cscript "%SCRIPT_DIR%InstallWizardForVC2010Express.js" /quiet | ||
cscript "%SCRIPT_DIR%InstallWizardForVS2008.js" /quiet | ||
cscript "%SCRIPT_DIR%InstallWizardForVS2010.js" /quiet | ||
if exist %SCRIPT_LOG% more %SCRIPT_LOG% | ||
if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% | ||
|
||
echo./* | ||
echo.* Run cocos2d-win32 tests.exe and view Cocos2d-x Application Wizard for Visual Studio User Guide. | ||
echo.*/ | ||
echo. | ||
call %CC_TEST_PATH% | ||
start http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Cocos2d-x_Application_Wizard_for_Visual_Studio_User_Guide | ||
goto EOF | ||
|
||
:ERROR | ||
pause | ||
|
||
:EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters