VirtualBox

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

Last change on this file since 41852 was 41852, checked in by vboxsync, 13 years ago

Additions/common and solaris/vboxmouse: large code drop.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.8 KB
Line 
1# $Id: Makefile.kmk 41852 2012-06-20 15:59:57Z 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
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
47LIBRARIES.win.amd64 += VBoxGuestR3Lib-x86 VBoxGuestR3LibShared-x86
48
49
50#
51# VBoxGuestR0Lib
52#
53VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
54VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM \
55 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,)
56VBoxGuestR0Lib_INCS = \
57 $(VBoxGuestR0Lib_0_OUTDIR)
58VBoxGuestR0Lib_SOURCES = \
59 GenericRequest.cpp \
60 SysHlp.cpp \
61 PhysHeap.cpp \
62 Init.cpp \
63 Mouse.cpp \
64 VMMDev.cpp \
65 HGCM.cpp \
66 VBoxGuestR0LibSharedFolders.c \
67 VBoxGuestR0LibCrOgl.cpp \
68 VbglR0CanUsePhysPageList.cpp
69
70#
71# VBoxGuestR0LibBase
72#
73VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
74VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST \
75 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,)
76VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
77VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
78VBoxGuestR0LibBase_SOURCES = \
79 GenericRequest.cpp \
80 SysHlp.cpp \
81 PhysHeap.cpp \
82 Init.cpp \
83 VMMDev.cpp \
84 HGCMInternal.cpp \
85 VbglR0CanUsePhysPageList.cpp
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 VBoxGuestR3LibAutoLogon.cpp \
100 VBoxGuestR3LibBalloon.cpp \
101 VBoxGuestR3LibClipboard.cpp \
102 VBoxGuestR3LibCoreDump.cpp \
103 VBoxGuestR3LibCpuHotPlug.cpp \
104 VBoxGuestR3LibCredentials.cpp \
105 VBoxGuestR3LibEvent.cpp \
106 VBoxGuestR3LibGR.cpp \
107 VBoxGuestR3LibLog.cpp \
108 VBoxGuestR3LibMisc.cpp \
109 VBoxGuestR3LibStat.cpp \
110 VBoxGuestR3LibTime.cpp \
111 VBoxGuestR3LibModule.cpp
112ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
113 VBoxGuestR3Lib_SOURCES += \
114 VBoxGuestR3LibDaemonize.cpp \
115 VBoxGuestR3LibMouse.cpp \
116 VBoxGuestR3LibSeamless.cpp \
117 VBoxGuestR3LibVideo.cpp
118endif
119ifdef VBOX_WITH_GUEST_PROPS
120 VBoxGuestR3Lib_SOURCES += \
121 VBoxGuestR3LibGuestProp.cpp \
122 VBoxGuestR3LibHostVersion.cpp
123endif
124ifdef VBOX_WITH_SHARED_FOLDERS
125 VBoxGuestR3Lib_SOURCES += \
126 VBoxGuestR3LibSharedFolders.cpp
127endif
128ifdef VBOX_WITH_GUEST_CONTROL
129 VBoxGuestR3Lib_SOURCES += \
130 VBoxGuestR3LibGuestCtrl.cpp
131endif
132ifdef VBOX_WITH_DRAG_AND_DROP
133 VBoxGuestR3Lib_DEFS += \
134 VBOX_WITH_DRAG_AND_DROP
135 VBoxGuestR3Lib_SOURCES += \
136 VBoxGuestR3LibDragAndDrop.cpp
137endif
138
139VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
140
141#
142# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
143#
144VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
145VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
146VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
147VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
148
149
150#
151# VBoxGuestR3Lib-x86 - an x86 (32-bit) variant of VBoxGuestR3Lib for 64-bit Windows.
152#
153VBoxGuestR3Lib-x86_EXTENDS := VBoxGuestR3Lib
154VBoxGuestR3Lib-x86_BLD_TRG_ARCH := x86
155
156
157#
158# VBoxGuestR3LibShared-x86 - an x86 (32-bit) variant of VBoxGuestR3LibShared for 64-bit Windows.
159#
160VBoxGuestR3LibShared-x86_EXTENDS := VBoxGuestR3LibShared
161VBoxGuestR3LibShared-x86_BLD_TRG_ARCH := x86
162
163
164#
165# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
166# the X server runtime instead of IPRT, for use with old servers where the
167# C library is not available.
168#
169VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3XF86LIB
170VBoxGuestR3LibXFree86_DEFS = \
171 VBOX_WITH_HGCM \
172 VBOX_VBGLR3_XFREE86 \
173 RTMEM_NO_WRAP_TO_EF_APIS \
174 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
175 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,)
176VBoxGuestR3LibXFree86_SOURCES = \
177 VBoxGuestR3Lib.cpp \
178 VBoxGuestR3LibGR.cpp \
179 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
180 VBoxGuestR3LibMouse.cpp \
181 VBoxGuestR3LibMisc.cpp \
182 VBoxGuestR3LibSeamless.cpp \
183 VBoxGuestR3LibVideo.cpp \
184 VBoxGuestR3LibRuntimeXF86.cpp
185VBoxGuestR3LibXFree86_INCS = \
186 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
187 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
188 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
189 $(VBOX_PATH_X11_XFREE_4_3)/include \
190 $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
191
192VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
193
194include $(FILE_KBUILD_SUB_FOOTER)
195
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