]> xenbits.xensource.com Git - pvdrivers/win/xenvkbd.git/commitdiff
Allow rebranding file copyright string
authorOwen Smith <owen.smith@citrix.com>
Tue, 28 Mar 2023 11:52:20 +0000 (12:52 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 31 Mar 2023 19:24:54 +0000 (20:24 +0100)
Pass COPYRIGHT string from environment to override the copyright string
that is embedded in the output binaries.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
build.ps1
include/version.tmpl
scripts/genfiles.ps1
src/xenvkbd/xenvkbd.rc

index 27efa389247b3f3025d15446e253735111b950aa..31ba9a893640282c65144ee3d7221ff6f79463ca 100644 (file)
--- a/build.ps1
+++ b/build.ps1
@@ -88,6 +88,10 @@ if ([string]::IsNullOrEmpty($Env:PRODUCT_NAME)) {
        Set-Item -Path Env:PRODUCT_NAME -Value 'Xen'
 }
 
+if ([string]::IsNullOrEmpty($Env:COPYRIGHT)) {
+       Set-Item -Path Env:COPYRIGHT -Value 'Copyright (c) Xen Project.'
+}
+
 if ([string]::IsNullOrEmpty($Env:BUILD_NUMBER)) {
        if (Test-Path ".build_number") {
                $BuildNum = Get-Content -Path ".build_number"
index d6f9a481d621927cae90fc7ae520a2e21368b763..ce056d34c22b6d8ac41cf5219ea9ebd81c39b0dc 100644 (file)
@@ -2,6 +2,7 @@
 #define PRODUCT_NAME_STR     "@PRODUCT_NAME@"
 #define VENDOR_PREFIX_STR    "@VENDOR_PREFIX@"
 #define VENDOR_DEVICE_ID_STR "@VENDOR_DEVICE_ID@"
+#define COPYRIGHT_STR        "@COPYRIGHT@"
 
 #define MAJOR_VERSION_STR    "@MAJOR_VERSION@"
 #define MINOR_VERSION_STR    "@MINOR_VERSION@"
index a288a6c7de3c6a46b0cbe48711065171692dd943..fa3ecc3fe90c35a9377e10b0c00b2610418b6ee3 100644 (file)
@@ -61,6 +61,7 @@ $Replacements = [ordered]@{
        'PRODUCT_NAME' = $Env:PRODUCT_NAME;
        'VENDOR_DEVICE_ID' = $Env:VENDOR_DEVICE_ID;
        'VENDOR_PREFIX' = $Env:VENDOR_PREFIX;
+       'COPYRIGHT' = $Env:COPYRIGHT;
 
        'MAJOR_VERSION' = $Env:MAJOR_VERSION;
        'MINOR_VERSION' = $Env:MINOR_VERSION;
index 1ce56c54c151086dc3ab1f10b0f00fa15e0a20db..e198e27139549d346f36ad1a52d39bd552e770ea 100644 (file)
@@ -41,7 +41,7 @@
 #include <version.h>
 
 #define        VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XENVKBD"
 #define VER_PRODUCTVERSION          MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER