|
| 1 | +<?if $(sys.BUILDARCH) = x64 ?> |
| 2 | + <?define UpgradeCode = "{6195c702-c57e-497f-a01a-838bde7986f3}" ?> |
| 3 | + <?define OpenSSLSuffix = "-x64" ?> |
| 4 | + <?define Suffix = "" ?> |
| 5 | +<?elseif $(sys.BUILDARCH) = arm64 ?> |
| 6 | + <?define UpgradeCode = "{2d43d9ab-36ac-47e4-81ef-74f28d4dee99}" ?> |
| 7 | + <?define OpenSSLSuffix = "-arm64" ?> |
| 8 | + <?define Suffix = "-arm64" ?> |
| 9 | +<?else?> |
| 10 | + <?define UpgradeCode = "{efea90bd-d08a-4ab4-86c5-4bc3351fba6a}" ?> |
| 11 | + <?define OpenSSLSuffix = "" ?> |
| 12 | + <?define Suffix = "" ?> |
| 13 | +<?endif?> |
| 14 | + |
| 15 | +<?if $(env.VisualStudioVersion) = "17.0" ?> |
| 16 | +<?define VCVER = "143" ?> |
| 17 | +<?elseif $(env.VisualStudioVersion) = "16.0" ?> |
| 18 | +<?define VCVER = "142" ?> |
| 19 | +<?endif?> |
| 20 | + |
| 21 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" |
| 22 | + xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
| 23 | + <Package Name="libcdoc $(sys.BUILDARCH)" UpgradeCode="$(var.UpgradeCode)" |
| 24 | + Language="1033" Version="!(bind.FileVersion.libcdoc)" Manufacturer="RIA"> |
| 25 | + <MediaTemplate EmbedCab="yes" CompressionLevel="high" /> |
| 26 | + <Icon Id="ID.ico" SourceFile="$(var.ICON)" /> |
| 27 | + <Property Id="ARPPRODUCTICON" Value="ID.ico" /> |
| 28 | + <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage= |
| 29 | + "A newer version of [ProductName] is already installed. If you are trying to downgrade, please uninstall the newer version first." /> |
| 30 | + <UI> |
| 31 | + <ui:WixUI Id="WixUI_Mondo" /> |
| 32 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="SetupTypeDlg" Order="3" /> |
| 33 | + <Publish Dialog="SetupTypeDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3" /> |
| 34 | + </UI> |
| 35 | + |
| 36 | + <StandardDirectory Id="ProgramFiles6432Folder"> |
| 37 | + <Directory Id="INSTALLFOLDER" Name="libcdoc$(var.Suffix)" /> |
| 38 | + </StandardDirectory> |
| 39 | + |
| 40 | + <ComponentGroup Id="Runtime" |
| 41 | + Source="$(env.VCTOOLSREDISTDIR)\$(sys.BUILDARCH)\Microsoft.VC$(var.VCVER).CRT"> |
| 42 | + <File Name="msvcp140.dll" /> |
| 43 | + <File Name="vcruntime140.dll" /> |
| 44 | +<?if $(sys.BUILDARCH) != x86 ?> |
| 45 | + <File Name="vcruntime140_1.dll" /> |
| 46 | +<?endif?> |
| 47 | + </ComponentGroup> |
| 48 | + |
| 49 | + <ComponentGroup Id="Dependencies" Source="$(var.vcpkg)\bin"> |
| 50 | + <File Name="libcrypto-3$(var.OpenSSLSuffix).dll" /> |
| 51 | + <File Name="libssl-3$(var.OpenSSLSuffix).dll" /> |
| 52 | + <File Name="legacy.dll" /> |
| 53 | + <File Name="zlib1.dll" /> |
| 54 | + <File Name="libxml2.dll" /> |
| 55 | + </ComponentGroup> |
| 56 | + |
| 57 | + <ComponentGroup Id="Libraries" Source="$(var.libcdoc)"> |
| 58 | + <File Id="libcdoc" Name="cdoc.dll" /> |
| 59 | + <File Name="cdoc-tool.exe" /> |
| 60 | +<?ifdef var.swig ?> |
| 61 | + <File Name="cdoc_csharp.dll" /> |
| 62 | + <File Name="cdoc_java.dll" /> |
| 63 | + <File Source="$(var.libcdoc)\share\libcdoc\cdoc.jar" /> |
| 64 | +<?ifdef var.python ?> |
| 65 | + <File Name="_libcdoc_python.pyd" /> |
| 66 | + <File Name="libcdoc.py" /> |
| 67 | +<?endif?> |
| 68 | +<?endif?> |
| 69 | + </ComponentGroup> |
| 70 | + |
| 71 | + <ComponentGroup Id="RuntimeDev" |
| 72 | + Source="$(env.VCTOOLSREDISTDIR)\Debug_NonRedist\$(sys.BUILDARCH)\Microsoft.VC$(var.VCVER).DebugCRT"> |
| 73 | + <File Name="msvcp140d.dll" /> |
| 74 | + <File Name="vcruntime140d.dll" /> |
| 75 | +<?if $(sys.BUILDARCH) != x86 ?> |
| 76 | + <File Name="vcruntime140_1d.dll" /> |
| 77 | +<?endif?> |
| 78 | + </ComponentGroup> |
| 79 | + |
| 80 | + <ComponentGroup Id="LibrariesDev" Source="$(var.libcdoc)"> |
| 81 | + <Files Include="*.pdb" /> |
| 82 | + <File Name="cdoc.lib" /> |
| 83 | + <File Name="cdocd.dll" /> |
| 84 | + <File Name="cdocd.lib" /> |
| 85 | +<?ifdef var.swig ?> |
| 86 | + <File Name="cdoc_csharpd.dll" /> |
| 87 | + <File Name="cdoc_javad.dll" /> |
| 88 | +<?ifdef var.python ?> |
| 89 | + <File Name="_cdoc_pythond.pyd" /> |
| 90 | +<?endif?> |
| 91 | +<?endif?> |
| 92 | + </ComponentGroup> |
| 93 | + |
| 94 | + <Feature Id="InstallLibcdoc" Level="1" Title="Libcdoc" Display="expand" ConfigurableDirectory="INSTALLFOLDER"> |
| 95 | + <ComponentGroupRef Id="Runtime" /> |
| 96 | + <ComponentGroupRef Id="Dependencies" /> |
| 97 | + <ComponentGroupRef Id="Libraries" /> |
| 98 | + <Feature Id="InstallDevel" Level="1" Title="Development"> |
| 99 | + <ComponentGroupRef Id="RuntimeDev" /> |
| 100 | + <File Directory="INSTALLFOLDER" Source="$(var.vcpkg)\debug\bin\zlibd1.dll" /> |
| 101 | + <ComponentGroupRef Id="LibrariesDev" /> |
| 102 | + <Files Directory="INSTALLFOLDER" Subdirectory="include" Include="$(var.libcdoc)\include\**" /> |
| 103 | + <Files Directory="INSTALLFOLDER" Subdirectory="cmake\cdoc" Include="$(var.libcdoc)\cmake\cdoc\**" /> |
| 104 | + </Feature> |
| 105 | +<?ifdef var.docLocation ?> |
| 106 | + <Feature Id="InstallDocumentation" Level="1" Title="Documentation"> |
| 107 | + <Files Include="$(var.docLocation)\**" Directory="INSTALLFOLDER" Subdirectory="documentation" /> |
| 108 | + </Feature> |
| 109 | +<?endif?> |
| 110 | + </Feature> |
| 111 | + </Package> |
| 112 | +</Wix> |
0 commit comments