-
Notifications
You must be signed in to change notification settings - Fork 16
/
MakefileCfgPlatClientLang.mak
39 lines (30 loc) · 1.54 KB
/
MakefileCfgPlatClientLang.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# eduVPN - VPN for education and research
#
# Copyright: 2017-2024 The Commons Conservancy
# SPDX-License-Identifier: GPL-3.0+
#
# WiX parameters
!IF "$(LANG)" == "en"
WIX_LOC_FILE=Install\eduVPN.wxl
!ELSE
WIX_LOC_FILE=Install\$(LANG)\eduVPN.wxl
!ENDIF
######################################################################
# Building
######################################################################
"bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_$(VERSION)$(CFG_TARGET)_$(PLAT)_$(LANG).msi" : "bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client.wixobj"
"$(WIX)bin\light.exe" $(WIX_LIGHT_FLAGS) -cultures:$(LANG) -loc "$(WIX_LOC_FILE)" -out "$(@:"=).tmp" $**
move /y "$(@:"=).tmp" $@ > NUL
Clean ::
-if exist "bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_*$(CFG_TARGET)_$(PLAT)_$(LANG).msi" del /f /q "bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_*$(CFG_TARGET)_$(PLAT)_$(LANG).msi"
!IF "$(LANG)" == "en"
# The English localization serves as the base. Therefore, it does not produce a diff MST.
!ELSE
"bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_$(VERSION)$(CFG_TARGET)_$(PLAT)_$(LANG).mst" : \
"bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_$(VERSION)$(CFG_TARGET)_$(PLAT)_en.msi" \
"bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_$(VERSION)$(CFG_TARGET)_$(PLAT)_$(LANG).msi"
cscript.exe $(CSCRIPT_FLAGS) "bin\MSI.wsf" //Job:MakeMST $** $@
Clean ::
-if exist "bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_*$(CFG_TARGET)_$(PLAT)_$(LANG).mst" del /f /q "bin\$(CFG)\$(PLAT)\$(CLIENT_TARGET)Client_*$(CFG_TARGET)_$(PLAT)_$(LANG).mst"
!ENDIF