summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-05-20 17:31:02 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-06-19 23:46:05 +0800
commit28b8541847eeb0a0e05562946a41ed52770fd816 (patch)
tree9811a0086380baf4353c834314fe38d8f1ce5bb2 /build
parentc207b8d36341d320ca3bf88ece63d2721a63c7b6 (diff)
downloadgtk+-28b8541847eeb0a0e05562946a41ed52770fd816.tar.gz
gtk-demo: Don't Distribute demos.h
Since demos.h is now generated according to the platform for which GTK+ is built, don't distribute it. Generate a Windows-specific demos.h.win32 and distribute that instead, in which the Visual Studio build files will copy it to demos.h, so that the build will proceed normally. https://bugzilla.gnome.org/show_bug.cgi?id=749622
Diffstat (limited to 'build')
-rw-r--r--build/win32/vs10/gtk-gen-srcs.props4
-rw-r--r--build/win32/vs10/gtk-prebuild.vcxproj26
-rw-r--r--build/win32/vs9/gtk-gen-srcs.vsprops4
-rw-r--r--build/win32/vs9/gtk-prebuild.vcproj58
4 files changed, 92 insertions, 0 deletions
diff --git a/build/win32/vs10/gtk-gen-srcs.props b/build/win32/vs10/gtk-gen-srcs.props
index f74aaa518f..da22573d53 100644
--- a/build/win32/vs10/gtk-gen-srcs.props
+++ b/build/win32/vs10/gtk-gen-srcs.props
@@ -65,6 +65,7 @@ $(PythonPath)\python $(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix
cd $(SolutionDir)
</GenerateGtkDbusBuiltSources>
<GenerateGtkWin32RC>$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest</GenerateGtkWin32RC>
+ <CopyDemosH>copy ..\..\..\demos\gtk-demo\demos.h.win32 ..\..\..\demos\gtk-demo\demos.h</CopyDemosH>
</PropertyGroup>
<PropertyGroup>
<_PropertySheetDisplayName>gtkgensrcsprops</_PropertySheetDisplayName>
@@ -85,5 +86,8 @@ cd $(SolutionDir)
<BuildMacro Include="GenerateGtkWin32RC">
<Value>$(GenerateGtkWin32RC)</Value>
</BuildMacro>
+ <BuildMacro Include="CopyDemosH">
+ <Value>$(CopyDemosH)</Value>
+ </BuildMacro>
</ItemGroup>
</Project>
diff --git a/build/win32/vs10/gtk-prebuild.vcxproj b/build/win32/vs10/gtk-prebuild.vcxproj
index b5031b499e..5a5df1d93c 100644
--- a/build/win32/vs10/gtk-prebuild.vcxproj
+++ b/build/win32/vs10/gtk-prebuild.vcxproj
@@ -209,6 +209,32 @@
<Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">$(GenGdkConfigHBroadway)</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">..\..\..\gdk\gdkconfig.h;..\..\..\GDK_BROADWAY_BUILD;..\..\..\MSVC_$(Configuration)_Broadway;%(Outputs)</Outputs>
</CustomBuild>
+ <CustomBuild Include="..\..\..\demos\gtk-demo\demos.h.win32">
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug_Broadway|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|Win32'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">Copying demos.h from demos.h.win32...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">$(CopyDemosH)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release_Broadway|x64'">..\..\..\demos\gtk-demo\demos.h;%(Outputs)</Outputs>
+ </CustomBuild>
</ItemGroup>
<ItemGroup>
</ItemGroup>
diff --git a/build/win32/vs9/gtk-gen-srcs.vsprops b/build/win32/vs9/gtk-gen-srcs.vsprops
index ba483effbc..6402232886 100644
--- a/build/win32/vs9/gtk-gen-srcs.vsprops
+++ b/build/win32/vs9/gtk-gen-srcs.vsprops
@@ -66,4 +66,8 @@ cd $(SolutionDir)&#x0D;&#x0A;
Name="GenerateGtkWin32RC"
Value="$(PythonPath)\python ..\process-in-win32.py --gtkwin32rc --gtk3manifest"
/>
+ <UserMacro
+ Name="CopyDemosH"
+ Value="copy ..\..\..\demos\gtk-demo\demos.h.win32 ..\..\..\demos\gtk-demo\demos.h"
+ />
</VisualStudioPropertySheet>
diff --git a/build/win32/vs9/gtk-prebuild.vcproj b/build/win32/vs9/gtk-prebuild.vcproj
index 1c43f726eb..8f31a4b55c 100644
--- a/build/win32/vs9/gtk-prebuild.vcproj
+++ b/build/win32/vs9/gtk-prebuild.vcproj
@@ -217,6 +217,64 @@
/>
</FileConfiguration>
</File>
+ <File RelativePath="..\..\..\demos\gtk-demo\demos.h.win32">
+ <FileConfiguration Name="Debug|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_Broadway|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_Broadway|Win32">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Debug_Broadway|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration Name="Release_Broadway|x64">
+ <Tool Name="VCCustomBuildTool"
+ Description="Copying demos.h from demos.h.win32..."
+ CommandLine="$(CopyDemosH)"
+ Outputs="..\..\..\demos\gtk-demo\demos.h"
+ />
+ </FileConfiguration>
+ </File>
</Filter>
</Files>
<Globals>