Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
[Web] Update Visual Studio Template
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed Oct 8, 2021
1 parent 075472a commit c8f3194
Show file tree
Hide file tree
Showing 5 changed files with 372 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@
<ProjectItem ReplaceParameters="false" TargetFileName="32.png">resources\engine\texture\box-shadow\32.png</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="64.png">resources\engine\texture\box-shadow\64.png</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="8.png">resources\engine\texture\box-shadow\8.png</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="web-player.html">Templates\Embeddable\web-player.html</ProjectItem>
<ProjectItem ReplaceParameters="false" TargetFileName="web-player.js">Templates\Embeddable\web-player.js</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>
14 changes: 12 additions & 2 deletions Web/VisualStudioTemplate/OpenSiv3D(0.6.0)Web/Siv3DTest.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,23 @@
<Media Include="example\test.mp3" />
<Media Include="example\video\river.mp4" />
</ItemGroup>
<ItemGroup>
<None Include="Templates\Embeddable\web-player.html" />
<None Include="Templates\Embeddable\web-player.js" />
</ItemGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Emscripten'">
<Link>
<PreloadFile>$(ProjectDir)\resources@/resources;$(ProjectDir)\example@/example</PreloadFile>
<AdditionalOptions>-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 -s MODULARIZE=1 %(AdditionalOptions)</AdditionalOptions>
<AdditionalLinkDirectories>$(LibraryPath);%(AdditionalLinkDirectories)</AdditionalLinkDirectories>
<AdditionalDependencies>Siv3D;opencv_objdetect;opencv_photo;opencv_imgproc;opencv_core;harfbuzz;freetype;turbojpeg;gif;webp;opusfile;opus;tiff;</AdditionalDependencies>
<EchoCommandLines>false</EchoCommandLines>
<JsLibrary>$(SIV3D_0_6_0_WEB)\lib\Siv3D.js;</JsLibrary>
<PostJsFile>$(ProjectDir)\Templates\Embeddable\web-player.js</PostJsFile>
<HtmlShellFile>$(ProjectDir)\Templates\Embeddable\web-player.html</HtmlShellFile>
<EnableMemoryGrowth>true</EnableMemoryGrowth>
<EmRun>true</EmRun>
<IncludedAssetTargets></IncludedAssetTargets>
</Link>
<ClCompile>
<AdditionalIncludeDirectories>$(IncludePath);</AdditionalIncludeDirectories>
Expand All @@ -277,14 +284,17 @@
<AdditionalOptions>-D_XM_NO_INTRINSICS_</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalOptions>-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_OGG=1 -s USE_VORBIS=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s FULL_ES3=1 -s USE_GLFW=3 -s MIN_WEBGL_VERSION=2 -s MAX_WEBGL_VERSION=2 -s USE_SDL=2 -s MODULARIZE=1 %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>Siv3D;opencv_objdetect;opencv_photo;opencv_imgproc;opencv_core;harfbuzz;freetype;turbojpeg;gif;webp;opusfile;opus;tiff;</AdditionalDependencies>
<PreloadFile>$(ProjectDir)\resources@/resources;$(ProjectDir)\example@/example</PreloadFile>
<JsLibrary>$(SIV3D_0_6_0_WEB)\lib\Siv3D.js;</JsLibrary>
<PostJsFile>$(ProjectDir)\Templates\Embeddable\web-player.js</PostJsFile>
<HtmlShellFile>$(ProjectDir)\Templates\Embeddable\web-player.html</HtmlShellFile>
<AdditionalLinkDirectories>$(LibraryPath);%(AdditionalLinkDirectories)</AdditionalLinkDirectories>
<EchoCommandLines>false</EchoCommandLines>
<EnableMemoryGrowth>true</EnableMemoryGrowth>
<EmRun>true</EmRun>
<IncludedAssetTargets></IncludedAssetTargets>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@
<Filter Include="Resource Files\resources\engine\texture\box-shadow">
<UniqueIdentifier>{aeb4dbf4-f1ba-402b-9249-c3056a02598d}</UniqueIdentifier>
</Filter>
<Filter Include="Template Files">
<UniqueIdentifier>{3DC55764-A3B8-4D7E-AA91-C3C467637996}</UniqueIdentifier>
</Filter>
<Filter Include="Template Files\Embeddable">
<UniqueIdentifier>{1155355D-3484-407F-BCE3-BC5EB094E4DD}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<Content Include="example\csv\config.csv">
Expand Down Expand Up @@ -606,6 +612,14 @@
<Filter>Resource Files\example</Filter>
</Media>
</ItemGroup>
<ItemGroup>
<None Include="Templates\Embeddable\web-player.html">
<Filter>Template Files\Embeddable</Filter>
</None>
<None Include="Templates\Embeddable\web-player.js">
<Filter>Template Files\Embeddable</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Main.cpp">
<Filter>Source Files</Filter>
Expand Down
Loading

0 comments on commit c8f3194

Please sign in to comment.