issue #1191: Updated win32 template.

This commit is contained in:
James Chen 2012-04-27 11:35:09 +08:00
parent a771f47a1a
commit 6305de4ff6
8 changed files with 43 additions and 85 deletions

View File

@ -32,33 +32,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tests", "tests\proj.win32\t
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hello5.win32", "hello5\hello5.win32.vcproj", "{4DB5AE27-1695-47F3-98F2-A85D6F61F361}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hellobox2d.win32", "hellobox2d\hellobox2d.win32.vcproj", "{8F9F807A-875A-4A19-9326-D68776F38D45}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
{929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hellochipmunk.win32", "hellochipmunk\hellochipmunk.win32.vcproj", "{CAF29F4C-B857-44B5-8BC3-89E227D225BD}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "helloluatest.win32", "helloluatest\helloluatest.win32.vcproj", "{C5C9CB75-5E49-420B-B2B2-9D8A776E4916}"
ProjectSection(ProjectDependencies) = postProject
{DDC3E27F-004D-4DD4-9DD3-931A013D2159} = {DDC3E27F-004D-4DD4-9DD3-931A013D2159}
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32 Debug|Win32 = Debug|Win32
@ -97,22 +70,6 @@ Global
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32 {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32 {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32 {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
{4DB5AE27-1695-47F3-98F2-A85D6F61F361}.Debug|Win32.ActiveCfg = Debug|Win32
{4DB5AE27-1695-47F3-98F2-A85D6F61F361}.Debug|Win32.Build.0 = Debug|Win32
{4DB5AE27-1695-47F3-98F2-A85D6F61F361}.Release|Win32.ActiveCfg = Release|Win32
{4DB5AE27-1695-47F3-98F2-A85D6F61F361}.Release|Win32.Build.0 = Release|Win32
{8F9F807A-875A-4A19-9326-D68776F38D45}.Debug|Win32.ActiveCfg = Debug|Win32
{8F9F807A-875A-4A19-9326-D68776F38D45}.Debug|Win32.Build.0 = Debug|Win32
{8F9F807A-875A-4A19-9326-D68776F38D45}.Release|Win32.ActiveCfg = Release|Win32
{8F9F807A-875A-4A19-9326-D68776F38D45}.Release|Win32.Build.0 = Release|Win32
{CAF29F4C-B857-44B5-8BC3-89E227D225BD}.Debug|Win32.ActiveCfg = Debug|Win32
{CAF29F4C-B857-44B5-8BC3-89E227D225BD}.Debug|Win32.Build.0 = Debug|Win32
{CAF29F4C-B857-44B5-8BC3-89E227D225BD}.Release|Win32.ActiveCfg = Release|Win32
{CAF29F4C-B857-44B5-8BC3-89E227D225BD}.Release|Win32.Build.0 = Release|Win32
{C5C9CB75-5E49-420B-B2B2-9D8A776E4916}.Debug|Win32.ActiveCfg = Debug|Win32
{C5C9CB75-5E49-420B-B2B2-9D8A776E4916}.Debug|Win32.Build.0 = Debug|Win32
{C5C9CB75-5E49-420B-B2B2-9D8A776E4916}.Release|Win32.ActiveCfg = Release|Win32
{C5C9CB75-5E49-420B-B2B2-9D8A776E4916}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -78,7 +78,7 @@ function CreateCustomProject(strProjectName, strProjectPath) {
else else
strUserTarget = strProjectName + ".win32.vcproj.user"; strUserTarget = strProjectName + ".win32.vcproj.user";
var strUserPath = FileSys.BuildPath(strProjectPath, strUserTarget); var strUserPath = FileSys.BuildPath(strProjectPath+"\\proj.win32", strUserTarget);
var astrParentPath = new Array(); var astrParentPath = new Array();
astrParentPath[0] = strProjectPath; astrParentPath[0] = strProjectPath;
@ -93,6 +93,7 @@ function CreateCustomProject(strProjectName, strProjectPath) {
} }
else { else {
FileSys.CreateFolder(strPath); FileSys.CreateFolder(strPath);
FileSys.CreateFolder(strPath+"\\proj.win32");
} }
} }
@ -114,21 +115,21 @@ function CreateCustomProject(strProjectName, strProjectPath) {
+ "<VisualStudioUserFile\r\n" + "<VisualStudioUserFile\r\n"
+ " ProjectType=\"Visual C++\"\r\n" + " ProjectType=\"Visual C++\"\r\n"
+ " Version=\"9.00\"\r\n" + " Version=\"9.00\"\r\n"
+ " ShowAllFiles=\"true\"\r\n" + " ShowAllFiles=\"false\"\r\n"
+ " >\r\n" + " >\r\n"
+ " <Configurations>\r\n" + " <Configurations>\r\n"
+ " <Configuration\r\n" + " <Configuration\r\n"
+ " Name=\"Debug|Win32\"\r\n" + " Name=\"Debug|Win32\"\r\n"
+ " >\r\n" + " >\r\n"
+ " <DebugSettings\r\n" + " <DebugSettings\r\n"
+ " WorkingDirectory=\"$(ProjectDir)Resources\\\"\r\n" + " WorkingDirectory=\"$(ProjectDir)..\\Resources\\\"\r\n"
+ " />\r\n" + " />\r\n"
+ " </Configuration>\r\n" + " </Configuration>\r\n"
+ " <Configuration\r\n" + " <Configuration\r\n"
+ " Name=\"Release|Win32\"\r\n" + " Name=\"Release|Win32\"\r\n"
+ " >\r\n" + " >\r\n"
+ " <DebugSettings\r\n" + " <DebugSettings\r\n"
+ " WorkingDirectory=\"$(ProjectDir)Resources\\\"\r\n" + " WorkingDirectory=\"$(ProjectDir)..\\Resources\\\"\r\n"
+ " />\r\n" + " />\r\n"
+ " </Configuration>\r\n" + " </Configuration>\r\n"
+ " </Configurations>\r\n" + " </Configurations>\r\n"
@ -151,7 +152,7 @@ function CreateCustomProject(strProjectName, strProjectPath) {
prj = prjItem.SubProject; prj = prjItem.SubProject;
} }
else { else {
prj = oTarget.AddFromTemplate(strProjTemplate, strProjectPath, strProjectNameWithExt); prj = oTarget.AddFromTemplate(strProjTemplate, strProjectPath+"\\proj.win32\\", strProjectNameWithExt);
} }
return prj; return prj;
} }
@ -217,46 +218,46 @@ function AddConfigurations(proj, strProjectName) {
var CLTool = config.Tools('VCCLCompilerTool'); var CLTool = config.Tools('VCCLCompilerTool');
// Additional Inlcude Directories // Additional Inlcude Directories
var strAddIncludeDir = '.;.\\win32;.\\Classes'; var strAddIncludeDir = '.;..\\Classes';
strAddIncludeDir += ';..\\cocos2dx'; strAddIncludeDir += ';..\\..\\cocos2dx';
strAddIncludeDir += ';..\\cocos2dx\\actions'; strAddIncludeDir += ';..\\..\\cocos2dx\\actions';
strAddIncludeDir += ';..\\cocos2dx\\base_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\base_nodes';
strAddIncludeDir += ';..\\cocos2dx\\cocoa'; strAddIncludeDir += ';..\\..\\cocos2dx\\cocoa';
strAddIncludeDir += ';..\\cocos2dx\\effects'; strAddIncludeDir += ';..\\..\\cocos2dx\\effects';
strAddIncludeDir += ';..\\cocos2dx\\include'; strAddIncludeDir += ';..\\..\\cocos2dx\\include';
strAddIncludeDir += ';..\\cocos2dx\\kazmath\\include'; strAddIncludeDir += ';..\\..\\cocos2dx\\kazmath\\include';
strAddIncludeDir += ';..\\cocos2dx\\keypad_dispatcher'; strAddIncludeDir += ';..\\..\\cocos2dx\\keypad_dispatcher';
strAddIncludeDir += ';..\\cocos2dx\\label_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\label_nodes';
strAddIncludeDir += ';..\\cocos2dx\\layers_scenes_transitions_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\layers_scenes_transitions_nodes';
strAddIncludeDir += ';..\\cocos2dx\\menu_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\menu_nodes';
strAddIncludeDir += ';..\\cocos2dx\\misc_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\misc_nodes';
strAddIncludeDir += ';..\\cocos2dx\\particle_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\particle_nodes';
strAddIncludeDir += ';..\\cocos2dx\\script_support'; strAddIncludeDir += ';..\\..\\cocos2dx\\script_support';
strAddIncludeDir += ';..\\cocos2dx\\shaders'; strAddIncludeDir += ';..\\..\\cocos2dx\\shaders';
strAddIncludeDir += ';..\\cocos2dx\\sprite_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\sprite_nodes';
strAddIncludeDir += ';..\\cocos2dx\\support'; strAddIncludeDir += ';..\\..\\cocos2dx\\support';
strAddIncludeDir += ';..\\cocos2dx\\text_input_node'; strAddIncludeDir += ';..\\..\\cocos2dx\\text_input_node';
strAddIncludeDir += ';..\\cocos2dx\\textures'; strAddIncludeDir += ';..\\..\\cocos2dx\\textures';
strAddIncludeDir += ';..\\cocos2dx\\tileMap_parallax_nodes'; strAddIncludeDir += ';..\\..\\cocos2dx\\tileMap_parallax_nodes';
strAddIncludeDir += ';..\\cocos2dx\\touch_dispatcher'; strAddIncludeDir += ';..\\..\\cocos2dx\\touch_dispatcher';
strAddIncludeDir += ';..\\cocos2dx\\platform'; strAddIncludeDir += ';..\\..\\cocos2dx\\platform';
strAddIncludeDir += ';..\\cocos2dx\\platform\\win32'; strAddIncludeDir += ';..\\..\\cocos2dx\\platform\\win32';
strAddIncludeDir += ';..\\cocos2dx\\platform\\third_party\\win32'; strAddIncludeDir += ';..\\..\\cocos2dx\\platform\\third_party\\win32';
strAddIncludeDir += ';..\\cocos2dx\\platform\\third_party\\win32\\OGLES'; strAddIncludeDir += ';..\\..\\cocos2dx\\platform\\third_party\\win32\\OGLES';
if (wizard.FindSymbol('CC_USE_BOX2D')) { if (wizard.FindSymbol('CC_USE_BOX2D')) {
strAddIncludeDir += ';..\\'; strAddIncludeDir += ';..\\..\\';
} }
if (wizard.FindSymbol('CC_USE_CHIPMUNK')) { if (wizard.FindSymbol('CC_USE_CHIPMUNK')) {
strAddIncludeDir += ';..\\chipmunk\\include\\chipmunk'; strAddIncludeDir += ';..\\..\\chipmunk\\include\\chipmunk';
} }
if (wizard.FindSymbol('CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) { if (wizard.FindSymbol('CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) {
strAddIncludeDir += ';..\\CocosDenshion\\Include'; strAddIncludeDir += ';..\\..\\CocosDenshion\\Include';
} }
if (wizard.FindSymbol('CC_USE_LUA')) { if (wizard.FindSymbol('CC_USE_LUA')) {
strAddIncludeDir += ';..\\lua\\cocos2dx_support'; strAddIncludeDir += ';..\\..\\lua\\cocos2dx_support';
strAddIncludeDir += ';..\\lua\\tolua'; strAddIncludeDir += ';..\\..\\lua\\tolua';
strAddIncludeDir += ';..\\lua\\lua'; strAddIncludeDir += ';..\\..\\lua\\lua';
} }
CLTool.AdditionalIncludeDirectories = strAddIncludeDir; CLTool.AdditionalIncludeDirectories = strAddIncludeDir;

View File

@ -1,9 +1,9 @@
win32/res/root.ico proj.win32/res/root.ico
win32/root.rc proj.win32/root.rc
win32/resource.h proj.win32/resource.h
win32/main.h proj.win32/main.h
win32/main.cpp proj.win32/main.cpp
Classes/AppDelegate.h Classes/AppDelegate.h
Classes/AppDelegate.cpp Classes/AppDelegate.cpp

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB