[cogl/cogl-1.18] MSVC 2008 Projects: Use Custom Build Rules
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.18] MSVC 2008 Projects: Use Custom Build Rules
- Date: Thu, 27 Feb 2014 09:44:09 +0000 (UTC)
commit 8b9f545e4c4ce0009b02315f5f033e7ff77cd6fe
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Feb 27 17:43:59 2014 +0800
MSVC 2008 Projects: Use Custom Build Rules
...for all of the copying of the pre-configured headers for Cogl. This
makes it much easier for people using the projects for building Cogl to
clean up files that are "generated", and this commit is the last bit for
it. Also clean up the property sheets as a result.
Also fix the Cogl project that it does indeed look for headers in
cogl/deprecated, so that the build is fixed.
Similar updates to the Visual Studio 2010 Projects will follow.
build/win32/vs9/cogl.vcprojin | 232 ++++++++++++++++++++++++++++++++++-------
build/win32/vs9/cogl.vsprops | 29 ++----
2 files changed, 202 insertions(+), 59 deletions(-)
---
diff --git a/build/win32/vs9/cogl.vcprojin b/build/win32/vs9/cogl.vcprojin
index f5002a0..7c6e82d 100644
--- a/build/win32/vs9/cogl.vcprojin
+++ b/build/win32/vs9/cogl.vcprojin
@@ -27,15 +27,12 @@
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefines)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(DebugLibBuildDefines);$(CoglBuildDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -65,15 +62,12 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefinesSDL)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(DebugLibBuildDefines);$(CoglBuildDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -102,15 +96,12 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefines)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(DebugLibBuildDefines);$(CoglBuildDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -140,15 +131,12 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefinesSDL)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(DebugLibBuildDefines);$(CoglBuildDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@@ -178,15 +166,12 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefines)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="$(ReleaseLibBuildDefines);$(CoglBuildDefines)"
RuntimeLibrary="2"
@@ -219,15 +204,12 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefinesSDL)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="$(ReleaseLibBuildDefines);$(CoglBuildDefines)"
RuntimeLibrary="2"
@@ -258,14 +240,11 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefines)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(ReleaseLibBuildDefines);$(CoglBuildDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
@@ -295,14 +274,11 @@ $(PreBuildCmd)
>
<Tool
Name="VCPreBuildEventTool"
- CommandLine="
-$(DoDefinesSDL)
-$(PreBuildCmd)
- "
+ CommandLine=""
/>
<Tool
Name="VCCLCompilerTool"
-
AdditionalIncludeDirectories="..\..\..\cogl\tesselator;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
+
AdditionalIncludeDirectories="..\..\..\cogl\deprecated;..\..\..\cogl\winsys;..\..\..\cogl\driver\gl;..\..\..\cogl\driver\gl\gl"
PreprocessorDefinitions="$(ReleaseLibBuildDefines);$(CoglBuildDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
@@ -364,6 +340,182 @@ $(PreBuildCmd)
>
</Filter>
<Filter Name="Resource Files">
+ <File RelativePath="..\..\..\config.h.win32">
+ <FileConfiguration Name="Debug|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying config.h from config.h.win32"
+ CommandLine="$(CopyConfigH)"
+ Outputs="..\..\..\config.h"
+ />
+ </FileConfiguration>
+ </File>
+ <File RelativePath="..\..\..\cogl\cogl-gl-header.h.win32">
+ <FileConfiguration Name="Debug|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-gl-header.h from
cogl-gl-header.h.win32"
+ CommandLine="$(CopyGLHeaderH)"
+ Outputs="..\..\..\cogl\cogl-gl-header.h"
+ />
+ </FileConfiguration>
+ </File>
+ <File RelativePath="..\..\..\cogl\cogl-defines.h.win32">
+ <FileConfiguration Name="Debug|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32..."
+ CommandLine="$(CopyDefinesH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\WGL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32..."
+ CommandLine="$(CopyDefinesH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\WGL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32..."
+ CommandLine="$(CopyDefinesH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\WGL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32..."
+ CommandLine="$(CopyDefinesH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\WGL_DEFINES"
+ />
+ </FileConfiguration>
+ </File>
+ <File RelativePath="..\..\..\cogl\cogl-defines.h.win32_sdl">
+ <FileConfiguration Name="Debug_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32_sdl..."
+ CommandLine="$(CopyDefinesSDLH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\SDL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32_sdl..."
+ CommandLine="$(CopyDefinesSDLH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\SDL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32_sdl..."
+ CommandLine="$(CopyDefinesSDLH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\SDL_DEFINES"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_SDL|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying cogl-defines.h from
cogl-defines.h.win32_sdl..."
+ CommandLine="$(CopyDefinesSDLH)"
+
Outputs="..\..\..\cogl\cogl-defines.h;..\..\..\cogl\SDL_DEFINES"
+ />
+ </FileConfiguration>
+ </File>
<File RelativePath="..\..\..\cogl\cogl.symbols">
<FileConfiguration Name="Debug|Win32">
<Tool Name="VCCustomBuildTool"
diff --git a/build/win32/vs9/cogl.vsprops b/build/win32/vs9/cogl.vsprops
index ed596bf..913783b 100644
--- a/build/win32/vs9/cogl.vsprops
+++ b/build/win32/vs9/cogl.vsprops
@@ -74,7 +74,7 @@
Value="COGL_COMPILATION"
/>
<UserMacro
- Name="DoDefinesSDL"
+ Name="CopyDefinesSDLH"
Value="
if exist ..\..\..\cogl\SDL_DEFINES goto DONE_COGL_DEFINES_H

if not exist ..\..\..\cogl\WGL_DEFINES goto DO_COGL_DEFINES_H

@@ -87,7 +87,7 @@ copy ..\..\..\cogl\SDL_DEFINES ..\..\..\cogl\cogl-defines.h

"
/>
<UserMacro
- Name="DoDefines"
+ Name="CopyDefinesH"
Value="
if exist ..\..\..\cogl\WGL_DEFINES goto DONE_COGL_DEFINES_H

if not exist ..\..\..\cogl\SDL_DEFINES goto DO_COGL_DEFINES_H

@@ -100,52 +100,43 @@ copy ..\..\..\cogl\WGL_DEFINES ..\..\..\cogl\cogl-defines.h

"
/>
<UserMacro
- Name="PreBuildCmd"
- Value="
-if exist ..\..\..\config.h goto DONE_CONFIG_H

-copy ..\..\..\config.h.win32 ..\..\..\config.h

-if not exist ..\..\..\cogl\cogl-gl-header.h copy ..\..\..\cogl\cogl-gl-header.h.win32
..\..\..\cogl\cogl-gl-header.h

-:DONE_CONFIG_H

-"
+ Name="CopyConfigH"
+ Value="copy ..\..\..\config.h.win32 ..\..\..\config.h"
+ />
+ <UserMacro
+ Name="CopyGLHeaderH"
+ Value="copy ..\..\..\cogl\cogl-gl-header.h.win32 ..\..\..\cogl\cogl-gl-header.h"
/>
<UserMacro
Name="GenCoglPathEnumsH"
Value="
-if exist ..\..\..\cogl-path\cogl-path-enum-types.h goto DONE_COGLPATH_ENUMS_H

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)

-:DONE_COGLPATH_ENUMS_H

"
/>
<UserMacro
Name="GenCoglPathEnumsC"
Value="
-if exist ..\..\..\cogl-path\cogl-path-enum-types.c goto DONE_COGLPATH_ENUMS_C

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)

-:DONE_COGLPATH_ENUMS_C

"
/>
<UserMacro
Name="GenCoglEnumsH"
Value="
-if exist ..\..\..\cogl\cogl-enum-types.h goto DONE_COGL_ENUMS_H

cd ..\..\..\cogl

-perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-enum-types.h.in cogl1-context.h cogl-bitmap.h
cogl-color.h cogl-fixed.h cogl-material-compat.h cogl-matrix.h cogl-offscreen.h cogl-primitives.h
cogl-shader.h cogl-texture.h cogl-types.h cogl-vertex-buffer.h cogl-clutter.h cogl.h cogl-win32-renderer.h
> cogl-enum-types.h

+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)

-:DONE_COGL_ENUMS_H

"
/>
<UserMacro
Name="GenCoglEnumsC"
Value="
-if exist ..\..\..\cogl\cogl-enum-types.c goto DONE_COGL_ENUMS_C

cd ..\..\..\cogl

-perl $(GlibEtcInstallRoot)\bin\glib-mkenums --template cogl-enum-types.c.in cogl1-context.h cogl-bitmap.h
cogl-color.h cogl-fixed.h cogl-material-compat.h cogl-matrix.h cogl-offscreen.h cogl-primitives.h
cogl-shader.h cogl-texture.h cogl-types.h cogl-vertex-buffer.h cogl-clutter.h cogl.h cogl-win32-renderer.h
> cogl-enum-types.c

+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)

-:DONE_COGL_ENUMS_C

"
/>
<UserMacro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]