source: trunk/win32/Lol.Core.Vars.props @ 1448

Last change on this file since 1448 was 1448, checked in by sam, 8 years ago

build: allow to use OpenGL instead of Direct3D in Visual Studio by simply
changing a configuration variable in a file.

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  <ImportGroup Label="PropertySheets" />
4  <PropertyGroup Label="UserMacros">
5    <ContribDir>$(SolutionDir)\..\contrib</ContribDir>
6
7    <!-- Flex & Bison -->
8    <FlexDir>$(ContribDir)\flex-2.5.35</FlexDir>
9    <FlexIncludes>$(FlexDir)\include</FlexIncludes>
10
11    <!-- SDL -->
12    <SdlDir>$(ContribDir)\sdl-1.2.14</SdlDir>
13    <SdlImageDir>$(ContribDir)\sdl-image-1.2.10</SdlImageDir>
14    <SdlMixerDir>$(ContribDir)\sdl-mixer-1.2.11</SdlMixerDir>
15    <SdlIncludes>$(SdlDir)\include;$(SdlImageDir)\include;$(SdlMixerDir)\include</SdlIncludes>
16    <SdlLibs Condition="'$(Platform)'=='Win32'">$(SdlDir)\lib\i686-w64-mingw32;$(SdlImageDir)\lib\i686-w64-mingw32;$(SdlMixerDir)\lib\i686-w64-mingw32</SdlLibs>
17    <SdlLibs Condition="'$(Platform)'=='x64'">$(SdlDir)\lib\x86_64-w64-mingw32</SdlLibs>
18    <SdlDeps Condition="'$(Platform)'=='Win32'">SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib</SdlDeps>
19    <SdlDeps Condition="'$(Platform)'=='x64'">libSDL.a;libSDLmain.a</SdlDeps>
20
21    <!-- GTK+ & GtkGl -->
22    <GtkDir>$(ContribDir)\gtk-2.22.1</GtkDir>
23    <GtkGlDir>$(ContribDir)\gtkglarea-2.0.1</GtkGlDir>
24    <GtkIncludes>$(GtkDir)\lib\glib-2.0\include;$(GtkDir)\lib\gtk-2.0\include;$(GtkDir)\include\glib-2.0;$(GtkDir)\include\gtk-2.0;$(GtkDir)\include\cairo;$(GtkDir)\include\pango-1.0;$(GtkDir)\include\gdk-pixbuf-2.0;$(GtkDir)\include\atk-1.0;$(GtkGlDir)\include</GtkIncludes>
25    <GtkLibs>$(GtkDir)\lib;$(GtkDir)\bin;$(GtkGlDir)\lib</GtkLibs>
26    <GtkDeps>gobject-2.0.lib;gthread-2.0.lib;glib-2.0.lib;gdk-win32-2.0.lib;gtk-win32-2.0.lib;gtkgl-2.0.lib</GtkDeps>
27
28    <!-- GDI+ -->
29    <GdiDeps>Gdiplus.lib</GdiDeps>
30
31    <!-- OpenGL & GLEW -->
32    <GlewDir>$(ContribDir)\glew-1.7.0</GlewDir>
33    <GlIncludes>$(GlewDir)\include\GL</GlIncludes>
34    <GlLibs Condition="'$(Platform)'=='Win32'">$(GlewDir)\lib\i686-w64-mingw32</GlLibs>
35    <GlLibs Condition="'$(Platform)'=='x64'">$(GlewDir)\lib\x86_64-w64-mingw32</GlLibs>
36    <GlDeps>opengl32.lib;glew32.lib</GlDeps>
37
38    <!-- Direct3D 9 -->
39    <D3d9Includes>$(DXSDK_DIR)\Include</D3d9Includes>
40    <D3d9Libs Condition="'$(Platform)'=='Win32'">$(DXSDK_DIR)\Lib\x86</D3d9Libs>
41    <D3d9Libs Condition="'$(Platform)'=='x64'">$(DXSDK_DIR)\Lib\x64</D3d9Libs>
42    <D3d9Deps Condition="'$(Configuration)'=='Release'">d3d9.lib;d3dx9.lib;xinput.lib</D3d9Deps>
43    <D3d9Deps Condition="'$(Configuration)'=='Debug'">d3d9.lib;d3dx9d.lib;xinput.lib</D3d9Deps>
44
45    <Win32Defines Condition="'$(UseOpenGL)'=='true'">HAVE_SDL_H;USE_SDL;USE_GDIPLUS;HAVE_GL_2X;USE_GLEW;GLEW_STATIC</Win32Defines>
46    <Win32Defines Condition="'$(UseOpenGL)'=='false'">HAVE_SDL_H;USE_SDL;USE_GDIPLUS;USE_D3D9</Win32Defines>
47    <XboxDefines></XboxDefines>
48  </PropertyGroup>
49  <PropertyGroup />
50  <ItemDefinitionGroup />
51  <ItemGroup>
52    <BuildMacro Include="ContribDir"><Value>$(ContribDir)</Value></BuildMacro>
53    <BuildMacro Include="FlexDir"><Value>$(FlexDir)</Value></BuildMacro>
54    <BuildMacro Include="FlexIncludes"><Value>$(FlexIncludes)</Value></BuildMacro>
55    <BuildMacro Include="SdlDir"><Value>$(SdlDir)</Value></BuildMacro>
56    <BuildMacro Include="SdlImageDir"><Value>$(SdlImageDir)</Value></BuildMacro>
57    <BuildMacro Include="SdlMixerDir"><Value>$(SdlMixerDir)</Value></BuildMacro>
58    <BuildMacro Include="SdlIncludes"><Value>$(SdlIncludes)</Value></BuildMacro>
59    <BuildMacro Include="SdlLibs"><Value>$(SdlLibs)</Value></BuildMacro>
60    <BuildMacro Include="SdlDeps"><Value>$(SdlDeps)</Value></BuildMacro>
61    <BuildMacro Include="GtkDir"><Value>$(GtkDir)</Value></BuildMacro>
62    <BuildMacro Include="GtkGlDir"><Value>$(GtkGlDir)</Value></BuildMacro>
63    <BuildMacro Include="GtkIncludes"><Value>$(GtkIncludes)</Value></BuildMacro>
64    <BuildMacro Include="GtkLibs"><Value>$(GtkLibs)</Value></BuildMacro>
65    <BuildMacro Include="GtkDeps"><Value>$(GtkDeps)</Value></BuildMacro>
66    <BuildMacro Include="GdiDeps"><Value>$(GdiDeps)</Value></BuildMacro>
67    <BuildMacro Include="GlewDir"><Value>$(GlewDir)</Value></BuildMacro>
68    <BuildMacro Include="GlIncludes"><Value>$(GlIncludes)</Value></BuildMacro>
69    <BuildMacro Include="GlLibs"><Value>$(GlLibs)</Value></BuildMacro>
70    <BuildMacro Include="GlDeps"><Value>$(GlDeps)</Value></BuildMacro>
71    <BuildMacro Include="D3d9Includes"><Value>$(D3d9Includes)</Value></BuildMacro>
72    <BuildMacro Include="D3d9Libs"><Value>$(D3d9Libs)</Value></BuildMacro>
73    <BuildMacro Include="D3d9Deps"><Value>$(D3d9Deps)</Value></BuildMacro>
74    <BuildMacro Include="Win32Defines"><Value>$(Win32Defines)</Value></BuildMacro>
75    <BuildMacro Include="XboxDefines"><Value>$(XboxDefines)</Value></BuildMacro>
76  </ItemGroup>
77  <PropertyGroup>
78    <OutDir>$(Platform) $(Configuration)\</OutDir>
79    <IntDir>$(Platform) $(Configuration)\$(ProjectName)\</IntDir>
80  </PropertyGroup>
81</Project>
Note: See TracBrowser for help on using the repository browser.