[tasque/transition: 51/213] Add build condition to some source files



commit 67de5e2226d91faa7633d08804f0c62c85098961
Author: Antonius Riha <antoniusriha gmail com>
Date:   Fri Jun 1 11:13:16 2012 +0200

    Add build condition to some source files
    
    E.g.: GnomeApplication.cs is only to be compiled if the dependencies (gnome-sharp.dll) are present on the build system. So, it will only be included in the build process, if it is a GnomeDebug or GnomeRelease build.

 src/tasque/tasque.csproj |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/tasque/tasque.csproj b/src/tasque/tasque.csproj
index 555e29c..98e2f76 100644
--- a/src/tasque/tasque.csproj
+++ b/src/tasque/tasque.csproj
@@ -181,9 +181,6 @@
     </None>
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="RemoteControl.cs" />
-    <Compile Include="RemoteControlProxy.cs" />
-    <Compile Include="GnomeApplication.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="..\..\build\CommonAssemblyInfo.cs">
       <Link>Properties\CommonAssemblyInfo.cs</Link>
@@ -234,10 +231,17 @@
     <Compile Include="TaskWindow.cs" />
     <Compile Include="Utilities.cs" />
   </ItemGroup>
-  <ItemGroup Condition=" '$(Platform)' == 'AnyCPU' and ( '$(Configuration)' == 'GtkLinuxDebug' or '$(Configuration)' == 'GtkLinuxRelease' or '$(Configuration)' == 'GtkWinDebug' or '$(Configuration)' == 'GtkWinRelease' or '$(Configuration)' == 'GtkMacDebug' or '$(Configuration)' == 'GtkMacRelease' ) ">
+  <ItemGroup Condition=" '$(Configuration)' == 'GnomeDebug' or '$(Configuration)' == 'GnomeRelease' ">
+    <Compile Include="GnomeApplication.cs" />
+  </ItemGroup>
+  <ItemGroup Condition=" '$(Configuration)' == 'GnomeDebug' or '$(Configuration)' == 'GnomeRelease' or '$(Configuration)' == 'GtkLinuxDebug' or '$(Configuration)' == 'GtkLinuxRelease' ">
+    <Compile Include="RemoteControl.cs" />
+    <Compile Include="RemoteControlProxy.cs" />
+  </ItemGroup>
+  <ItemGroup Condition=" '$(Configuration)' == 'GtkLinuxDebug' or '$(Configuration)' == 'GtkLinuxRelease' or '$(Configuration)' == 'GtkWinDebug' or '$(Configuration)' == 'GtkWinRelease' or '$(Configuration)' == 'GtkMacDebug' or '$(Configuration)' == 'GtkMacRelease' ">
     <Compile Include="GtkApplication.cs" />
   </ItemGroup>
-  <ItemGroup Condition=" '$(Platform)' == 'AnyCPU' and ( '$(Configuration)' == 'GtkMacDebug' or '$(Configuration)' == 'GtkMacRelease' ) ">
+  <ItemGroup Condition=" '$(Configuration)' == 'GtkMacDebug' or '$(Configuration)' == 'GtkMacRelease' ">
     <Compile Include="OSXApplication.cs" />
   </ItemGroup>
   <ItemGroup>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]