VirtualBox

source: vbox/trunk/src/VBox/Installer/win/InstallHelper/Makefile.kmk

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

Installer/Windows/InstallHelper: Cleaned up #ifdef hell for VBOX_WITH_NETADP and VBOX_WITH_NETFLT to make it actually compile if not defined. Made some functions static which weren't before. Better would be having most of that code in a separate module; something for later. Needed as a prerequisite for a new testcase which doesn't need all of this VBOX_WITH_NETXXX code [SCM fix].

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# $Id: Makefile.kmk 103890 2024-03-18 11:50:24Z vboxsync $
2## @file
3# Sub-Makefile for VBoxInstallHelper.dll.
4#
5
6#
7# Copyright (C) 2008-2023 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
32DLLS += VBoxInstallHelper
33VBoxInstallHelper_TEMPLATE = VBoxR3StaticDllNoAsan
34VBoxInstallHelper_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
35VBoxInstallHelper_DEFS = _WIN32_WINNT=0x0501 _UNICODE UNICODE VBOX_SVN_REV=$(VBOX_SVN_REV)
36if 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
46endif
47VBoxInstallHelper_DEPS = $(VBOX_SVN_REV_KMK)
48VBoxInstallHelper_SOURCES = \
49 VBoxInstallHelper.cpp \
50 VBoxInstallHelper.def \
51 VBoxInstallHelper.rc \
52 VBoxCommon.cpp
53ifndef VBOX_OSE
54 VBoxInstallHelper_SOURCES += \
55 internal/VBoxSerial.cpp
56endif
57VBoxInstallHelper_LIBS += \
58 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib
59
60if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_TESTCASES) && !defined(VBOX_OSE)
61 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
62endif
63
64include $(FILE_KBUILD_SUB_FOOTER)
65
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use