# $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $ ## @file # Sub-Makefile for VBoxCredProv. # # # Copyright (C) 2009-2023 Oracle and/or its affiliates. # # This file is part of VirtualBox base platform packages, as # available from https://www.virtualbox.org. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation, in version 3 of the # License. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # SPDX-License-Identifier: GPL-3.0-only # SUB_DEPTH = ../../../../.. include $(KBUILD_PATH)/subheader.kmk # Do we want to use Windows SENS (System Event Notification Service)? VBOX_WITH_WIN_SENS := 1 DLLS += VBoxCredProv VBoxCredProv_TEMPLATE = VBoxGuestR3Dll VBoxCredProv_DEFS = VBGL_VBOXGUEST VBOX_WITH_HGCM UNICODE ifdef VBOX_WITH_WIN_SENS VBoxCredProv_DEFS += VBOX_WITH_WIN_SENS endif VBoxCredProv_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST_WLH) VBoxCredProv_SOURCES = \ VBoxCredentialProvider.cpp \ VBoxCredentialProvider.def \ VBoxCredentialProvider.rc \ VBoxCredProvFactory.cpp \ VBoxCredProvProvider.cpp \ VBoxCredProvCredential.cpp \ VBoxCredProvPoller.cpp \ VBoxCredProvUtils.cpp ifdef VBOX_WITH_WIN_SENS # To use com::Bstr for BSTR handling. VBoxCredProv_SOURCES += \ $(PATH_ROOT)/src/VBox/Main/glue/string.cpp endif VBoxCredProv_LIBS = \ $(VBOX_LIB_IPRT_GUEST_R3) \ $(VBOX_LIB_VBGL_R3) VBoxCredProv_LIBS += \ $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/credui.lib \ $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/Secur32.Lib \ $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/NetAPI32.Lib VBoxCredProv_VBOX_IMPORT_CHECKER.win.x86 := vista VBoxCredProv_VBOX_IMPORT_CHECKER.win.amd64 := vista include $(FILE_KBUILD_SUB_FOOTER)