[33567] | 1 | # $Id: Makefile.kmk 98130 2023-01-19 08:31:52Z vboxsync $
|
---|
| 2 | ## @file
|
---|
| 3 | # Sub-Makefile for the Storage library.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[98103] | 7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[33567] | 8 | #
|
---|
[96407] | 9 | # This file is part of VirtualBox base platform packages, as
|
---|
| 10 | # available from https://www.virtualbox.org.
|
---|
[33567] | 11 | #
|
---|
[96407] | 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 | #
|
---|
[33567] | 27 |
|
---|
| 28 | SUB_DEPTH = ../../..
|
---|
| 29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
| 30 |
|
---|
[33586] | 31 | VBOX_PATH_STORAGE_SRC := $(PATH_SUB_CURRENT)
|
---|
| 32 |
|
---|
[51758] | 33 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
| 34 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
[33567] | 35 |
|
---|
[51758] | 36 | #
|
---|
| 37 | # StorageLib - The storage Library.
|
---|
| 38 | #
|
---|
| 39 | LIBRARIES += StorageLib #StorageLibNoDB
|
---|
[33567] | 40 |
|
---|
[98130] | 41 | StorageLib_TEMPLATE = VBoxR3Dll
|
---|
[51758] | 42 | StorageLib_DEFS = IN_VBOXDDU
|
---|
[59601] | 43 | ifeq ($(USER),bird)
|
---|
| 44 | StorageLib_DEFS.debug += RTMEM_WRAP_TO_EF_APIS
|
---|
| 45 | endif
|
---|
| 46 |
|
---|
[51758] | 47 | StorageLib_SOURCES = \
|
---|
[74316] | 48 | VD.cpp \
|
---|
| 49 | VDPlugin.cpp \
|
---|
| 50 | VDVfs.cpp \
|
---|
| 51 | VDIfVfs.cpp \
|
---|
| 52 | VDIfVfs2.cpp \
|
---|
[77855] | 53 | VDIfTcpNet.cpp \
|
---|
[74316] | 54 | VDI.cpp \
|
---|
| 55 | VMDK.cpp \
|
---|
| 56 | VHD.cpp \
|
---|
| 57 | DMG.cpp \
|
---|
| 58 | Parallels.cpp \
|
---|
| 59 | ISCSI.cpp \
|
---|
| 60 | RAW.cpp \
|
---|
| 61 | QED.cpp \
|
---|
| 62 | QCOW.cpp \
|
---|
| 63 | VHDX.cpp \
|
---|
| 64 | CUE.cpp \
|
---|
| 65 | VISO.cpp \
|
---|
| 66 | VCICache.cpp
|
---|
| 67 | endif # !VBOX_ONLY_EXTPACKS
|
---|
[33567] | 68 |
|
---|
[51755] | 69 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
| 70 | if defined(VBOX_WITH_PLUGIN_CRYPT)
|
---|
| 71 | DLLS += VDPluginCrypt
|
---|
[63976] | 72 | VDPluginCrypt_TEMPLATE = VBoxR3ExtPackPuelWithOpenSsl
|
---|
[66125] | 73 | VDPluginCrypt_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
[74316] | 74 | VDPluginCrypt_DEFS = $(if $(VD_WITH_IPRT_CRYPTO),VD_WITH_IPRT_CRYPTO,)
|
---|
[54403] | 75 | VDPluginCrypt_SOURCES = \
|
---|
[74316] | 76 | VDFilterCrypt.cpp \
|
---|
| 77 | VDKeyStore.cpp
|
---|
| 78 | VDPluginCrypt_SOURCES.win = \
|
---|
| 79 | VDPluginCrypt.rc
|
---|
[51755] | 80 | endif
|
---|
| 81 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
| 82 |
|
---|
[98130] | 83 | #StorageLibNoDB_TEMPLATE = VBoxR3Dll
|
---|
[33586] | 84 | #StorageLibNoDB_DEFS = IN_VBOXDDU VBOX_HDD_NO_DYNAMIC_BACKENDS
|
---|
| 85 | #StorageLibNoDB_SOURCES = \
|
---|
| 86 | # $(StorageLib_SOURCES)
|
---|
[33567] | 87 |
|
---|
| 88 | # generate rules
|
---|
[41477] | 89 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[33567] | 90 |
|
---|