2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #if defined(WITH_VC_REDIST)
22 #if WITH_VC_REDIST == 143
23 #define WINDOWS_X64_MERGEMODULE gid_MergeModule_Microsoft_VC143_CRT_x64
24 #define WINDOWS_X64_MERGEMODULE_FILE "Microsoft_VC143_CRT_x64.msm"
25 #define WINDOWS_X86_MERGEMODULE gid_MergeModule_Microsoft_VC143_CRT_x86
26 #define WINDOWS_X86_MERGEMODULE_FILE "Microsoft_VC143_CRT_x86.msm"
27 #elif WITH_VC_REDIST == 142
28 #define WINDOWS_X64_MERGEMODULE gid_MergeModule_Microsoft_VC142_CRT_x64
29 #define WINDOWS_X64_MERGEMODULE_FILE "Microsoft_VC142_CRT_x64.msm"
30 #define WINDOWS_X86_MERGEMODULE gid_MergeModule_Microsoft_VC142_CRT_x86
31 #define WINDOWS_X86_MERGEMODULE_FILE "Microsoft_VC142_CRT_x86.msm"
32 #elif WITH_VC_REDIST == 141
33 #define WINDOWS_X64_MERGEMODULE gid_MergeModule_Microsoft_VC141_CRT_x64
34 #define WINDOWS_X64_MERGEMODULE_FILE "Microsoft_VC141_CRT_x64.msm"
35 #define WINDOWS_X86_MERGEMODULE gid_MergeModule_Microsoft_VC141_CRT_x86
36 #define WINDOWS_X86_MERGEMODULE_FILE "Microsoft_VC141_CRT_x86.msm"
38 // The next string will result in "malformed par file" error, terminating build as expected.
39 // Possibly a new version of CRT was enabled in configure.ac, but not handled here yet?
40 error: unknown VC redist version WITH_VC_REDIST. Check configure.ac
44 #if defined(WINDOWS_X86_MERGEMODULE)
46 /* Attributes: msidbComponentAttributesPermanent = 0x10 */
47 MergeModule WINDOWS_X86_MERGEMODULE
49 Name = WINDOWS_X86_MERGEMODULE_FILE;
50 RootDir = "TARGETDIR";
51 ComponentCondition = "VC_REDIST=1";
52 Attributes_Add = "0x10";
57 #if defined(WINDOWS_X64) && defined(WINDOWS_X64_MERGEMODULE)
59 /* Attributes: msidbComponentAttributesPermanent = 0x10 */
60 MergeModule WINDOWS_X64_MERGEMODULE
62 Name = WINDOWS_X64_MERGEMODULE_FILE;
63 RootDir = "TARGETDIR";
64 ComponentCondition = "VC_REDIST=1";
65 Attributes_Add = "0x10";