[tasque] [xbuild] Move bin items def of Sqlite into target BeforeInstall



commit b4ff742e1f8384bfc1b5d294a5d11c614fbd3756
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Oct 20 21:50:30 2012 +0200

    [xbuild] Move bin items def of Sqlite into target BeforeInstall
    
    The definition of those items requires PkgLibDir to be set,
    which is the case _after_ _SetupInitialProperties has run.

 src/Addins/Backends/Sqlite/SqliteBackend.csproj |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/src/Addins/Backends/Sqlite/SqliteBackend.csproj b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
index 6cd5d74..435fda4 100644
--- a/src/Addins/Backends/Sqlite/SqliteBackend.csproj
+++ b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
@@ -87,17 +87,15 @@
     <TasqueCompile Include="SqliteBackend.cs" />
     <TasqueCompile Include="Database.cs" />
   </ItemGroup>
-  <ItemGroup Condition=" '$(Configuration)' == 'GtkWinDebug' Or '$(Configuration)' == 'GtkWinRelease' ">
-    <InstallFile Include="..\..\..\..\winbin\sqlite3.dll">
-      <Link>winbin\sqlite3.dll</Link>
-      <InstallPath>$(PkgLibDir)</InstallPath>
-      <InstallFileName>sqlite3.dll</InstallFileName>
-    </InstallFile>
-    <InstallFile Include="..\..\..\..\winbin\Mono.Data.Sqlite.dll">
-      <Link>winbin\Mono.Data.Sqlite.dll</Link>
-      <InstallPath>$(PkgLibDir)</InstallPath>
-      <InstallFileName>Mono.Data.Sqlite.dll</InstallFileName>
-    </InstallFile>
-  </ItemGroup>
   <Import Project="..\..\..\..\build\X.CSharp.targets" />
+  <Target Name="BeforeInstall" Condition=" '$(Configuration)' == 'GtkWinDebug' Or '$(Configuration)' == 'GtkWinRelease' ">
+    <CreateItem Include="..\..\..\..\winbin\sqlite3.dll"
+        AdditionalMetadata="InstallPath=$(PkgLibDir);InstallFileName=sqlite3.dll">
+      <Output TaskParameter="Include" ItemName="InstallFile" />
+    </CreateItem>
+    <CreateItem Include="..\..\..\..\winbin\Mono.Data.Sqlite.dll"
+        AdditionalMetadata="InstallPath=$(PkgLibDir);InstallFileName=Mono.Data.Sqlite.dll">
+      <Output TaskParameter="Include" ItemName="InstallFile" />
+    </CreateItem>
+  </Target>
 </Project>



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