VirtualBox

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

Last change on this file since 33595 was 33586, checked in by vboxsync, 14 years ago

Storage: Build vbox-img like before because it doesn't want to link against the static storage library on Windows for some reason. Disable LibStorageNoDB for now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 33586 2010-10-28 22:00:52Z 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 vbox-img
52 tstVD_TEMPLATE = VBOXR3TSTEXE
53 tstVD-2_TEMPLATE = VBOXR3TSTEXE
54 tstVDCopy_TEMPLATE = VBOXR3TSTEXE
55 tstVDSnap_TEMPLATE = VBOXR3TSTEXE
56 tstVDShareable_TEMPLATE = VBOXR3TSTEXE
57 vbox-img_TEMPLATE = VBOXR3STATIC
58 tstVD_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
59 tstVD-2_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
60 tstVDCopy_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
61 tstVDSnap_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
62 tstVDShareable_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
63 tstVDSetUuid_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
64 vbox-img_LIBS = \
65 $(VBOX_LIB_RUNTIME_STATIC)
66 if1of ($(KBUILD_TARGET),os2 win)
67 vbox-img_LIBS += \
68 $(PATH_LIB)/VBox-liblzf-static$(VBOX_SUFF_LIB) \
69 $(PATH_LIB)/VBox-zlib-static$(VBOX_SUFF_LIB)
70 else
71 vbox-img_LIBS += \
72 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
73 $(SDK_VBOX_ZLIB_LIBS)
74 endif
75 ifeq ($(KBUILD_TARGET),linux)
76 vbox-img_LIBS += crypt
77 else if1of ($(KBUILD_TARGET),darwin freebsd)
78 vbox-img_LIBS += iconv
79 else ifeq ($(KBUILD_TARGET),win)
80 vbox-img_SDKS.win = VBOX_NTDLL
81 endif
82 tstVD_SOURCES = tstVD.cpp
83 tstVD-2_SOURCES = tstVD-2.cpp
84 tstVDCopy_SOURCES = tstVDCopy.cpp
85 tstVDSnap_SOURCES = tstVDSnap.cpp
86 tstVDShareable_SOURCES = tstVDShareable.cpp
87
88 vbox-img_SOURCES = \
89 vbox-img.cpp \
90 $(VBOX_PATH_STORAGE_SRC)/VD.cpp \
91 $(VBOX_PATH_STORAGE_SRC)/VDI.cpp \
92 $(VBOX_PATH_STORAGE_SRC)/VMDK.cpp \
93 $(VBOX_PATH_STORAGE_SRC)/VHD.cpp \
94 $(VBOX_PATH_STORAGE_SRC)/DMG.cpp \
95 $(VBOX_PATH_STORAGE_SRC)/Parallels.cpp \
96 $(VBOX_PATH_STORAGE_SRC)/ISCSI.cpp \
97 $(VBOX_PATH_STORAGE_SRC)/RAW.cpp \
98 $(VBOX_PATH_STORAGE_SRC)/VCICache.cpp
99 vbox-img_DEFS += IN_VBOXDDU IN_VBOXDDU_STATIC VBOX_HDD_NO_DYNAMIC_BACKENDS IN_RT_R3
100endif
101
102include $(KBUILD_PATH)/subfooter.kmk
103
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