VirtualBox

source: vbox/trunk/src/VBox/Devices/Storage/testcase/Makefile.kmk@ 32204

Last change on this file since 32204 was 31594, checked in by vboxsync, 14 years ago

disabled VBoxFixHdd

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 31594 2010-08-12 09:56:25Z vboxsync $
2## @file
3# Sub-Makefile for the storage device & driver testcases.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# vditool - useful too for manipulating VDIs, but now pretty obsolete and
23# probably will go away soon. Testcase only now.
24#
25ifdef VBOX_WITH_TESTCASES
26 PROGRAMS += vditool
27 vditool_TEMPLATE = VBOXR3TSTEXE
28 vditool_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
29 vditool_SOURCES = vditool.cpp
30endif
31
32
33#
34# Basic testcase for the VDI code.
35#
36#ifdef VBOX_WITH_TESTCASES
37# PROGRAMS += tstVDI
38# ifeq ($(KBUILD_TARGET),l4)
39# tstVDI_TEMPLATE = VBOXLNXHOSTR3EXE
40# else
41# tstVDI_TEMPLATE = VBOXR3TSTEXE
42# endif
43# tstVDI_LIBS = $(vditool_LIBS)
44# tstVDI_SOURCES = tstVDI.cpp
45#endif
46
47#
48# Basic testcases for the VD code.
49#
50ifdef VBOX_WITH_TESTCASES
51 PROGRAMS += tstVD tstVD-2 tstVDCopy tstVDSnap tstVDShareable tstVDSetUuid
52 if1of ($(KBUILD_TARGET), darwin freebsd linux win solaris)
53 # disable as no longer required
54 # PROGRAMS += VBoxFixHdd
55 endif
56 ifeq ($(KBUILD_TARGET),l4)
57 tstVD_TEMPLATE = VBOXLNXHOSTR3EXE
58 tstVD-2_TEMPLATE = VBOXLNXHOSTR3EXE
59 tstVDCopy_TEMPLATE = VBOXLNXHOSTR3EXE
60 tstVDSnap_TEMPLATE = VBOXLNXHOSTR3EXE
61 tstVDShareable_TEMPLATE = VBOXLNXHOSTR3EXE
62 tstVDSetUuid_TEMPLATE = VBOXLNXHOSTR3EXE
63 else
64 tstVD_TEMPLATE = VBOXR3TSTEXE
65 tstVD-2_TEMPLATE = VBOXR3TSTEXE
66 tstVDCopy_TEMPLATE = VBOXR3TSTEXE
67 tstVDSnap_TEMPLATE = VBOXR3TSTEXE
68 tstVDShareable_TEMPLATE = VBOXR3TSTEXE
69 tstVDSetUuid_TEMPLATE = VBOXR3TSTEXE
70 VBoxFixHdd_TEMPLATE = VBOXR3STATIC
71 endif
72 tstVD_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
73 tstVD-2_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
74 tstVDCopy_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
75 tstVDSnap_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
76 tstVDShareable_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
77 tstVDSetUuid_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
78 VBoxFixHdd_LIBS = \
79 $(VBOX_LIB_RUNTIME_STATIC)
80 if1of ($(KBUILD_TARGET),os2 win)
81 VBoxFixHdd_LIBS += \
82 $(PATH_LIB)/VBox-liblzf-static$(VBOX_SUFF_LIB) \
83 $(PATH_LIB)/VBox-zlib-static$(VBOX_SUFF_LIB)
84 else
85 VBoxFixHdd_LIBS += \
86 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
87 $(SDK_VBOX_ZLIB_LIBS)
88 endif
89 ifeq ($(KBUILD_TARGET),linux)
90 VBoxFixHdd_LIBS += crypt
91 else ifeq ($(KBUILD_TARGET),darwin)
92 VBoxFixHdd_LIBS += iconv
93 else ifeq ($(KBUILD_TARGET),win)
94 VBoxFixHdd_SDKS.win = VBOX_NTDLL
95 endif
96 tstVD_SOURCES = tstVD.cpp
97 tstVD-2_SOURCES = tstVD-2.cpp
98 tstVDCopy_SOURCES = tstVDCopy.cpp
99 tstVDSnap_SOURCES = tstVDSnap.cpp
100 tstVDShareable_SOURCES = tstVDShareable.cpp
101 tstVDSetUuid_SOURCES = tstVDSetUuid.cpp
102 VBoxFixHdd_SOURCES = \
103 tstVDSetUuid.cpp \
104 tstVDSetUuidStubs.cpp \
105 $(VBOX_PATH_DEVICES_SRC)/Storage/VBoxHDD.cpp \
106 $(VBOX_PATH_DEVICES_SRC)/Storage/RawHDDCore.cpp \
107 $(VBOX_PATH_DEVICES_SRC)/Storage/VmdkHDDCore.cpp \
108 $(VBOX_PATH_DEVICES_SRC)/Storage/VDIHDDCore.cpp \
109 $(VBOX_PATH_DEVICES_SRC)/Storage/VHDHDDCore.cpp \
110 $(VBOX_PATH_DEVICES_SRC)/Storage/ParallelsHDDCore.cpp
111 ifdef VBOX_WITH_NEW_IO_CODE
112 VBoxFixHdd_DEFS += VBOX_WITH_NEW_IO_CODE
113 endif
114 VBoxFixHdd_DEFS += VBOX_HDD_NO_DYNAMIC_BACKENDS IN_VBOXDDU IN_VBOXDDU_STATIC IN_RT_R3
115endif
116
117include $(KBUILD_PATH)/subfooter.kmk
118
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