1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
---|
3 | <ItemGroup Label="ProjectConfigurations"> |
---|
4 | <ProjectConfiguration Include="Debug|Win32"> |
---|
5 | <Configuration>Debug</Configuration> |
---|
6 | <Platform>Win32</Platform> |
---|
7 | </ProjectConfiguration> |
---|
8 | <ProjectConfiguration Include="Debug|x64"> |
---|
9 | <Configuration>Debug</Configuration> |
---|
10 | <Platform>x64</Platform> |
---|
11 | </ProjectConfiguration> |
---|
12 | <ProjectConfiguration Include="Release|Win32"> |
---|
13 | <Configuration>Release</Configuration> |
---|
14 | <Platform>Win32</Platform> |
---|
15 | </ProjectConfiguration> |
---|
16 | <ProjectConfiguration Include="Release|x64"> |
---|
17 | <Configuration>Release</Configuration> |
---|
18 | <Platform>x64</Platform> |
---|
19 | </ProjectConfiguration> |
---|
20 | </ItemGroup> |
---|
21 | <PropertyGroup Label="Globals"> |
---|
22 | <ProjectGuid>{F7CFEF5A-54BD-42E8-A59E-54ABAEB4EA9C}</ProjectGuid> |
---|
23 | <RootNamespace>RenderingPlugin</RootNamespace> |
---|
24 | <Keyword>Win32Proj</Keyword> |
---|
25 | </PropertyGroup> |
---|
26 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
---|
27 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
---|
28 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
---|
29 | <PlatformToolset>v120</PlatformToolset> |
---|
30 | <CharacterSet>Unicode</CharacterSet> |
---|
31 | <WholeProgramOptimization>true</WholeProgramOptimization> |
---|
32 | </PropertyGroup> |
---|
33 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
---|
34 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
---|
35 | <PlatformToolset>v120</PlatformToolset> |
---|
36 | <CharacterSet>Unicode</CharacterSet> |
---|
37 | <WholeProgramOptimization>true</WholeProgramOptimization> |
---|
38 | </PropertyGroup> |
---|
39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
---|
40 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
---|
41 | <PlatformToolset>v120</PlatformToolset> |
---|
42 | <CharacterSet>Unicode</CharacterSet> |
---|
43 | </PropertyGroup> |
---|
44 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
---|
45 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
---|
46 | <PlatformToolset>v120</PlatformToolset> |
---|
47 | <CharacterSet>Unicode</CharacterSet> |
---|
48 | </PropertyGroup> |
---|
49 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
---|
50 | <ImportGroup Label="ExtensionSettings"> |
---|
51 | </ImportGroup> |
---|
52 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> |
---|
53 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
---|
54 | </ImportGroup> |
---|
55 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> |
---|
56 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
---|
57 | </ImportGroup> |
---|
58 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> |
---|
59 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
---|
60 | </ImportGroup> |
---|
61 | <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> |
---|
62 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
---|
63 | </ImportGroup> |
---|
64 | <PropertyGroup Label="UserMacros" /> |
---|
65 | <PropertyGroup> |
---|
66 | <_ProjectFileVersion>12.0.30501.0</_ProjectFileVersion> |
---|
67 | </PropertyGroup> |
---|
68 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
---|
69 | <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> |
---|
70 | <IntDir>$(Platform)\$(Configuration)\</IntDir> |
---|
71 | <LinkIncremental>true</LinkIncremental> |
---|
72 | </PropertyGroup> |
---|
73 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
---|
74 | <LinkIncremental>true</LinkIncremental> |
---|
75 | </PropertyGroup> |
---|
76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
---|
77 | <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> |
---|
78 | <IntDir>$(Platform)\$(Configuration)\</IntDir> |
---|
79 | <LinkIncremental>false</LinkIncremental> |
---|
80 | </PropertyGroup> |
---|
81 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
---|
82 | <LinkIncremental>false</LinkIncremental> |
---|
83 | </PropertyGroup> |
---|
84 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
---|
85 | <ClCompile> |
---|
86 | <Optimization>Disabled</Optimization> |
---|
87 | <PreprocessorDefinitions>GLEW_STATIC;WIN32;_DEBUG;_WINDOWS;_USRDLL;RENDERINGPLUGIN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
---|
88 | <MinimalRebuild>true</MinimalRebuild> |
---|
89 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> |
---|
90 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
---|
91 | <PrecompiledHeader /> |
---|
92 | <WarningLevel>Level3</WarningLevel> |
---|
93 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> |
---|
94 | <AdditionalIncludeDirectories>../</AdditionalIncludeDirectories> |
---|
95 | </ClCompile> |
---|
96 | <Link> |
---|
97 | <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
---|
98 | <GenerateDebugInformation>true</GenerateDebugInformation> |
---|
99 | <SubSystem>Windows</SubSystem> |
---|
100 | <TargetMachine>MachineX86</TargetMachine> |
---|
101 | <ModuleDefinitionFile>..\RenderingPlugin.def</ModuleDefinitionFile> |
---|
102 | </Link> |
---|
103 | <PostBuildEvent> |
---|
104 | <Command>SETLOCAL |
---|
105 | |
---|
106 | if "$(PlatformShortName)" == "x86" ( |
---|
107 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86 |
---|
108 | ) else ( |
---|
109 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86_64 |
---|
110 | ) |
---|
111 | |
---|
112 | set TARGET_SHADER_PATH=$(SolutionDir)..\..\UnityProject\Assets\StreamingAssets\Shaders\DX11_9_1\ |
---|
113 | |
---|
114 | echo Target Plugin Path is %TARGET_PLUGIN_PATH% |
---|
115 | echo Target Shader Path is %TARGET_SHADER_PATH% |
---|
116 | |
---|
117 | copy /Y "$(TargetPath)" "%TARGET_PLUGIN_PATH%\$(TargetFileName)" |
---|
118 | copy /Y "$(TargetDir)SimpleVertexShader.cso" "%TARGET_SHADER_PATH%SimpleVertexShader.cso" |
---|
119 | copy /Y "$(TargetDir)SimplePixelShader.cso" "%TARGET_SHADER_PATH%SimplePixelShader.cso" |
---|
120 | |
---|
121 | ENDLOCAL |
---|
122 | </Command> |
---|
123 | </PostBuildEvent> |
---|
124 | </ItemDefinitionGroup> |
---|
125 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
---|
126 | <ClCompile> |
---|
127 | <Optimization>Disabled</Optimization> |
---|
128 | <PreprocessorDefinitions>GLEW_STATIC;WIN32;_DEBUG;_WINDOWS;_USRDLL;RENDERINGPLUGIN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
---|
129 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> |
---|
130 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
---|
131 | <PrecompiledHeader> |
---|
132 | </PrecompiledHeader> |
---|
133 | <WarningLevel>Level3</WarningLevel> |
---|
134 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
---|
135 | <AdditionalIncludeDirectories>../</AdditionalIncludeDirectories> |
---|
136 | </ClCompile> |
---|
137 | <Link> |
---|
138 | <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
---|
139 | <GenerateDebugInformation>true</GenerateDebugInformation> |
---|
140 | <SubSystem>Windows</SubSystem> |
---|
141 | <ModuleDefinitionFile>..\RenderingPlugin.def</ModuleDefinitionFile> |
---|
142 | </Link> |
---|
143 | <PostBuildEvent> |
---|
144 | <Command>SETLOCAL |
---|
145 | |
---|
146 | if "$(PlatformShortName)" == "x86" ( |
---|
147 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86 |
---|
148 | ) else ( |
---|
149 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86_64 |
---|
150 | ) |
---|
151 | |
---|
152 | set TARGET_SHADER_PATH=$(SolutionDir)..\..\UnityProject\Assets\StreamingAssets\Shaders\DX11_9_1\ |
---|
153 | |
---|
154 | echo Target Plugin Path is %TARGET_PLUGIN_PATH% |
---|
155 | echo Target Shader Path is %TARGET_SHADER_PATH% |
---|
156 | |
---|
157 | copy /Y "$(TargetPath)" "%TARGET_PLUGIN_PATH%\$(TargetFileName)" |
---|
158 | copy /Y "$(TargetDir)SimpleVertexShader.cso" "%TARGET_SHADER_PATH%SimpleVertexShader.cso" |
---|
159 | copy /Y "$(TargetDir)SimplePixelShader.cso" "%TARGET_SHADER_PATH%SimplePixelShader.cso" |
---|
160 | |
---|
161 | |
---|
162 | ENDLOCAL |
---|
163 | </Command> |
---|
164 | </PostBuildEvent> |
---|
165 | </ItemDefinitionGroup> |
---|
166 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
---|
167 | <ClCompile> |
---|
168 | <Optimization>MaxSpeed</Optimization> |
---|
169 | <IntrinsicFunctions>true</IntrinsicFunctions> |
---|
170 | <PreprocessorDefinitions>GLEW_STATIC;WIN32;NDEBUG;_WINDOWS;_USRDLL;RENDERINGPLUGIN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
---|
171 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
---|
172 | <FunctionLevelLinking>true</FunctionLevelLinking> |
---|
173 | <PrecompiledHeader /> |
---|
174 | <WarningLevel>Level3</WarningLevel> |
---|
175 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
---|
176 | <AdditionalIncludeDirectories>../</AdditionalIncludeDirectories> |
---|
177 | </ClCompile> |
---|
178 | <Link> |
---|
179 | <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
---|
180 | <GenerateDebugInformation>true</GenerateDebugInformation> |
---|
181 | <SubSystem>Windows</SubSystem> |
---|
182 | <OptimizeReferences>true</OptimizeReferences> |
---|
183 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
---|
184 | <TargetMachine>MachineX86</TargetMachine> |
---|
185 | <ModuleDefinitionFile>..\RenderingPlugin.def</ModuleDefinitionFile> |
---|
186 | </Link> |
---|
187 | <PostBuildEvent> |
---|
188 | <Command>SETLOCAL |
---|
189 | |
---|
190 | if "$(PlatformShortName)" == "x86" ( |
---|
191 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86 |
---|
192 | ) else ( |
---|
193 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86_64 |
---|
194 | ) |
---|
195 | |
---|
196 | set TARGET_SHADER_PATH=$(SolutionDir)..\..\UnityProject\Assets\StreamingAssets\Shaders\DX11_9_1\ |
---|
197 | |
---|
198 | echo Target Plugin Path is %TARGET_PLUGIN_PATH% |
---|
199 | echo Target Shader Path is %TARGET_SHADER_PATH% |
---|
200 | |
---|
201 | copy /Y "$(TargetPath)" "%TARGET_PLUGIN_PATH%\$(TargetFileName)" |
---|
202 | copy /Y "$(TargetDir)SimpleVertexShader.cso" "%TARGET_SHADER_PATH%SimpleVertexShader.cso" |
---|
203 | copy /Y "$(TargetDir)SimplePixelShader.cso" "%TARGET_SHADER_PATH%SimplePixelShader.cso" |
---|
204 | |
---|
205 | |
---|
206 | ENDLOCAL |
---|
207 | </Command> |
---|
208 | </PostBuildEvent> |
---|
209 | </ItemDefinitionGroup> |
---|
210 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
---|
211 | <ClCompile> |
---|
212 | <Optimization>MaxSpeed</Optimization> |
---|
213 | <IntrinsicFunctions>true</IntrinsicFunctions> |
---|
214 | <PreprocessorDefinitions>GLEW_STATIC;WIN32;NDEBUG;_WINDOWS;_USRDLL;RENDERINGPLUGIN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
---|
215 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
---|
216 | <FunctionLevelLinking>true</FunctionLevelLinking> |
---|
217 | <PrecompiledHeader> |
---|
218 | </PrecompiledHeader> |
---|
219 | <WarningLevel>Level3</WarningLevel> |
---|
220 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
---|
221 | <AdditionalIncludeDirectories>../</AdditionalIncludeDirectories> |
---|
222 | </ClCompile> |
---|
223 | <Link> |
---|
224 | <AdditionalDependencies>opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
---|
225 | <GenerateDebugInformation>true</GenerateDebugInformation> |
---|
226 | <SubSystem>Windows</SubSystem> |
---|
227 | <OptimizeReferences>true</OptimizeReferences> |
---|
228 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
---|
229 | <ModuleDefinitionFile>..\RenderingPlugin.def</ModuleDefinitionFile> |
---|
230 | </Link> |
---|
231 | <PostBuildEvent> |
---|
232 | <Command>SETLOCAL |
---|
233 | |
---|
234 | if "$(PlatformShortName)" == "x86" ( |
---|
235 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86 |
---|
236 | ) else ( |
---|
237 | set TARGET_PLUGIN_PATH=$(SolutionDir)..\..\UnityProject\Assets\Plugins\x86_64 |
---|
238 | ) |
---|
239 | |
---|
240 | set TARGET_SHADER_PATH=$(SolutionDir)..\..\UnityProject\Assets\StreamingAssets\Shaders\DX11_9_1\ |
---|
241 | |
---|
242 | echo Target Plugin Path is %TARGET_PLUGIN_PATH% |
---|
243 | echo Target Shader Path is %TARGET_SHADER_PATH% |
---|
244 | |
---|
245 | copy /Y "$(TargetPath)" "%TARGET_PLUGIN_PATH%\$(TargetFileName)" |
---|
246 | copy /Y "$(TargetDir)SimpleVertexShader.cso" "%TARGET_SHADER_PATH%SimpleVertexShader.cso" |
---|
247 | copy /Y "$(TargetDir)SimplePixelShader.cso" "%TARGET_SHADER_PATH%SimplePixelShader.cso" |
---|
248 | |
---|
249 | |
---|
250 | ENDLOCAL |
---|
251 | </Command> |
---|
252 | </PostBuildEvent> |
---|
253 | </ItemDefinitionGroup> |
---|
254 | <ItemGroup> |
---|
255 | <ClCompile Include="..\GL\glew.c" /> |
---|
256 | <ClCompile Include="..\RenderingPlugin.cpp" /> |
---|
257 | </ItemGroup> |
---|
258 | <ItemGroup> |
---|
259 | <ClInclude Include="..\GL\glew.h" /> |
---|
260 | <ClInclude Include="..\GL\glxew.h" /> |
---|
261 | <ClInclude Include="..\GL\wglew.h" /> |
---|
262 | <ClInclude Include="..\RenderingPlugin.h" /> |
---|
263 | </ItemGroup> |
---|
264 | <ItemGroup> |
---|
265 | <FxCompile Include="..\Shaders\SimplePixelShader.hlsl"> |
---|
266 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">PS</EntryPointName> |
---|
267 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">PS</EntryPointName> |
---|
268 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">PS</EntryPointName> |
---|
269 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">PS</EntryPointName> |
---|
270 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Pixel</ShaderType> |
---|
271 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Pixel</ShaderType> |
---|
272 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Pixel</ShaderType> |
---|
273 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Pixel</ShaderType> |
---|
274 | <ShaderModel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">4.1</ShaderModel> |
---|
275 | </FxCompile> |
---|
276 | <FxCompile Include="..\Shaders\SimpleVertexShader.hlsl"> |
---|
277 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">VS</EntryPointName> |
---|
278 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">VS</EntryPointName> |
---|
279 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">VS</EntryPointName> |
---|
280 | <EntryPointName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">VS</EntryPointName> |
---|
281 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Vertex</ShaderType> |
---|
282 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Vertex</ShaderType> |
---|
283 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Vertex</ShaderType> |
---|
284 | <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Vertex</ShaderType> |
---|
285 | <ShaderModel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">4.0_level_9_1</ShaderModel> |
---|
286 | </FxCompile> |
---|
287 | </ItemGroup> |
---|
288 | <ItemGroup> |
---|
289 | <None Include="..\RenderingPlugin.def" /> |
---|
290 | </ItemGroup> |
---|
291 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
---|
292 | <ImportGroup Label="ExtensionTargets"> |
---|
293 | </ImportGroup> |
---|
294 | </Project> |
---|