VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk@ 31364

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

Some more fixes for Guest Additions version lookup/status; moved some duplicate helper function to VbglR0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1# $Id: Makefile.kmk 31364 2010-08-04 16:44:20Z vboxsync $
2## @file
3# Sub-Makefile for the common guest addition code library.
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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# Target config.
32#
33if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_TESTSUITE)
34 LIBRARIES += \
35 VBoxGuestR0Lib \
36 VBoxGuestR0LibBase
37endif
38LIBRARIES += \
39 VBoxGuestR3Lib \
40 VBoxGuestR3LibShared
41ifndef VBOX_ONLY_TESTSUITE
42 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
43 LIBRARIES += \
44 VBoxGuestR3LibXFree86
45 endif
46endif
47
48
49#
50# VBoxGuestR0Lib
51#
52VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
53VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM
54VBoxGuestR0Lib_INCS = \
55 $(PATH_VBoxGuestR0Lib)
56VBoxGuestR0Lib_SOURCES = \
57 GenericRequest.cpp \
58 SysHlp.cpp \
59 PhysHeap.cpp \
60 Init.cpp \
61 VMMDev.cpp \
62 HGCM.cpp \
63 VBoxGuestR0LibMisc.c \
64 VBoxGuestR0LibSharedFolders.c \
65 VbglR0CanUsePhysPageList.cpp
66
67VBoxGuestR0LibMisc.c_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
68
69
70#
71# VBoxGuestR0LibBase
72#
73VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
74VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST
75VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
76VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
77VBoxGuestR0LibBase_SOURCES = \
78 GenericRequest.cpp \
79 SysHlp.cpp \
80 PhysHeap.cpp \
81 Init.cpp \
82 VMMDev.cpp \
83 HGCMInternal.cpp \
84 VbglR0CanUsePhysPageList.cpp \
85 VBoxGuestR0LibMisc.c
86
87#
88# VBoxGuestR3Lib
89#
90VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
91VBoxGuestR3Lib_DEFS = \
92 VBOX_WITH_HGCM \
93 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
94 $(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,) \
95 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
96VBoxGuestR3Lib_SOURCES = \
97 VBoxGuestR3Lib.cpp \
98 VBoxGuestR3LibAdditions.cpp \
99 VBoxGuestR3LibBalloon.cpp \
100 VBoxGuestR3LibClipboard.cpp \
101 VBoxGuestR3LibCpuHotPlug.cpp \
102 VBoxGuestR3LibCredentials.cpp \
103 VBoxGuestR3LibEvent.cpp \
104 VBoxGuestR3LibGR.cpp \
105 VBoxGuestR3LibLog.cpp \
106 VBoxGuestR3LibMisc.cpp \
107 VBoxGuestR3LibStat.cpp \
108 VBoxGuestR3LibTime.cpp \
109 VBoxGuestR3LibModule.cpp
110ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
111 VBoxGuestR3Lib_SOURCES += \
112 VBoxGuestR3LibDaemonize.cpp \
113 VBoxGuestR3LibMouse.cpp \
114 VBoxGuestR3LibSeamless.cpp \
115 VBoxGuestR3LibVideo.cpp
116endif
117ifdef VBOX_WITH_GUEST_PROPS
118 VBoxGuestR3Lib_SOURCES += \
119 VBoxGuestR3LibGuestProp.cpp \
120 VBoxGuestR3LibHostVersion.cpp
121endif
122ifdef VBOX_WITH_SHARED_FOLDERS
123 VBoxGuestR3Lib_SOURCES += \
124 VBoxGuestR3LibSharedFolders.cpp
125endif
126ifdef VBOX_WITH_GUEST_CONTROL
127 VBoxGuestR3Lib_SOURCES += \
128 VBoxGuestR3LibGuestCtrl.cpp
129endif
130
131VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
132
133#
134# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
135#
136VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
137VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
138VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
139VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
140
141
142#
143# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
144# the X server runtime instead of IPRT, for use with old servers where the
145# C library is not available.
146#
147## @todo We're quite probably using the wrong template here.
148VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
149VBoxGuestR3LibXFree86_DEFS = \
150 VBOX_WITH_HGCM \
151 VBOX_VBGLR3_XFREE86 \
152 RTMEM_NO_WRAP_TO_EF_APIS \
153 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
154VBoxGuestR3LibXFree86_SOURCES = \
155 VBoxGuestR3Lib.cpp \
156 VBoxGuestR3LibGR.cpp \
157 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
158 VBoxGuestR3LibMouse.cpp \
159 VBoxGuestR3LibMisc.cpp \
160 VBoxGuestR3LibSeamless.cpp \
161 VBoxGuestR3LibVideo.cpp \
162 VBoxGuestR3LibRuntimeXF86.cpp
163VBoxGuestR3LibXFree86_INCS = \
164 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
165 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
166 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
167 $(VBOX_PATH_X11_XFREE_4_3)/include \
168 $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
169
170VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
171
172include $(KBUILD_PATH)/subfooter.kmk
173
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