forked from open-eid/chrome-token-signing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (46 loc) · 2.54 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Chrome Token Signing Native Host
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# This is the Makefile for Windows NMake. See GNUmakefile for OSX/Linux.
!IF !DEFINED(BUILD_NUMBER)
BUILD_NUMBER=0
!ENDIF
!IF "$(VISUALSTUDIOVERSION)" == "16.0"
BUILDPARAMS = ;VisualStudioVersion=16;PlatformToolset=v142
!ENDIF
!IF "$(VISUALSTUDIOVERSION)" == "15.0"
BUILDPARAMS = ;VisualStudioVersion=15;PlatformToolset=v141
!ENDIF
!IF "$(VISUALSTUDIOVERSION)" == "14.0"
BUILDPARAMS = ;VisualStudioVersion=14;PlatformToolset=v140
!ENDIF
!include VERSION.mk
SIGN = signtool sign /v /a /s MY /n "RIIGI INFOSUSTEEMI AMET" /fd SHA256 /du http://installer.id.ee /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td SHA256
build:
msbuild /p:Configuration=Release;Platform=Win32;WindowsTargetPlatformVersion=$(WINDOWSSDKVERSION)$(BUILDPARAMS);MAJOR_VERSION=$(MAJOR_VERSION);MINOR_VERSION=$(MINOR_VERSION);RELEASE_VERSION=$(RELEASE_VERSION);BUILD_NUMBER=$(BUILD_NUMBER) host-windows\host-windows.sln
build-signed: build
$(SIGN) host-windows/Release/chrome-token-signing.exe
pkg-unsigned:
"$(WIX)\bin\candle.exe" -nologo host-windows\chrome-token-signing.wxs -dVERSION=$(VERSIONEX) -dPlatform=x86
"$(WIX)\bin\light.exe" -nologo -out chrome-token-signing_$(VERSIONEX).x86.msi chrome-token-signing.wixobj -ext WixUIExtension -dWixUILicenseRtf=LICENSE.LGPL.rtf -dWixUIDialogBmp=host-windows/dlgbmp.bmp -dPlatform=x86
"$(WIX)\bin\candle.exe" -nologo host-windows\chrome-token-signing.wxs -dVERSION=$(VERSIONEX) -dPlatform=x64
"$(WIX)\bin\light.exe" -nologo -out chrome-token-signing_$(VERSIONEX).x64.msi chrome-token-signing.wixobj -ext WixUIExtension -dWixUILicenseRtf=LICENSE.LGPL.rtf -dWixUIDialogBmp=host-windows/dlgbmp.bmp -dPlatform=x64
pkg: build-signed pkg-unsigned
$(SIGN) chrome-token-signing_$(VERSIONEX).x86.msi
$(SIGN) chrome-token-signing_$(VERSIONEX).x64.msi
test: build
python host-test\pipe-test.py -v