GEANTLink/MSI/Base/Main/Makefile

220 lines
15 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Copyright 1991-2016 Amebis
# Copyright 2016 GÉANT
#
# This file is part of GÉANTLink.
#
# GÉANTLink is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GÉANTLink is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
#
!INCLUDE "..\..\..\include\MSIBuildCfg.mak"
!IFNDEF MSIBUILD_PRODUCT_NAME
!ERROR Parameter MSIBUILD_PRODUCT_NAME is undefined.
!ENDIF
!IFNDEF MSIBUILD_PRODUCT_NAME_ID
!ERROR Parameter MSIBUILD_PRODUCT_NAME_ID is undefined.
!ENDIF
!IFNDEF MSIBUILD_PRODUCT_NAME_UC
!ERROR Parameter MSIBUILD_PRODUCT_NAME_UC is undefined.
!ENDIF
!IFNDEF MSIBUILD_PRODUCT_NAME_8_3
!ERROR Parameter MSIBUILD_PRODUCT_NAME_8_3 is undefined.
!ENDIF
MSIBUILD_IS_LOCALIZEABLE=1
######################################################################
# CustomAction
All :: "$(LANG).$(PLAT).$(CFG).CustomAction-1.idt"
"$(LANG).$(PLAT).$(CFG).CustomAction-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Action Type Source Target
s$(MSIBUILD_LENGTH_ID) i2 S$(MSIBUILD_LENGTH_ID) S255
CustomAction Action
caSet$(MSIBUILD_PRODUCT_NAME_UC)DIR1 35 $(MSIBUILD_PRODUCT_NAME_UC)DIR [OLD$(MSIBUILD_PRODUCT_NAME_UC)DIR]
caSet$(MSIBUILD_PRODUCT_NAME_UC)DIR2 35 $(MSIBUILD_PRODUCT_NAME_UC)DIR [INSTALLDIR]
<<NOKEEP
######################################################################
# Directory
All :: "$(LANG).$(PLAT).$(CFG).Directory-1.idt"
"$(LANG).$(PLAT).$(CFG).Directory-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Directory Directory_Parent DefaultDir
s$(MSIBUILD_LENGTH_ID) S$(MSIBUILD_LENGTH_ID) l255
Directory Directory
TARGETDIR SourceDir
ProgramFilesFolder TARGETDIR .
!IF "$(PLAT)" == "x64"
ProgramFiles64Folder TARGETDIR .
PROGRAMFILESDIR ProgramFiles64Folder .
!ELSE
PROGRAMFILESDIR ProgramFilesFolder .
!ENDIF
ProgramMenuFolder TARGETDIR .
$(MSIBUILD_PRODUCT_NAME_ID)ShortcutDir ProgramMenuFolder $(MSIBUILD_PRODUCT_NAME_8_3)|$(MSIBUILD_PRODUCT_NAME):.
$(MSIBUILD_PRODUCT_NAME_UC)DIR PROGRAMFILESDIR $(MSIBUILD_PRODUCT_NAME_8_3)|$(MSIBUILD_PRODUCT_NAME):.
!IF "$(PLAT)" == "Win32" && "$(CFG)" == "Debug"
$(MSIBUILD_PRODUCT_NAME_UC)BINDIR $(MSIBUILD_PRODUCT_NAME_UC)DIR .:WIN32~1.DEB|Win32.Debug
!ELSEIF "$(PLAT)" == "Win32" && "$(CFG)" == "Release"
$(MSIBUILD_PRODUCT_NAME_UC)BINDIR $(MSIBUILD_PRODUCT_NAME_UC)DIR .:WIN32~1.REL|Win32.Release
!ELSEIF "$(PLAT)" == "x64" && "$(CFG)" == "Debug"
$(MSIBUILD_PRODUCT_NAME_UC)BINDIR $(MSIBUILD_PRODUCT_NAME_UC)DIR .:X64~1.DEB|x64.Debug
!ELSEIF "$(PLAT)" == "x64" && "$(CFG)" == "Release"
$(MSIBUILD_PRODUCT_NAME_UC)BINDIR $(MSIBUILD_PRODUCT_NAME_UC)DIR .:X64~1.REL|x64.Release
!ENDIF
<<NOKEEP
######################################################################
# Icon
All :: \
"$(LANG).$(PLAT).$(CFG).Icon-1.idt" \
"$(LANG).$(PLAT).$(CFG).Icon-1\product.ico"
"$(LANG).$(PLAT).$(CFG).Icon-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak" "$(LANG).$(PLAT).$(CFG).Icon-1"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Name Data
s$(MSIBUILD_LENGTH_ID) v0
Icon Name
iconproduct.ico product.ico
<<NOKEEP
"$(LANG).$(PLAT).$(CFG).Icon-1\product.ico" : "..\..\..\include\icon_full.ico"
copy /y $** $@ > NUL
######################################################################
# InstallExecuteSequence
All :: "$(LANG).$(PLAT).$(CFG).InstallExecuteSequence-1.idt"
"$(LANG).$(PLAT).$(CFG).InstallExecuteSequence-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Action Condition Sequence
s$(MSIBUILD_LENGTH_ID) S255 I2
InstallExecuteSequence Action
caSet$(MSIBUILD_PRODUCT_NAME_UC)DIR1 OLD$(MSIBUILD_PRODUCT_NAME_UC)DIR AND UILevel < 4 1001
caSet$(MSIBUILD_PRODUCT_NAME_UC)DIR2 INSTALLDIR AND UILevel < 4 1002
<<NOKEEP
######################################################################
# LaunchCondition
All :: "$(LANG).$(PLAT).$(CFG).LaunchCondition-2.idt"
"En.$(PLAT).$(CFG).LaunchCondition-2.idtx" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Condition Description
s255 l255
LaunchCondition Condition
VersionNT >= "600" [ProductName] requires Windows Vista or later version of Windows.
<<NOKEEP
"De.$(PLAT).$(CFG).LaunchCondition-2.idt" : "En.$(PLAT).$(CFG).LaunchCondition-2.idtx" "..\locale\de_DE.po"
rcxgettext.exe idtp $@ $**
"En.$(PLAT).$(CFG).LaunchCondition-2.idt" : "En.$(PLAT).$(CFG).LaunchCondition-2.idtx"
copy /y $** $@ > NUL
"It.$(PLAT).$(CFG).LaunchCondition-2.idt" : "En.$(PLAT).$(CFG).LaunchCondition-2.idtx" "..\locale\it_IT.po"
rcxgettext.exe idtp $@ $**
"Sl.$(PLAT).$(CFG).LaunchCondition-2.idt" : "En.$(PLAT).$(CFG).LaunchCondition-2.idtx" "..\locale\sl_SI.po"
rcxgettext.exe idtp $@ $**
######################################################################
# Media
All :: "$(LANG).$(PLAT).$(CFG).Media-1.idt"
"$(LANG).$(PLAT).$(CFG).Media-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
DiskId LastSequence DiskPrompt Cabinet VolumeLabel Source
i2 i2 L64 S255 S32 S$(MSIBUILD_LENGTH_ID)
Media DiskId
1 1 [ProductName] $(MSIBUILD_PRODUCT_NAME_UC)
<<NOKEEP
######################################################################
# Property
All :: \
"$(LANG).$(PLAT).$(CFG).Property-1.idt" \
"$(LANG).$(PLAT).$(CFG).Property-2.idt"
"$(LANG).$(PLAT).$(CFG).Property-1.idt" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Property Value
s$(MSIBUILD_LENGTH_ID) l0
Property Property
ARPPRODUCTICON iconproduct.ico
ALLUSERS 1
DISABLEADVTSHORTCUTS 1
INSTALLLEVEL 3
InstallMode Typical
SecureCustomProperties OLDPRODUCTFOUND;NEWPRODUCTFOUND
<<NOKEEP
"En.$(PLAT).$(CFG).Property-2.idtx" : "Makefile" "..\..\..\include\MSIBuildCfg.mak"
-if exist $@ del /f /q $@
move /y << $@ > NUL
Property Value
s$(MSIBUILD_LENGTH_ID) l0
1252 Property Property
ARPURLINFOABOUT http://www.geant.org/
ARPHELPLINK http://www.geant.org/
ARPURLUPDATEINFO https://github.com/Amebis/GEANTLink/releases
<<NOKEEP
"De.$(PLAT).$(CFG).Property-2.idt" : "En.$(PLAT).$(CFG).Property-2.idtx" "..\locale\de_DE.po"
rcxgettext.exe idtp $@ $**
"En.$(PLAT).$(CFG).Property-2.idt" : "En.$(PLAT).$(CFG).Property-2.idtx"
copy /y $** $@ > NUL
"It.$(PLAT).$(CFG).Property-2.idt" : "En.$(PLAT).$(CFG).Property-2.idtx" "..\locale\it_IT.po"
rcxgettext.exe idtp $@ $**
"Sl.$(PLAT).$(CFG).Property-2.idt" : "En.$(PLAT).$(CFG).Property-2.idtx" "..\locale\sl_SI.po"
rcxgettext.exe idtp $@ $**
######################################################################
# Build MSM module!
######################################################################
!INCLUDE "..\..\MSIBuild\MSM.mak"