VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/Makefile.kmk@ 106896

Last change on this file since 106896 was 106896, checked in by vboxsync, 3 months ago

Windows Guest Additions: Renamed VBoxDrvInst.exe -> VBoxGuestInstallHelper.exe. Marked the 'driver [...]' commands as being deprecated. bugref:10762

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 106896 2024-11-08 16:39:19Z vboxsync $
2## @file
3# Sub-Makefile for the Windows Guest Additions Installer Helper DLL.
4#
5
6#
7# Copyright (C) 2010-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31# Include Sub-Makefiles.
32include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
33
34
35#
36# VBoxGuestInstallHelper - Helps with various installation tasks.
37#
38PROGRAMS += VBoxGuestInstallHelper
39VBoxGuestInstallHelper_TEMPLATE = VBoxGuestR3Exe
40VBoxGuestInstallHelper_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
41VBoxGuestInstallHelper_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
42ifdef VBOX_WITH_WDDM
43 VBoxGuestInstallHelper_DEFS += VBOX_WITH_WDDM
44endif
45VBoxGuestInstallHelper_DEPS = $(VBOX_SVN_REV_KMK)
46VBoxGuestInstallHelper_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST)
47VBoxGuestInstallHelper_INCS = ../../include
48VBoxGuestInstallHelper_SOURCES = \
49 VBoxGuestInstallHelper.cpp \
50 VBoxGuestInstallHelper.rc \
51 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvCommon.cpp \
52 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvInst.cpp \
53 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvStore.cpp
54VBoxGuestInstallHelper_VBOX_IMPORT_CHECKER.win.x86 := nt4 # setupapi was introduced in NT4
55
56
57#
58# Stripped down template for arm64.
59#
60TEMPLATE_VBoxGuestInstallHelperTemplateWithFewerLibs = hack
61TEMPLATE_VBoxGuestInstallHelperTemplateWithFewerLibs_EXTENDS := VBoxGuestR3Dll
62TEMPLATE_VBoxGuestInstallHelperTemplateWithFewerLibs_LATE_LIBS.x86 = \
63 $(filter-out %/VBoxGuestR3LibShared-x86.lib,$(TEMPLATE_VBoxGuestR3Dll_LATE_LIBS.x86))
64
65#
66# NSIS plugins have to match the NSIS architecture, so 32-bit x86 in our case.
67#
68# Note! Installation is required for repacking Guest Additions
69#
70DLLS += VBoxGuestInstallHelperDll
71VBoxGuestInstallHelperDll_TEMPLATE := VBoxGuestInstallHelperTemplateWithFewerLibs
72VBoxGuestInstallHelperDll_NAME := VBoxGuestInstallHelper
73VBoxGuestInstallHelperDll_BLD_TRG_ARCH := x86
74VBoxGuestInstallHelperDll_INST := repackadd/resources/VBoxGuestInstallHelperDll/
75ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
76 VBoxGuestInstallHelperDll_INSTTYPE := stage
77 VBoxGuestInstallHelperDll_DEBUG_INSTTYPE := both
78endif
79VBoxGuestInstallHelperDll_DEFS := WIN32_LEAN_AND_MEAN=1 UNICODE _UNICODE
80if1of ($(KBUILD_TARGET_ARCH), x86)
81 VBoxGuestInstallHelperDll_DEFS := _WIN32_WINNT=0x0400
82 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := nt4
83else if1of ($(KBUILD_TARGET_ARCH), amd64)
84 VBoxGuestInstallHelperDll_DEFS := _WIN32_WINNT=0x0501
85 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := xp
86else
87 VBoxGuestInstallHelperDll_DEFS := _WIN32_WINNT=0x0a00
88 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := w8
89endif
90VBoxGuestInstallHelperDll_SOURCES := \
91 VBoxGuestInstallHelperDll.cpp \
92 VBoxGuestInstallHelperDll.rc \
93 $(PATH_ROOT)/src/VBox/Runtime/generic/RTLogWriteUser-generic.cpp
94VBoxGuestInstallHelperDll_INCS := \
95 $(PATH_ROOT)/src/VBox/Runtime/include
96
97include $(FILE_KBUILD_SUB_FOOTER)
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