mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
Support separate .glsl shaders in Windows MSVC builds
git-svn-id: https://svn.eduke32.com/eduke32@7785 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
07df3ffc42
commit
4a0071d3ef
2 changed files with 29 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
|
@ -377,6 +377,26 @@
|
|||
<ClInclude Include="..\..\source\glbackend\gl_hwtexture.h" />
|
||||
<ClInclude Include="..\..\source\glbackend\gl_samplers.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Frag.glsl">
|
||||
<FileType>Document</FileType>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">mkdir %(RelativeDir)generated
|
||||
echo char const *%(Filename) = R^"shader( > %(RelativeDir)generated\%(Filename)%(Extension).h
|
||||
type %(Identity) >> %(RelativeDir)generated\%(Filename)%(Extension).h
|
||||
echo )shader^"; >> %(RelativeDir)generated\%(Filename)%(Extension).h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Creating header from %(Identity)</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(RelativeDir)\generated\%(Filename)%(Extension).h</Outputs>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Vert.glsl">
|
||||
<FileType>Document</FileType>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">mkdir %(RelativeDir)generated
|
||||
echo char const *%(Filename) = R^"shader( > %(RelativeDir)generated\%(Filename)%(Extension).h
|
||||
type %(Identity) >> %(RelativeDir)generated\%(Filename)%(Extension).h
|
||||
echo )shader^"; >> %(RelativeDir)generated\%(Filename)%(Extension).h</Command>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Creating header from %(Identity)</Message>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(RelativeDir)\generated\%(Filename)%(Extension).h</Outputs>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||
|
|
|
@ -401,4 +401,12 @@
|
|||
<Filter>GL Interface</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Frag.glsl">
|
||||
<Filter>Source Files</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\source\build\src\polymost1Vert.glsl">
|
||||
<Filter>Source Files</Filter>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Reference in a new issue