VirtualBox

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

最後變更 在這個檔案從106898是 106898,由 vboxsync 提交於 5 月 前

Windows Guest Additions: File renaming and Makefile adjustments for VBoxGuestInstallHelper.dll. Needed a prerequisite for the upcoming rename of VBoxDrvInst -> VBoxGuestInstallHelper.exe [ARM build fix]. bugref:10762

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.8 KB
 
1# $Id: Makefile.kmk 106898 2024-11-08 21:11:06Z 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.alldomusa.eu.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 DLL template for arm64.
59#
60TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs = hack
61TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs_EXTENDS := VBoxGuestR3Dll
62TEMPLATE_VBoxGuestInstallHelperDllTemplateWithFewerLibs_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 := VBoxGuestInstallHelperDllTemplateWithFewerLibs
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)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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