mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
206ea0de6b
This updates the Visual Studio 2010 Projects in the following ways, similar to the recent changes to the Visual Studio 2008 projects: -Make all the copying of the pre-configured header files custom build rules, so that it is cleaner when people clean their builds, and the files can be re-copied when updated. -Split up the property sheets, so to ease future maintenance -Make the cogl-path library built as a DLL -Build and link against SDL-2.x for SDL builds -Make everything except the .sln file and the README.txt file use UNIX line endings, for easier maintenance. -Merge cogl_sdl.sln and install-sdl.vcxproj into cogl.sln and install.vcxproj respectively. -Update build of the conformance test to not use COGL_COMPILATION, and make it link to cogl-path.
108 lines
5.2 KiB
XML
108 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ImportGroup Label="PropertySheets">
|
|
<Import Project="cogl-build-defines.props" />
|
|
</ImportGroup>
|
|
<PropertyGroup Label="UserMacros">
|
|
<CopyDefinesSDLH>
|
|
if exist ..\..\..\cogl\SDL_DEFINES goto DONE_COGL_DEFINES_H
|
|
if not exist ..\..\..\cogl\WGL_DEFINES goto DO_COGL_DEFINES_H
|
|
del ..\..\..\cogl\cogl-defines.h
|
|
del ..\..\..\cogl\WGL_DEFINES
|
|
:DO_COGL_DEFINES_H
|
|
copy ..\..\..\cogl\cogl-defines.h.win32_sdl ..\..\..\cogl\SDL_DEFINES
|
|
copy ..\..\..\cogl\SDL_DEFINES ..\..\..\cogl\cogl-defines.h
|
|
:DONE_COGL_DEFINES_H
|
|
</CopyDefinesSDLH>
|
|
<CopyDefinesH>
|
|
if exist ..\..\..\cogl\WGL_DEFINES goto DONE_COGL_DEFINES_H
|
|
if not exist ..\..\..\cogl\SDL_DEFINES goto DO_COGL_DEFINES_H
|
|
del ..\..\..\cogl\cogl-defines.h
|
|
del ..\..\..\cogl\SDL_DEFINES
|
|
:DO_COGL_DEFINES_H
|
|
copy ..\..\..\cogl\cogl-defines.h.win32 ..\..\..\cogl\WGL_DEFINES
|
|
copy ..\..\..\cogl\WGL_DEFINES ..\..\..\cogl\cogl-defines.h
|
|
:DONE_COGL_DEFINES_H
|
|
</CopyDefinesH>
|
|
<CopyConfigH>copy ..\..\..\config.h.win32 ..\..\..\config.h</CopyConfigH>
|
|
<CopyGLHeaderH>copy ..\..\..\cogl\cogl-gl-header.h.win32 ..\..\..\cogl\cogl-gl-header.h</CopyGLHeaderH>
|
|
<GenCoglPathEnumsH>
|
|
cd ..\..\..\cogl-path
|
|
perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-path-enum-types.h.in cogl-path-types.h cogl1-path-functions.h > cogl-path-enum-types.h
|
|
cd $(SolutionDir)
|
|
</GenCoglPathEnumsH>
|
|
<GenCoglPathEnumsC>
|
|
cd ..\..\..\cogl-path
|
|
perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-path-enum-types.c.in cogl-path-types.h cogl1-path-functions.h > cogl-path-enum-types.c
|
|
cd $(SolutionDir)
|
|
</GenCoglPathEnumsC>
|
|
<GenCoglEnumsH>
|
|
cd ..\..\..\cogl
|
|
perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-enum-types.h.in deprecated\cogl-clip-state.h deprecated\cogl-fixed.h deprecated\cogl-material-compat.h deprecated\cogl-vertex-buffer.h deprecated\cogl-shader.h deprecated\cogl-clutter.h deprecated\cogl-type-casts.h deprecated\cogl-framebuffer-deprecated.h deprecated\cogl-texture-deprecated.h deprecated\cogl-auto-texture.h cogl1-context.h cogl-bitmap.h cogl-color.h cogl-matrix.h cogl-offscreen.h cogl-primitives.h cogl-texture.h cogl-types.h cogl.h cogl-win32-renderer.h > cogl-enum-types.h
|
|
cd $(SolutionDir)
|
|
</GenCoglEnumsH>
|
|
<GenCoglEnumsC>
|
|
cd ..\..\..\cogl
|
|
perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-enum-types.c.in deprecated\cogl-clip-state.h deprecated\cogl-fixed.h deprecated\cogl-material-compat.h deprecated\cogl-vertex-buffer.h deprecated\cogl-shader.h deprecated\cogl-clutter.h deprecated\cogl-type-casts.h deprecated\cogl-framebuffer-deprecated.h deprecated\cogl-texture-deprecated.h deprecated\cogl-auto-texture.h cogl1-context.h cogl-bitmap.h cogl-color.h cogl-matrix.h cogl-offscreen.h cogl-primitives.h cogl-texture.h cogl-types.h cogl.h cogl-win32-renderer.h > cogl-enum-types.c
|
|
cd $(SolutionDir)
|
|
</GenCoglEnumsC>
|
|
<GenerateCoglDef>
|
|
echo EXPORTS > $(DefDir)\cogl.def
|
|
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols >> $(DefDir)\cogl.def
|
|
</GenerateCoglDef>
|
|
<GenerateCoglSDLDef>
|
|
echo EXPORTS > $(DefDir)\cogl.def
|
|
cl -EP -D_COGL_SUPPORTS_GTYPE_INTEGRATION -DCOGL_HAS_WIN32_SUPPORT -DCOGL_HAS_GLIB_SUPPORT -DCOGL_HAS_SDL_SUPPORT -DCOGL_ENABLE_EXPERIMENTAL_API ..\..\..\cogl\cogl.symbols >> $(DefDir)\cogl.def
|
|
</GenerateCoglSDLDef>
|
|
<GenerateCoglPathDef>
|
|
echo EXPORTS > $(DefDir)\cogl-path.def
|
|
cl -EP ..\..\..\cogl-path\cogl-path.symbols >> $(DefDir)\cogl-path.def
|
|
</GenerateCoglPathDef>
|
|
<GenerateCoglPangoDef>
|
|
echo EXPORTS > $(DefDir)\cogl-pango.def
|
|
cl -EP ..\..\..\cogl-pango\cogl-pango.symbols >> $(DefDir)\cogl-pango.def
|
|
</GenerateCoglPangoDef>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<_PropertySheetDisplayName>coglprops</_PropertySheetDisplayName>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<BuildMacro Include="CopyConfigH">
|
|
<Value>$(CopyConfigH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="CopyGLHeaderH">
|
|
<Value>$(CopyGLHeaderH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="CopyDefinesSDLH">
|
|
<Value>$(CopyDefinesSDLH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="CopyDefinesH">
|
|
<Value>$(CopyDefinesH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenCoglPathEnumsH">
|
|
<Value>$(GenCoglPathEnumsH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenCoglPathEnumsC">
|
|
<Value>$(GenCoglPathEnumsC)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenCoglEnumsH">
|
|
<Value>$(GenCoglEnumsH)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenCoglEnumsC">
|
|
<Value>$(GenCoglEnumsC)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenerateCoglDef">
|
|
<Value>$(GenerateCoglDef)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenerateCoglSDLDef">
|
|
<Value>$(GenerateCoglDef)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenerateCoglPathDef">
|
|
<Value>$(GenerateCoglPathDef)</Value>
|
|
</BuildMacro>
|
|
<BuildMacro Include="GenerateCoglPangoDef">
|
|
<Value>$(GenerateCoglPangoDef)</Value>
|
|
</BuildMacro>
|
|
</ItemGroup>
|
|
</Project>
|