VirtualBox

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

Last change on this file since 76540 was 69358, checked in by vboxsync, 7 years ago

GA/WINNT/tools: scm cleanups

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