VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/tools/Makefile.kmk@ 68297

Last change on this file since 68297 was 64963, checked in by vboxsync, 8 years ago

trunk,5.1,5.0: Fixed missing dependency on bldRTSignTool in Additions/WINNT/tools/Makefile.kmk.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 64963 2016-12-19 15:02:45Z vboxsync $
2## @file
3# Sub-Makefile for the Windows NT Additions Tools.
4#
5
6# Copyright (C) 2012-2016 Oracle Corporation
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License (GPL) as published by the Free Software
12# Foundation, in version 2 as it comes in the "COPYING" file of the
13# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16
17SUB_DEPTH = ../../../../..
18include $(KBUILD_PATH)/subheader.kmk
19
20#
21# Certificate utility.
22#
23PROGRAMS += VBoxCertUtil
24
25VBoxCertUtil_TEMPLATE = VBoxGuestR3Exe
26VBoxCertUtil_SOURCES = \
27 VBoxCertUtil.cpp \
28 VBoxCertUtil.rc
29VBoxCertUtil_LIBS = \
30 crypt32.lib
31
32# The icon is configurable.
33VBoxCertUtil.rc_INCS = $(VBoxCertUtil_0_OUTDIR)
34VBoxCertUtil.rc_DEPS = $(VBoxCertUtil_0_OUTDIR)/VBoxCertUtil-win-icon.rc
35VBoxCertUtil.rc_CLEAN = $(VBoxCertUtil_0_OUTDIR)/VBoxCertUtil-win-icon.rc
36
37# Icon include file.
38$$(VBoxCertUtil_0_OUTDIR)/VBoxCertUtil-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxCertUtil_DEFPATH)/Makefile.kmk | $$(dir $$@)
39 $(RM) -f $@
40 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
41
42
43#
44# Install all the certificates we use here.
45#
46INSTALLS += AdditionsInstCertFiles
47AdditionsInstCertFiles_TEMPLATE = VBoxGuestR3Exe
48AdditionsInstCertFiles_SOURCES =
49AdditionsInstCertFiles_CLEAN =
50ifdef VBOX_SIGNING_MODE
51 define def_VBoxAdditionsInstCertFiles
52 AdditionsInstCertFiles_SOURCES += $$(AdditionsInstCertFiles_0_OUTDIR)/$(1)=>$1
53 AdditionsInstCertFiles_CLEAN += $$(AdditionsInstCertFiles_0_OUTDIR)/$(1)
54 $$$$(AdditionsInstCertFiles_0_OUTDIR)/$(1): $$(2) | $$$$(dir $$$$@) $(VBOX_RTSIGNTOOL)
55 $(QUIET)$(RM) -f -- "$$@"
56 $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --signature-index $3 --exe "$$<" --output "$$@" --der
57 endef
58
59 if "$(VBOX_WITH_CORP_CODE_SIGNING)" == "all" || (!defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !defined(VBOX_WITH_CORP_CODE_SIGNING))
60 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0)
61 else
62 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha1.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0)
63 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,1)
64 if defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && defined(VBOX_WITH_CORP_CODE_SIGNING)
65 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256-r3.cer,$(VBOX_PATH_ADDITIONS)/VBoxCertUtil.exe,1)
66 endif
67 endif
68endif
69
70include $(FILE_KBUILD_SUB_FOOTER)
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette