]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Add resource file to coinstaller
authorOwen Smith <owen.smith@citrix.com>
Thu, 23 Feb 2023 09:51:29 +0000 (09:51 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 23 Mar 2023 17:01:02 +0000 (17:01 +0000)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/coinst/xenvbd_coinst.rc [new file with mode: 0644]
vs2015/xenvbd_coinst/xenvbd_coinst.vcxproj
vs2017/xenvbd_coinst/xenvbd_coinst.vcxproj
vs2019/xenvbd_coinst/xenvbd_coinst.vcxproj
vs2022/xenvbd_coinst/xenvbd_coinst.vcxproj

diff --git a/src/coinst/xenvbd_coinst.rc b/src/coinst/xenvbd_coinst.rc
new file mode 100644 (file)
index 0000000..9fd16d5
--- /dev/null
@@ -0,0 +1,56 @@
+/* Copyright (c) Citrix Systems Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms,
+ * with or without modification, are permitted provided
+ * that the following conditions are met:
+ *
+ * *   Redistributions of source code must retain the above
+ *     copyright notice, this list of conditions and the
+ *     following disclaimer.
+ * *   Redistributions in binary form must reproduce the above
+ *     copyright notice, this list of conditions and the
+ *     following disclaimer in the documentation and/or other
+ *     materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <windows.h>
+#include <ntverp.h>
+
+
+#undef VER_COMPANYNAME_STR
+#undef VER_PRODUCTNAME_STR
+#undef VER_PRODUCTVERSION
+#undef VER_PRODUCTVERSION_STR
+
+#include <version.h>
+
+#define VER_COMPANYNAME_STR         VENDOR_NAME_STR
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
+
+#define VER_PRODUCTNAME_STR         "XENVBD_COINST"
+#define VER_PRODUCTVERSION          MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
+#define VER_PRODUCTVERSION_STR      MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR
+
+#define VER_INTERNALNAME_STR        "XENVBD_COINST.DLL"
+#define VER_FILEDESCRIPTION_STR     "XENVBD_COINST"
+
+#define VER_FILETYPE                VFT_DRV
+#define VER_FILESUBTYPE             VFT2_DRV_SYSTEM
+
+#include <common.ver>
index 38d58e97e685c320adcc383875cc893fde579f75..92949f0be6add40d6bf6cabd28af3061f079b0c6 100644 (file)
@@ -55,5 +55,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenvbd_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenvbd_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index d8223146b72c47dcbc6262f22de9a21ccbfce3ed..e7925925477b25e10a802a53c1cea9c43f375087 100644 (file)
@@ -55,5 +55,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenvbd_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenvbd_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index 5a0b9187c00f65b68d68ee3491b88ad2bc97cdd8..3bb2fe215fdd5612805deefcb6739743e17ba299 100644 (file)
@@ -61,5 +61,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenvbd_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenvbd_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index 5a0b9187c00f65b68d68ee3491b88ad2bc97cdd8..3bb2fe215fdd5612805deefcb6739743e17ba299 100644 (file)
@@ -61,5 +61,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenvbd_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenvbd_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>