1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z 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 | ifndef VBOX_OSE
|
---|
54 | VBoxInstallHelper_SOURCES += \
|
---|
55 | internal/VBoxSerial.cpp
|
---|
56 | endif
|
---|
57 | VBoxInstallHelper_LIBS += \
|
---|
58 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib
|
---|
59 |
|
---|
60 | if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_TESTCASES) && !defined(VBOX_OSE)
|
---|
61 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
62 | endif
|
---|
63 |
|
---|
64 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
65 |
|
---|