Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue 300 Modify CCAppWiz to adapt 0.8. Add Install wizard scripts for VS2010 VC2010Express VC2008Express. #162

Merged
1 commit merged into from
Mar 9, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="CCXAppWiz.win32"
Name="CCAppWiz.win32"
ProjectGUID="{104F4414-0DA5-4982-A413-766DD1698469}"
RootNamespace="CCXAppWiz.win32"
Keyword="CustomAppWizProj"
Expand Down Expand Up @@ -143,15 +143,15 @@
Filter="vsz;vsdir;ico;vcproj;csproj;css;inf"
>
<File
RelativePath=".\CCXAppWiz.ico"
RelativePath=".\CCAppWiz.win32.ico"
>
</File>
<File
RelativePath=".\CCXAppWiz.vsdir"
RelativePath=".\CCAppWiz.win32.vsdir"
>
</File>
<File
RelativePath=".\CCXAppWiz.vsz"
RelativePath=".\CCAppWiz.win32.vsz"
>
</File>
<File
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CCAppWiz.win32.vsz| |Cocos2d-win32 Application |1|An application that uses Cocos2d-x library for win32 platform.| |6777|4096|#1154
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine

Param="WIZARD_VERSION = "
Param="WIZARD_NAME = Cocos2d-win32"
Param="ABSOLUTE_PATH = ."
Param="FALLBACK_LCID = 1033"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<META NAME="vs_targetSchema" CONTENT="http://schemas.microsoft.com/intellisense/ie5">
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
<STYLE TYPE="text/css">@import url();
.style1
{
color: Blue;
}
</STYLE>
<!-- This closing tag is here only to avoid security warning -->
</OBJECT>
Expand All @@ -23,12 +27,13 @@
<SYMBOL NAME="INCLUDE_FILTER" TYPE="text" VALUE="h;hpp;hxx;hm;inl;inc"></SYMBOL>
<SYMBOL NAME="RESOURCE_FILTER" TYPE="text" VALUE="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;png;manifest"></SYMBOL>

<SYMBOL NAME="CCX_CURRENT_YEAR" TYPE="text" VALUE="2003"></SYMBOL>
<SYMBOL NAME="CC_CURRENT_YEAR" TYPE="text" VALUE="2003"></SYMBOL>

<!-- Page 2 Controls -->
<SYMBOL NAME='CCX_USE_BOX2D' TYPE="checkbox" VALUE="true"></SYMBOL>
<SYMBOL NAME='CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE' TYPE="checkbox" VALUE="true"></SYMBOL>
<SYMBOL NAME='CCX_HAS_MAIN_FORM' TYPE="checkbox" VALUE="true"></SYMBOL>
<SYMBOL NAME='CC_USE_BOX2D' TYPE="checkbox" VALUE="true"></SYMBOL>
<SYMBOL NAME='CC_USE_CHIPMUNK' TYPE="checkbox" VALUE="false"></SYMBOL>
<SYMBOL NAME='CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE' TYPE="checkbox" VALUE="true"></SYMBOL>
<SYMBOL NAME='CC_HAS_MAIN_FORM' TYPE="checkbox" VALUE="true"></SYMBOL>

<!-- Page 3 Controls -->
<SYMBOL NAME='WTL_COMBO_VIEW_TYPE' TYPE="select-one" VALUE='WTL_VIEWTYPE_GENERIC'></SYMBOL>
Expand Down Expand Up @@ -193,14 +198,14 @@ <H4 CLASS="HEAD" ID="HEAD">Welcome to the Cocos2d-win32 Application Wizard</H4>
<SPAN CLASS="ItemTextTop" ID="PROJECT_SETTINGS">These are the current project settings:</SPAN>
<UL>
<LI CLASS="LIST">
<SPAN CLASS="SideBtnHidden" ID="CCX_PHYSICAL_ENGINE_SUMMARY" TITLE="">
<LABEL FOR="CCX_PHYSICAL_ENGINE_SUMMARY"></LABEL>
<SPAN CLASS="SideBtnHidden" ID="CC_PHYSICAL_ENGINE_SUMMARY" TITLE="">
<LABEL FOR="CC_PHYSICAL_ENGINE_SUMMARY"></LABEL>
</SPAN>
</LI>

<LI CLASS="LIST">
<SPAN CLASS="SideBtnHidden" ID="CCX_AUDIO_ENGINE_SUMMARY" TITLE="">
<LABEL FOR="CCX_AUDIO_ENGINE_SUMMARY"></LABEL>
<SPAN CLASS="SideBtnHidden" ID="CC_AUDIO_ENGINE_SUMMARY" TITLE="">
<LABEL FOR="CC_AUDIO_ENGINE_SUMMARY"></LABEL>
</SPAN>
</LI>

Expand All @@ -211,7 +216,10 @@ <H4 CLASS="HEAD" ID="HEAD">Welcome to the Cocos2d-win32 Application Wizard</H4>
<P CLASS="ElementSpacer2">&nbsp;</P>

<!-- SPAN CLASS="ItemText" ID="README_REMINDER" TITLE="">After you create the project, see the project's readme.txt file for information about the project features and files that are generated.</SPAN -->
<SPAN CLASS="ItemText" ID="README_REMINDER" TITLE="">After you create the project, examine the project's files for more information about the classes and resources that are generated.<br />
<SPAN CLASS="ItemText" ID="README_REMINDER" TITLE="">Learn more form
<a href="http://www.cocos2d-x.org/wiki/cocos2d-x/Cocos2d-x_Application_Wizard_for_Visual_Studio_User_Guide" >
<span class="style1" >Cocos2d-x Application Wizard for Visual Studio User Guide</span></a>
.<br />
<br />
<B>Recommend</B> to save the new project&nbsp; to cocos2d-x source&#39;s root directory,
otherwise,&nbsp; modify the include directory and library directory menually.</SPAN>
Expand Down Expand Up @@ -332,30 +340,30 @@ <H4 CLASS="HEAD" ID="HEAD">Welcome to the Cocos2d-win32 Application Wizard</H4>

function OnInit()
{
if (window.external.FindSymbol("CCX_USE_BOX2D") && window.external.FindSymbol("CCX_USE_CHIPMUNK"))
if (window.external.FindSymbol("CC_USE_BOX2D") && window.external.FindSymbol("CC_USE_CHIPMUNK"))
{
CCX_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D and Chipmunk";
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D and Chipmunk";
}
else if (window.external.FindSymbol("CCX_USE_BOX2D"))
else if (window.external.FindSymbol("CC_USE_BOX2D"))
{
CCX_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D";
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D";
}
else if (window.external.FindSymbol("CCX_USE_CHIPMUNK"))
else if (window.external.FindSymbol("CC_USE_CHIPMUNK"))
{
CCX_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Chipmunk";
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Chipmunk";
}
else // none physical engine
{
CCX_PHYSICAL_ENGINE_SUMMARY.innerText = "None Physical Engine";
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "None Physical Engine";
}

if (window.external.FindSymbol("CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
if (window.external.FindSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
{
CCX_AUDIO_ENGINE_SUMMARY.innerText = "Use Audio Engine: Simple Audio Engine in Cocos Denshion";
CC_AUDIO_ENGINE_SUMMARY.innerText = "Use Audio Engine: Simple Audio Engine in Cocos Denshion";
}
else
{
CCX_AUDIO_ENGINE_SUMMARY.innerText = "None Audio Engine";
CC_AUDIO_ENGINE_SUMMARY.innerText = "None Audio Engine";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,19 @@ <H4 CLASS="HEAD" ID="HEAD">
<SPAN CLASS="itemText">Select physical engine:
<br />
<br />
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CCX_USE_BOX2D" ACCESSKEY="B" TITLE="Application uses box2D." value="ON" NAME="CCX_USE_BOX2D" onClick="OnUseBox2D();">
<DIV CLASS="itemTextCheckboxB" ID="CCX_USE_BOX2D_DIV" TITLE="Application uses box2D.">
<LABEL FOR="CCX_USE_BOX2D"
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_BOX2D" ACCESSKEY="B" TITLE="Application uses box2D." value="ON" NAME="CC_USE_BOX2D" onClick="OnUseBox2D();">
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_BOX2D_DIV" TITLE="Application uses box2D.">
<LABEL FOR="CC_USE_BOX2D"
TITLE="Application uses box2D. Include &quot;Box2d.h&quot; if needs."
ID="CCX_USE_BOX2D_LABEL">
ID="CC_USE_BOX2D_LABEL">
<U>B</U>ox2D</LABEL>
</DIV>
<BR>
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CCX_USE_CHIPMUNK" ACCESSKEY="C" TITLE="Application uses Chipmunk." value="ON" NAME="CCX_USE_CHIPMUNK" onClick="OnUseChipmunk();">
<DIV CLASS="itemTextCheckboxB" ID="CCX_USE_CHIPMUNK_DIV" TITLE="Application uses Chipmunk.">
<LABEL FOR="CCX_USE_CHIPMUNK"
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_CHIPMUNK" ACCESSKEY="C" TITLE="Application uses Chipmunk." value="ON" NAME="CC_USE_CHIPMUNK" onClick="OnUseChipmunk();">
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_CHIPMUNK_DIV" TITLE="Application uses Chipmunk.">
<LABEL FOR="CC_USE_CHIPMUNK"
TITLE="Application uses Chipmunk. Include &quot;chipmunk.h&quot; if needs."
ID="CCX_USE_CHIPMUNK_LABEL">
ID="CC_USE_CHIPMUNK_LABEL">
<U>C</U>hipmunk</LABEL>
</DIV>
</SPAN>
Expand All @@ -216,11 +216,11 @@ <H4 CLASS="HEAD" ID="HEAD">
<SPAN CLASS="itemText">Select audio engine:
<br />
<br />
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE" ACCESSKEY="S" TITLE="Application uses CocosDenshion's SimpleAudioEngine." value="ON" NAME="CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE onClick="OnUseCocosDenshionSimpleAudioEngine();">
<DIV CLASS="itemTextCheckboxB" ID="CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_DIV" TITLE="Application uses CocosDenshion:SimpleAudioEngine.">
<LABEL FOR="CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE" ACCESSKEY="S" TITLE="Application uses CocosDenshion's SimpleAudioEngine." value="ON" NAME="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE onClick="OnUseCocosDenshionSimpleAudioEngine();">
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_DIV" TITLE="Application uses CocosDenshion:SimpleAudioEngine.">
<LABEL FOR="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"
TITLE="Application uses CocosDenshion:SimpleAudioEngine. Include &quot;SimpleAudioEngine.h&quot; if needs."
ID="CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_LABEL">
ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_LABEL">
<U>S</U>imple Audio Engine in Cocos Denshion</LABEL>
</DIV>
</SPAN>
Expand Down Expand Up @@ -338,59 +338,59 @@ <H4 CLASS="HEAD" ID="HEAD">

function OnInit()
{
CCX_USE_BOX2D.disabled = false;
CCX_USE_CHIPMUNK.disabled = false;
CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.disabled = false;
CC_USE_BOX2D.disabled = false;
CC_USE_CHIPMUNK.disabled = false;
CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.disabled = false;

if (window.external.FindSymbol("CCX_USE_BOX2D"))
if (window.external.FindSymbol("CC_USE_BOX2D"))
{
CCX_USE_BOX2D.checked = true;
CC_USE_BOX2D.checked = true;
}

if (window.external.FindSymbol("CCX_USE_CHIPMUNK"))
if (window.external.FindSymbol("CC_USE_CHIPMUNK"))
{
CCX_USE_CHIPMUNK.checked = true;
CC_USE_CHIPMUNK.checked = true;
}

if (window.external.FindSymbol("CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
if (window.external.FindSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
{
CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked = true;
CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked = true;
}
}

function OnUseBox2D()
{
if(CCX_USE_BOX2D.checked)
if(CC_USE_BOX2D.checked)
{
window.external.AddSymbol("CCX_USE_BOX2D", true);
window.external.AddSymbol("CC_USE_BOX2D", true);
}
else
{
window.external.AddSymbol("CCX_USE_BOX2D", false);
window.external.AddSymbol("CC_USE_BOX2D", false);
}
}

function OnUseChipmunk()
{
if (CCX_USE_CHIPMUNK.checked)
if (CC_USE_CHIPMUNK.checked)
{
window.external.AddSymbol("CCX_USE_CHIPMUNK", true);
window.external.AddSymbol("CC_USE_CHIPMUNK", true);
}
else
{
window.external.AddSymbol("CCX_USE_CHIPMUNK", false);
window.external.AddSymbol("CC_USE_CHIPMUNK", false);
}
}

function OnUseCocosDenshionSimpleAudioEngine()
{
if (CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked)
if (CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked)
{
window.external.AddSymbol("CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", true);
window.external.AddSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", true);
}
else
{
window.external.AddSymbol("CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", false);
window.external.AddSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", false);
}
}

Expand Down
Loading