Skip to content

Commit ae61f8f

Browse files
authored
go on, Copy resources to "Resources/" on win32 (#19166)
* re-target on wi10 for win32 project * fix js-tests sources copy * fix lua tests * fix js template * remove libbox2d.vcxproj ref * improve js source copy * copy source in post build event * little improve * update external
1 parent dc14250 commit ae61f8f

File tree

21 files changed

+72
-82
lines changed

21 files changed

+72
-82
lines changed

cocos/2d/libcocos2d.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<ProjectGuid>{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}</ProjectGuid>
1616
<RootNamespace>cocos2d-x.win32</RootNamespace>
1717
<Keyword>Win32Proj</Keyword>
18+
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
1819
</PropertyGroup>
1920
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2021
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

cocos/2d/libcocos2d_win10/libcocos2d.vcxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,9 +1505,6 @@
15051505
<None Include="..\cocos2d.def" />
15061506
</ItemGroup>
15071507
<ItemGroup>
1508-
<ProjectReference Include="..\..\..\external\Box2D\proj-win10\libbox2d.vcxproj">
1509-
<Project>{0c32d479-46d5-46c3-9aa9-0a8ff8320516}</Project>
1510-
</ProjectReference>
15111508
<ProjectReference Include="..\..\..\external\recast\proj.win10\librecast.vcxproj">
15121509
<Project>{f551524d-8a70-4b2f-a7c2-28ae61150022}</Project>
15131510
</ProjectReference>

cocos/editor-support/spine/proj.win32/libSpine.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
<PropertyGroup Label="Globals">
113113
<ProjectGuid>{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}</ProjectGuid>
114114
<RootNamespace>libSpine</RootNamespace>
115+
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
115116
</PropertyGroup>
116117
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
117118
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
<ProjectGuid>{39379840-825A-45A0-B363-C09FFEF864BD}</ProjectGuid>
125125
<Keyword>Win32Proj</Keyword>
126126
<RootNamespace>libjscocos2d</RootNamespace>
127+
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
127128
</PropertyGroup>
128129
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
129130
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

cocos/scripting/lua-bindings/proj.win32/libluacocos2d.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
<ProjectGuid>{9F2D6CE6-C893-4400-B50C-6DB70CC2562F}</ProjectGuid>
235235
<RootNamespace>libluacocos2d</RootNamespace>
236236
<Keyword>Win32Proj</Keyword>
237+
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
237238
</PropertyGroup>
238239
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
239240
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

external/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "v3-deps-146",
2+
"version": "v3-deps-148",
33
"zip_file_size": "146254799",
44
"repo_name": "cocos2d-x-3rd-party-libs-bin",
55
"repo_parent": "https://github.com/cocos2d/",

templates/cpp-template-default/proj.win32/HelloCpp.vcxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\Resources\" /D /E /I /F /Y
164164
<ProjectReference Include="..\cocos2d\cocos\editor-support\spine\proj.win32\libSpine.vcxproj">
165165
<Project>{b7c2a162-dec9-4418-972e-240ab3cbfcae}</Project>
166166
</ProjectReference>
167-
<ProjectReference Include="..\cocos2d\external\Box2D\proj.win32\libbox2d.vcxproj">
168-
<Project>{929480e7-23c0-4df6-8456-096d71547116}</Project>
169-
</ProjectReference>
170167
</ItemGroup>
171168
<ItemGroup>
172169
<ResourceCompile Include="game.rc" />

templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{8C
1313
EndProject
1414
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\..\cocos2d-x\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
1515
EndProject
16-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbox2d", "..\..\cocos2d-x\external\Box2D\proj.win32\libbox2d.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
17-
EndProject
1816
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\cocos2d-x\cocos\2d\libcocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
1917
EndProject
2018
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libjscocos2d", "..\..\cocos2d-x\cocos\scripting\js-bindings\proj.win32\libjscocos2d.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"

templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@
121121
</ItemDefinitionGroup>
122122
<ItemDefinitionGroup>
123123
<CustomBuildStep>
124-
<Command>xcopy "$(ProjectDir)..\..\cocos2d-x\cocos\scripting\js-bindings\script" "$(OutDir)\script" /D /E /I /F /Y
125-
xcopy "$(ProjectDir)..\..\..\src" "$(OutDir)\src" /D /E /I /F /Y
126-
xcopy "$(ProjectDir)..\..\..\res" "$(OutDir)\res" /D /E /I /F /Y
127-
copy "$(ProjectDir)..\..\..\main.js" "$(OutDir)\" /Y
128-
copy "$(ProjectDir)..\..\..\project.json" "$(OutDir)\" /Y</Command>
124+
<Command>xcopy "$(ProjectDir)..\..\cocos2d-x\cocos\scripting\js-bindings\script" "$(OutDir)\Resources\script\" /D /E /I /F /Y
125+
xcopy "$(ProjectDir)..\..\..\src" "$(OutDir)\Resources\src\" /D /E /I /F /Y
126+
xcopy "$(ProjectDir)..\..\..\res" "$(OutDir)\Resources\res\" /D /E /I /F /Y
127+
copy "$(ProjectDir)..\..\..\main.js" "$(OutDir)\Resources\" /Y
128+
copy "$(ProjectDir)..\..\..\project.json" "$(OutDir)\Resources\" /Y</Command>
129129
<Outputs>$(TargetName).cab</Outputs>
130130
<Inputs>$(TargetFileName)</Inputs>
131131
</CustomBuildStep>

templates/lua-template-default/frameworks/runtime-src/proj.win32/HelloLua.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\cocos2d
1212
EndProject
1313
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libluacocos2d", "..\..\cocos2d-x\cocos\scripting\lua-bindings\proj.win32\libluacocos2d.vcxproj", "{9F2D6CE6-C893-4400-B50C-6DB70CC2562F}"
1414
EndProject
15-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbox2d", "..\..\cocos2d-x\external\Box2D\proj.win32\libbox2d.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
16-
EndProject
1715
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\..\cocos2d-x\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
1816
EndProject
1917
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsimulator", "..\..\cocos2d-x\tools\simulator\libsimulator\proj.win32\libsimulator.vcxproj", "{001B324A-BB91-4E83-875C-C92F75C40857}"

0 commit comments

Comments
 (0)