VirtualBox

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

Last change on this file since 106908 was 106908, checked in by vboxsync, 2 months ago

Add/Nt/InstallHelper: Don't set the windows version of arm64 and amd64 to nt4. bugref:10762 VBP-1253

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 106908 2024-11-09 01:46:17Z 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 = _UNICODE UNICODE
41VBoxGuestInstallHelper_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
42ifdef VBOX_WITH_WDDM
43 VBoxGuestInstallHelper_DEFS += VBOX_WITH_WDDM
44endif
45if1of ($(KBUILD_TARGET_ARCH), x86)
46 VBoxGuestInstallHelper_DEFS += _WIN32_WINNT=0x0400
47else if1of ($(KBUILD_TARGET_ARCH), amd64)
48 VBoxGuestInstallHelper_DEFS += _WIN32_WINNT=0x0501
49endif
50VBoxGuestInstallHelper_DEPS = $(VBOX_SVN_REV_KMK)
51VBoxGuestInstallHelper_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST)
52VBoxGuestInstallHelper_INCS = ../../include
53VBoxGuestInstallHelper_SOURCES = \
54 VBoxGuestInstallHelper.cpp \
55 VBoxGuestInstallHelper.rc \
56 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvCommon.cpp \
57 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvInst.cpp \
58 $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvStore.cpp
59VBoxGuestInstallHelper_VBOX_IMPORT_CHECKER.win.x86 := nt4 # setupapi was introduced in NT4
60
61
62#
63# Stripped down DLL template for arm64.
64#
65TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs = hack
66TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs_EXTENDS := VBoxGuestR3Dll
67TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs_LATE_LIBS.x86 = \
68 $(filter-out %/VBoxGuestR3LibShared-x86.lib,$(TEMPLATE_VBoxGuestR3Dll_LATE_LIBS.x86))
69
70#
71# NSIS plugins have to match the NSIS architecture, so 32-bit x86 in our case.
72#
73# Note! Installation is required for repacking Guest Additions
74#
75DLLS += VBoxGuestInstallHelperDll
76VBoxGuestInstallHelperDll_TEMPLATE := VBoxGuestInstallHelperDllTemplateWithFewerLibs
77VBoxGuestInstallHelperDll_NAME := VBoxGuestInstallHelper
78VBoxGuestInstallHelperDll_BLD_TRG_ARCH := x86
79VBoxGuestInstallHelperDll_INST := repackadd/resources/VBoxGuestInstallHelperDll/
80ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
81 VBoxGuestInstallHelperDll_INSTTYPE := stage
82 VBoxGuestInstallHelperDll_DEBUG_INSTTYPE := both
83endif
84VBoxGuestInstallHelperDll_DEFS := WIN32_LEAN_AND_MEAN=1 UNICODE _UNICODE
85if1of ($(KBUILD_TARGET_ARCH), x86)
86 VBoxGuestInstallHelperDll_DEFS += _WIN32_WINNT=0x0400
87 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := nt4
88else if1of ($(KBUILD_TARGET_ARCH), amd64)
89 VBoxGuestInstallHelperDll_DEFS += _WIN32_WINNT=0x0501
90 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := xp
91else
92 VBoxGuestInstallHelperDll_DEFS += _WIN32_WINNT=0x0a00
93 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := w8
94endif
95VBoxGuestInstallHelperDll_SOURCES := \
96 VBoxGuestInstallHelperDll.cpp \
97 VBoxGuestInstallHelperDll.rc \
98 $(PATH_ROOT)/src/VBox/Runtime/generic/RTLogWriteUser-generic.cpp
99VBoxGuestInstallHelperDll_INCS := \
100 $(PATH_ROOT)/src/VBox/Runtime/include
101
102include $(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