1 | # $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxCredProv.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009-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 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # Do we want to use Windows SENS (System Event Notification Service)?
|
---|
32 | VBOX_WITH_WIN_SENS := 1
|
---|
33 |
|
---|
34 | DLLS += VBoxCredProv
|
---|
35 | VBoxCredProv_TEMPLATE = VBoxGuestR3Dll
|
---|
36 | VBoxCredProv_DEFS = VBGL_VBOXGUEST VBOX_WITH_HGCM UNICODE
|
---|
37 | ifdef VBOX_WITH_WIN_SENS
|
---|
38 | VBoxCredProv_DEFS += VBOX_WITH_WIN_SENS
|
---|
39 | endif
|
---|
40 | VBoxCredProv_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST_WLH)
|
---|
41 | VBoxCredProv_SOURCES = \
|
---|
42 | VBoxCredentialProvider.cpp \
|
---|
43 | VBoxCredentialProvider.def \
|
---|
44 | VBoxCredentialProvider.rc \
|
---|
45 | VBoxCredProvFactory.cpp \
|
---|
46 | VBoxCredProvProvider.cpp \
|
---|
47 | VBoxCredProvCredential.cpp \
|
---|
48 | VBoxCredProvPoller.cpp \
|
---|
49 | VBoxCredProvUtils.cpp
|
---|
50 | ifdef VBOX_WITH_WIN_SENS
|
---|
51 | # To use com::Bstr for BSTR handling.
|
---|
52 | VBoxCredProv_SOURCES += \
|
---|
53 | $(PATH_ROOT)/src/VBox/Main/glue/string.cpp
|
---|
54 | endif
|
---|
55 | VBoxCredProv_LIBS = \
|
---|
56 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
57 | $(VBOX_LIB_VBGL_R3)
|
---|
58 | VBoxCredProv_LIBS += \
|
---|
59 | $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/credui.lib \
|
---|
60 | $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/Secur32.Lib \
|
---|
61 | $(PATH_SDK_$(VBOX_WINPSDK_GST_WLH)_LIB)/NetAPI32.Lib
|
---|
62 | VBoxCredProv_VBOX_IMPORT_CHECKER.win.x86 := vista
|
---|
63 | VBoxCredProv_VBOX_IMPORT_CHECKER.win.amd64 := vista
|
---|
64 |
|
---|
65 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
66 |
|
---|