]> xenbits.xensource.com Git - pvdrivers/win/xenhid.git/commitdiff
Add resource file to coinstaller
authorOwen Smith <owen.smith@cloud.com>
Tue, 28 Mar 2023 11:50:39 +0000 (12:50 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 31 Mar 2023 19:19:44 +0000 (20:19 +0100)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/coinst/xenhid_coinst.rc [new file with mode: 0644]
vs2015/xenhid_coinst/xenhid_coinst.vcxproj
vs2017/xenhid_coinst/xenhid_coinst.vcxproj
vs2019/xenhid_coinst/xenhid_coinst.vcxproj
vs2022/xenhid_coinst/xenhid_coinst.vcxproj

diff --git a/src/coinst/xenhid_coinst.rc b/src/coinst/xenhid_coinst.rc
new file mode 100644 (file)
index 0000000..fc2c4d5
--- /dev/null
@@ -0,0 +1,57 @@
+/* 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         "XENHID_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       "XENHID_COINST.DLL"
+#define VER_FILEVERSION_STR        MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR
+#define VER_FILEDESCRIPTION_STR     "XENHID_COINST"
+#define VER_ORIGINALFILENAME_STR    "XENHID_COINST.DLL"
+#define VER_FILETYPE VFT_APP
+#define VER_FILESUBTYPE 0
+
+#include "common.ver"
\ No newline at end of file
index ba658cbfd06cb5d1a336da2f724152c9fa511495..46df4c3fa16bb31c081026f1d2a62b484a0f2d73 100644 (file)
@@ -55,5 +55,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenhid_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenhid_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index 652d51183cde6867c95321d3118061e7877961fd..c24037c471cdbe7003ad5510951ed55dc022415c 100644 (file)
@@ -55,5 +55,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenhid_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenhid_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index f88f409ab40c09b3f7f565e02ff336d293a1e7c4..76ae9a6f0063cedd8a8cc2c11297fc82fab5c64b 100644 (file)
@@ -58,5 +58,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenhid_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenhid_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>
index f88f409ab40c09b3f7f565e02ff336d293a1e7c4..76ae9a6f0063cedd8a8cc2c11297fc82fab5c64b 100644 (file)
@@ -58,5 +58,8 @@
   <ItemGroup>
     <None Include="..\..\src\coinst\xenhid_coinst.def" />
   </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\src\coinst\xenhid_coinst.rc" />
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 </Project>