1 | # $Id: Makefile.kmk 106321 2024-10-15 13:06:30Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxInstallHelper.dll.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008-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 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 |
|
---|
32 | DLLS += VBoxInstallHelper
|
---|
33 | VBoxInstallHelper_TEMPLATE = VBoxR3StaticDllNoAsan
|
---|
34 | VBoxInstallHelper_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
35 | VBoxInstallHelper_DEFS = _WIN32_WINNT=0x0501 _UNICODE UNICODE VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
36 | if defined(VBOX_WITH_NETFLT) || defined(VBOX_WITH_NETADP)
|
---|
37 | VBoxInstallHelper_SDKS += VBoxWinNewDevLib
|
---|
38 | VBoxInstallHelper_DEFS += \
|
---|
39 | $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
|
---|
40 | $(if $(VBOX_WITH_NETADP),VBOX_WITH_NETADP,)
|
---|
41 | VBoxInstallHelper_LIBS += \
|
---|
42 | $(PATH_STAGE_LIB)/WinNetConfigSharedStatic.lib \
|
---|
43 | $(PATH_STAGE_LIB)/VBoxDrvCfgSharedStatic.lib \
|
---|
44 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
|
---|
45 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
|
---|
46 | endif
|
---|
47 | VBoxInstallHelper_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
48 | VBoxInstallHelper_SOURCES = \
|
---|
49 | VBoxInstallHelper.cpp \
|
---|
50 | VBoxInstallHelper.def \
|
---|
51 | VBoxInstallHelper.rc \
|
---|
52 | VBoxCommon.cpp \
|
---|
53 | $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvCommon.cpp \
|
---|
54 | $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvInst.cpp \
|
---|
55 | $(PATH_ROOT)/src/VBox/GuestHost/Installation/VBoxWinDrvStore.cpp
|
---|
56 | ifndef VBOX_OSE
|
---|
57 | VBoxInstallHelper_SOURCES += \
|
---|
58 | internal/VBoxSerial.cpp
|
---|
59 | endif
|
---|
60 | VBoxInstallHelper_LIBS += \
|
---|
61 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib
|
---|
62 |
|
---|
63 | if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_TESTCASES) && !defined(VBOX_OSE)
|
---|
64 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
65 | endif
|
---|
66 |
|
---|
67 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
68 |
|
---|