VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk@ 107377

Last change on this file since 107377 was 106061, checked in by vboxsync, 5 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
2## @file
3# Sub-Makefile for the Shared Folders Host Service testcases.
4#
5
6#
7# Copyright (C) 2006-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
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Structure size testcase.
33#
34PROGRAMS += tstShflSizes
35TESTING += $(tstShflSizes_0_OUTDIR)/tstShflSizes.run
36ifndef VBOX_ONLY_SDK
37 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
38 if1of ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH), x86.x86 amd64.amd64 x86.amd64)
39 OTHERS += $(tstShflSizes_0_OUTDIR)/tstShflSizes.run
40 endif
41 endif
42endif
43tstShflSizes_TEMPLATE = VBoxR3AutoTest
44tstShflSizes_DEFS = VBOX_WITH_HGCM
45tstShflSizes_SOURCES = tstShflSizes.cpp
46tstShflSizes_CLEAN = $(tstShflSizes_0_OUTDIR)/tstShflSizes.run
47
48$$(tstShflSizes_0_OUTDIR)/tstShflSizes.run: $$(tstShflSizes_1_STAGE_TARGET)
49 $(tstShflSizes_1_STAGE_TARGET) quiet
50 $(QUIET)$(APPEND) -t "$@" "done"
51
52
53ifdef VBOX_WITH_TESTCASES
54 #
55 # Case conversion testcase.
56 #
57 PROGRAMS += tstShflCase
58 tstShflCase_TEMPLATE = VBoxR3TstExe
59 tstShflCase_DEFS = VBOX_WITH_HGCM
60 tstShflCase_SOURCES = tstShflCase.cpp
61 tstShflCase_LIBS = $(LIB_RUNTIME)
62
63 #
64 # HGCM service testcase.
65 #
66
67 PROGRAMS += tstSharedFolderService
68 tstSharedFolderService_TEMPLATE = VBoxR3TstExe
69 tstSharedFolderService_DEFS = VBOX_WITH_HGCM UNITTEST
70 tstSharedFolderService_INCS = ..
71 ifneq ($(KBUILD_TARGET),win)
72 tstSharedFolderService_DEFS += VBOX_WITH_XPCOM
73 tstSharedFolderService_INCS += $(VBOX_XPCOM_INCS)
74 endif
75 tstSharedFolderService_INCS.win += $(VBOX_PATH_SDK)/bindings/mscom/include
76 tstSharedFolderService_SOURCES = \
77 tstSharedFolderService.cpp \
78 ../mappings.cpp \
79 ../VBoxSharedFoldersSvc.cpp \
80 ../shflhandle.cpp \
81 ../vbsfpathabs.cpp \
82 ../vbsfpath.cpp \
83 ../vbsf.cpp
84 tstSharedFolderService_LDFLAGS.darwin = \
85 -framework Carbon
86 tstSharedFolderService_LIBS = $(LIB_RUNTIME)
87
88 if 0 # Cannot define two RT_OS_XXX macros!
89 # As there are differences between the Windows build of the service and others,
90 # we do an additional build with RT_OS_WINDOWS defined on non-Windows targets.
91 PROGRAMS += \
92 tstSharedFolderService \
93 $(if $(eq $(KBUILD_TARGET),win),,tstSharedFolderService-win)
94 tstSharedFolderService-win_TEMPLATE = $(tstSharedFolderService_TEMPLATE)
95 tstSharedFolderService-win_DEFS = \
96 $(tstSharedFolderService_DEFS) \
97 RT_OS_WINDOWS
98 tstSharedFolderService-win_INCS = $(tstSharedFolderService_INCS)
99 tstSharedFolderService-win_SOURCES = $(tstSharedFolderService_SOURCES)
100 tstSharedFolderService-win_LDFLAGS.darwin = \
101 $(tstSharedFolderService_LDFLAGS.darwin)
102 tstSharedFolderService-win_LIBS = $(tstSharedFolderService_LIBS)
103 endif
104
105endif # VBOX_WITH_TESTCASES
106
107
108include $(FILE_KBUILD_SUB_FOOTER)
109
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette