1 | # $Id: Makefile.kmk 43346 2012-09-18 12:15:04Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the common guest addition code library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 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 |
|
---|
27 | SUB_DEPTH = ../../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # Target config.
|
---|
32 | #
|
---|
33 | if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_TESTSUITE)
|
---|
34 | LIBRARIES += \
|
---|
35 | VBoxGuestR0Lib \
|
---|
36 | VBoxGuestR0LibBase
|
---|
37 | endif
|
---|
38 | LIBRARIES += \
|
---|
39 | VBoxGuestR3Lib \
|
---|
40 | VBoxGuestR3LibShared
|
---|
41 | ifndef VBOX_ONLY_TESTSUITE
|
---|
42 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
|
---|
43 | LIBRARIES += \
|
---|
44 | VBoxGuestR3LibXFree86
|
---|
45 | endif
|
---|
46 | endif
|
---|
47 | LIBRARIES.win.amd64 += VBoxGuestR3Lib-x86 VBoxGuestR3LibShared-x86
|
---|
48 |
|
---|
49 |
|
---|
50 | #
|
---|
51 | # VBoxGuestR0Lib
|
---|
52 | #
|
---|
53 | VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
|
---|
54 | VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM \
|
---|
55 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
|
---|
56 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
57 | VBoxGuestR0Lib_INCS = \
|
---|
58 | $(VBoxGuestR0Lib_0_OUTDIR)
|
---|
59 | VBoxGuestR0Lib_SOURCES = \
|
---|
60 | GenericRequest.cpp \
|
---|
61 | SysHlp.cpp \
|
---|
62 | PhysHeap.cpp \
|
---|
63 | Init.cpp \
|
---|
64 | Mouse.cpp \
|
---|
65 | VMMDev.cpp \
|
---|
66 | HGCM.cpp \
|
---|
67 | VBoxGuestR0LibSharedFolders.c \
|
---|
68 | VBoxGuestR0LibCrOgl.cpp \
|
---|
69 | VbglR0CanUsePhysPageList.cpp
|
---|
70 |
|
---|
71 | #
|
---|
72 | # VBoxGuestR0LibBase
|
---|
73 | #
|
---|
74 | VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
|
---|
75 | VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST \
|
---|
76 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
|
---|
77 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
78 | VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
|
---|
79 | VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
|
---|
80 | VBoxGuestR0LibBase_SOURCES = \
|
---|
81 | GenericRequest.cpp \
|
---|
82 | SysHlp.cpp \
|
---|
83 | PhysHeap.cpp \
|
---|
84 | Init.cpp \
|
---|
85 | VMMDev.cpp \
|
---|
86 | HGCMInternal.cpp \
|
---|
87 | VbglR0CanUsePhysPageList.cpp
|
---|
88 |
|
---|
89 | #
|
---|
90 | # VBoxGuestR3Lib
|
---|
91 | #
|
---|
92 | VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
|
---|
93 | VBoxGuestR3Lib_DEFS = \
|
---|
94 | VBOX_WITH_HGCM \
|
---|
95 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
|
---|
96 | $(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,) \
|
---|
97 | $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
|
---|
98 | VBoxGuestR3Lib_SOURCES = \
|
---|
99 | VBoxGuestR3Lib.cpp \
|
---|
100 | VBoxGuestR3LibAdditions.cpp \
|
---|
101 | VBoxGuestR3LibAutoLogon.cpp \
|
---|
102 | VBoxGuestR3LibBalloon.cpp \
|
---|
103 | VBoxGuestR3LibClipboard.cpp \
|
---|
104 | VBoxGuestR3LibCoreDump.cpp \
|
---|
105 | VBoxGuestR3LibCpuHotPlug.cpp \
|
---|
106 | VBoxGuestR3LibCredentials.cpp \
|
---|
107 | VBoxGuestR3LibEvent.cpp \
|
---|
108 | VBoxGuestR3LibGR.cpp \
|
---|
109 | VBoxGuestR3LibHostChannel.cpp \
|
---|
110 | VBoxGuestR3LibLog.cpp \
|
---|
111 | VBoxGuestR3LibMisc.cpp \
|
---|
112 | VBoxGuestR3LibStat.cpp \
|
---|
113 | VBoxGuestR3LibTime.cpp \
|
---|
114 | VBoxGuestR3LibModule.cpp
|
---|
115 | ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
|
---|
116 | VBoxGuestR3Lib_SOURCES += \
|
---|
117 | VBoxGuestR3LibDaemonize.cpp \
|
---|
118 | VBoxGuestR3LibMouse.cpp \
|
---|
119 | VBoxGuestR3LibSeamless.cpp \
|
---|
120 | VBoxGuestR3LibVideo.cpp
|
---|
121 | endif
|
---|
122 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
123 | VBoxGuestR3Lib_SOURCES += \
|
---|
124 | VBoxGuestR3LibGuestProp.cpp \
|
---|
125 | VBoxGuestR3LibHostVersion.cpp
|
---|
126 | endif
|
---|
127 | ifdef VBOX_WITH_SHARED_FOLDERS
|
---|
128 | VBoxGuestR3Lib_SOURCES += \
|
---|
129 | VBoxGuestR3LibSharedFolders.cpp
|
---|
130 | endif
|
---|
131 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
132 | VBoxGuestR3Lib_SOURCES += \
|
---|
133 | VBoxGuestR3LibGuestCtrl.cpp
|
---|
134 | endif
|
---|
135 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
136 | VBoxGuestR3Lib_DEFS += \
|
---|
137 | VBOX_WITH_DRAG_AND_DROP \
|
---|
138 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
139 | VBoxGuestR3Lib_SOURCES += \
|
---|
140 | VBoxGuestR3LibDragAndDrop.cpp
|
---|
141 | endif
|
---|
142 |
|
---|
143 | VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
144 |
|
---|
145 | #
|
---|
146 | # VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
|
---|
147 | #
|
---|
148 | VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
|
---|
149 | VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
|
---|
150 | VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
|
---|
151 | VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
|
---|
152 |
|
---|
153 |
|
---|
154 | #
|
---|
155 | # VBoxGuestR3Lib-x86 - an x86 (32-bit) variant of VBoxGuestR3Lib for 64-bit Windows.
|
---|
156 | #
|
---|
157 | VBoxGuestR3Lib-x86_EXTENDS := VBoxGuestR3Lib
|
---|
158 | VBoxGuestR3Lib-x86_BLD_TRG_ARCH := x86
|
---|
159 |
|
---|
160 |
|
---|
161 | #
|
---|
162 | # VBoxGuestR3LibShared-x86 - an x86 (32-bit) variant of VBoxGuestR3LibShared for 64-bit Windows.
|
---|
163 | #
|
---|
164 | VBoxGuestR3LibShared-x86_EXTENDS := VBoxGuestR3LibShared
|
---|
165 | VBoxGuestR3LibShared-x86_BLD_TRG_ARCH := x86
|
---|
166 |
|
---|
167 |
|
---|
168 | #
|
---|
169 | # VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
|
---|
170 | # the X server runtime instead of IPRT, for use with old servers where the
|
---|
171 | # C library is not available.
|
---|
172 | #
|
---|
173 | VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3XF86LIB
|
---|
174 | VBoxGuestR3LibXFree86_DEFS = \
|
---|
175 | VBOX_WITH_HGCM \
|
---|
176 | VBOX_VBGLR3_XFREE86 \
|
---|
177 | RTMEM_NO_WRAP_TO_EF_APIS \
|
---|
178 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
|
---|
179 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
|
---|
180 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
181 | VBoxGuestR3LibXFree86_SOURCES = \
|
---|
182 | VBoxGuestR3Lib.cpp \
|
---|
183 | VBoxGuestR3LibGR.cpp \
|
---|
184 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
|
---|
185 | VBoxGuestR3LibMouse.cpp \
|
---|
186 | VBoxGuestR3LibMisc.cpp \
|
---|
187 | VBoxGuestR3LibSeamless.cpp \
|
---|
188 | VBoxGuestR3LibVideo.cpp \
|
---|
189 | VBoxGuestR3LibRuntimeXF86.cpp
|
---|
190 | VBoxGuestR3LibXFree86_INCS = \
|
---|
191 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
|
---|
192 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
|
---|
193 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
|
---|
194 | $(VBOX_PATH_X11_XFREE_4_3)/include \
|
---|
195 | $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
|
---|
196 |
|
---|
197 | VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
|
---|
198 |
|
---|
199 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
200 |
|
---|