VirtualBox

source: vbox/trunk/src/VBox/Installer/win/Stub/Makefile.kmk@ 43878

Last change on this file since 43878 was 43878, checked in by vboxsync, 12 years ago

BUGZ:6508 Install public cert automatically if --silent option is specified; added --no-silent-cert option which disables cert install in --silent mode.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 43878 2012-11-15 14:36:09Z vboxsync $
2## @file
3# Sub-Makefile for the stub installer.
4#
5
6#
7# Copyright (C) 2009-2012 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# This has to be 32-bit, so don't include it in the 64-bit build.
22if "$(KBUILD_TARGET_ARCH)" == "x86"
23
24TEMPLATE_VBOXSTUB = Drop the signing, we will sign it later.
25TEMPLATE_VBOXSTUB_EXTENDS = VBOXR3STATIC
26TEMPLATE_VBOXSTUB_POST_CMDS = $(NO_SUCH_VARIABLE)
27
28PROGRAMS.x86 += VBoxStub
29VBoxStub_TEMPLATE= VBOXSTUB
30VBoxStub_DEFS = _WIN32_WINNT=0x0501 IN_RT_R3
31VBoxStub_SOURCES = \
32 VBoxStub.cpp \
33 VBoxStubCertUtil.cpp \
34 VBoxStub.rc
35
36$$(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h: $(VBOX_BIN2C) $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer
37 $(VBOX_BIN2C) _VBoxStubPublicCert $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer $@
38
39VBoxStub_SDKS += \
40 VBOX_NTDLL
41VBoxStub_LIBS = \
42 $(VBOX_LIB_RUNTIME_STATIC) \
43 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib \
44 crypt32.lib
45
46VBoxStub.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
47VBoxStub.cpp_DEPS = \
48 $(VBOX_SVN_REV_KMK) \
49 $(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h
50VBoxStub.cpp_INCS += $(VBoxStub_0_OUTDIR)
51
52# The icon location is configurable.
53VBoxStub.rc_INCS += $(VBoxStub_0_OUTDIR)
54VBoxStub.rc_DEPS += \
55 $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc \
56 $(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc
57VBoxStub.rc_CLEAN = \
58 $(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc \
59 $(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc
60
61# Icon include file.
62$$(VBoxStub_0_OUTDIR)/VBoxStub-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
63 $(APPEND) -t $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
64
65# Manifest.
66VBOX_STUB_MANIFEST_FILE := $(PATH_SUB_CURRENT)/VBoxStub.manifest
67$$(VBoxStub_0_OUTDIR)/VBoxStub-manifest.rc: $(VBOX_STUB_MANIFEST_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
68 $(APPEND) -t $@ 'APP_MANIFEST RT_MANIFEST "$(subst /,\\,$(VBOX_STUB_MANIFEST_FILE))"'
69
70endif # x86 only
71
72include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

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