VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk@ 60190

Last change on this file since 60190 was 60180, checked in by vboxsync, 9 years ago

bugref:8087:8087: Additions/x11: support non-root X server: revert r99502 which removed our fake EDID handling in the user space X.Org video driver. We provided/again provide a fake, unique EDID for our virtual monitors in order to confuse gnome-settings-daemon. g-s-d tries to remember monitors which have been plugged in to a system in the past in order to force a particular video mode on them, which interferes with our dynamic resizing. By ensuring that g-s-d sees a different monitor every time we resize we prevent this.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.1 KB
Line 
1# $Id: Makefile.kmk 60180 2016-03-24 11:43:48Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
4#
5
6#
7# Copyright (C) 2006-2015 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
21vboxvideo_70_DEFS := \
22 IN_MODULE XORG_7X RENDER=1 IN_RT_STATIC X_BYTE_ORDER=X_LITTLE_ENDIAN
23ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
24 vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this?
25endif
26vboxvideo_13_DEFS := $(vboxvideo_70_DEFS) VBOXVIDEO_13
27vboxvideo_15_DEFS := \
28 $(vboxvideo_13_DEFS) NO_ANSIC PCIACCESS XSERVER_LIBPCIACCESS _XORG_SERVER_H_ _DIX_CONFIG_H_
29vboxvideo_xorg_INCS = \
30 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
31 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
32 $(VBOX_PATH_X11_ROOT)/MesaLib-8.0.4-GL \
33 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
34 $(VBOX_PATH_X11_ROOT)/kbproto-1.0.6 \
35 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
36 $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \
37 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
38 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
39 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
40 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
41 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
42
43vboxvideo.c_DEPS = $(VBOX_SVN_REV_HEADER)
44
45#
46# vboxvideo_drv
47#
48if1of ($(KBUILD_TARGET), linux)
49 SYSMODS += vboxvideo_drv
50endif # target linux
51vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
52vboxvideo_drv_CFLAGS += -Wno-shadow # Avoid MBs of warnings in X11 and OpenGL headers (solaris mostly).
53vboxvideo_drv_DEFS.linux = linux
54vboxvideo_drv_DEFS.x86 = __i386__
55# This one has to be defined when building server code on systems where
56# unsigned long is 64bits
57vboxvideo_drv_DEFS.amd64 += _XSERVER64
58vboxvideo_drv_DEFS = \
59 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE _DEFAULT_SOURCE \
60 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
61 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
62 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
63 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
64 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
65 IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
66vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
67vboxvideo_drv_INCS = \
68 $(VBOX_PATH_X11_XFREE_4_3)/include \
69 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
70 $(VBOX_PATH_X11_XFREE_4_3)/include/X11/extensions \
71 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
72 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
73 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
74 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
75 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
76 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
77 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
78 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
79 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
80 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
81 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
82 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
83 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
84 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
85 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
86 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
87 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
88 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
89 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
90 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
91 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
92 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
93 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
94 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
95 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/randr \
96 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
97vboxvideo_drv_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
98vboxvideo_drv_SOURCES = \
99 getmode.c \
100 helpers.c \
101 pointer.c \
102 setmode.c \
103 vboxvideo.c \
104 vbva.c \
105 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
106 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
107 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
108 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
109 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMIMemAlloc.cpp \
110 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapsimple.cpp \
111 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapoffset.cpp
112 # Any global symbols in the driver object files will be added to XFree86's
113 # symbol table, which can cause problems if we e.g. define a symbol in two
114 # modules.
115 vboxvideo_drv_POST_CMDS = \
116 objcopy --keep-global-symbol vboxvideoModuleData $(out) $(out)-objcopy$$(NLTAB) \
117 $(MV) -f $(out)-objcopy $(out)
118
119#
120# vboxvideo_drv_70
121#
122# Remark: The other X.org drivers below are derived from this one. So, to make
123# that as simple as possible we do ifeq/if1of test here and extends the
124# base keywords instead of using .solaris or .linux.
125# Also it is *important* to use := and not = when deriving a property.
126#
127DLLS += vboxvideo_drv_70
128vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
129vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70000000
130ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
131 vboxvideo_drv_70_CFLAGS += -D_XPG6 -Wno-shadow # Use XPG6 until we have moved the C++ bits into a library.
132endif
133vboxvideo_drv_70_INCS = \
134 $(vboxvideo_xorg_INCS) \
135 $(VBOX_PATH_X11_ROOT)/xorg-server-1.0.1
136vboxvideo_drv_70_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
137vboxvideo_drv_70_SOURCES = $(vboxvideo_drv_SOURCES)
138
139
140#
141# vboxvideo_drv_71
142#
143DLLS += vboxvideo_drv_71
144vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
145vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
146vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70100000
147vboxvideo_drv_71_INCS = \
148 $(vboxvideo_xorg_INCS) \
149 $(VBOX_PATH_X11_ROOT)/xorg-server-1.1.0
150vboxvideo_drv_71_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
151vboxvideo_drv_71_SOURCES = $(vboxvideo_drv_SOURCES)
152
153
154#
155# vboxvideo_drv_13
156#
157DLLS += vboxvideo_drv_13
158vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
159vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
160vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10300000
161vboxvideo_drv_13_INCS = \
162 $(vboxvideo_xorg_INCS) \
163 $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0
164vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
165vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
166
167
168#
169# vboxvideo_drv_14
170#
171DLLS += vboxvideo_drv_14
172vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
173vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
174vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10400000
175vboxvideo_drv_14_INCS = \
176 $(vboxvideo_xorg_INCS) \
177 $(VBOX_PATH_X11_ROOT)/xorg-server-1.4.2
178vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
179vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES)
180
181
182#
183# vboxvideo_drv_15
184#
185DLLS += vboxvideo_drv_15
186vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
187vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
188vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10503000
189vboxvideo_drv_15_INCS = \
190 $(vboxvideo_xorg_INCS) \
191 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
192vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
193vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES)
194
195
196#
197# vboxvideo_drv_16
198#
199DLLS += vboxvideo_drv_16
200vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
201vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
202vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10600000
203vboxvideo_drv_16_INCS = \
204 $(vboxvideo_xorg_INCS) \
205 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.5 \
206vboxvideo_drv_16_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
207vboxvideo_drv_16_SOURCES := $(vboxvideo_drv_15_SOURCES)
208
209
210#
211# vboxvideo_drv_17
212#
213DLLS += vboxvideo_drv_17
214vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
215vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
216vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10699000
217vboxvideo_drv_17_INCS = \
218 $(vboxvideo_xorg_INCS) \
219 $(VBOX_PATH_X11_ROOT)/xorg-server-1.7.7
220vboxvideo_drv_17_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
221vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_13_SOURCES)
222
223
224#
225# vboxvideo_drv_18
226#
227DLLS += vboxvideo_drv_18
228vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
229vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
230vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10800000
231vboxvideo_drv_18_INCS = \
232 $(vboxvideo_xorg_INCS) \
233 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0
234vboxvideo_drv_18_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
235vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_17_SOURCES)
236
237
238#
239# vboxvideo_drv_19
240#
241DLLS += vboxvideo_drv_19
242vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
243vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
244vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10900000
245vboxvideo_drv_19_INCS = \
246 $(vboxvideo_xorg_INCS) \
247 $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0
248vboxvideo_drv_19_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
249vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_17_SOURCES)
250
251
252#
253# vboxvideo_drv_110
254#
255DLLS += vboxvideo_drv_110
256vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
257vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
258vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11000000
259vboxvideo_drv_110_INCS = \
260 $(vboxvideo_xorg_INCS) \
261 $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0
262vboxvideo_drv_110_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
263vboxvideo_drv_110_SOURCES := $(vboxvideo_drv_17_SOURCES)
264
265
266#
267# vboxvideo_drv_111
268#
269DLLS += vboxvideo_drv_111
270vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
271vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
272vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11100000
273vboxvideo_drv_111_INCS = \
274 $(vboxvideo_xorg_INCS) \
275 $(VBOX_PATH_X11_ROOT)/xorg-server-1.11.0
276vboxvideo_drv_111_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
277vboxvideo_drv_111_SOURCES := $(vboxvideo_drv_17_SOURCES)
278
279
280#
281# vboxvideo_drv_112
282#
283DLLS += vboxvideo_drv_112
284vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
285vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
286vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11200000
287vboxvideo_drv_112_INCS = \
288 $(vboxvideo_xorg_INCS) \
289 $(VBOX_PATH_X11_ROOT)/xorg-server-1.12.0
290vboxvideo_drv_112_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
291vboxvideo_drv_112_SOURCES := $(vboxvideo_drv_17_SOURCES)
292
293
294#
295# vboxvideo_drv_113
296#
297DLLS += vboxvideo_drv_113
298vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
299vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
300vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11300000
301vboxvideo_drv_113_INCS = \
302 $(vboxvideo_xorg_INCS) \
303 $(VBOX_PATH_X11_ROOT)/xorg-server-1.13.0
304vboxvideo_drv_113_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
305vboxvideo_drv_113_SOURCES := $(vboxvideo_drv_17_SOURCES)
306
307
308#
309# vboxvideo_drv_114
310#
311DLLS += vboxvideo_drv_114
312vboxvideo_drv_114_TEMPLATE = VBOXGUESTR3XORGMOD
313vboxvideo_drv_114_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
314vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11400000
315vboxvideo_drv_114_INCS = \
316 $(vboxvideo_xorg_INCS) \
317 $(VBOX_PATH_X11_ROOT)/xorg-server-1.14.0
318vboxvideo_drv_114_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
319vboxvideo_drv_114_SOURCES := $(vboxvideo_drv_17_SOURCES)
320
321
322#
323# vboxvideo_drv_115
324#
325DLLS += vboxvideo_drv_115
326vboxvideo_drv_115_TEMPLATE = VBOXGUESTR3XORGMOD
327vboxvideo_drv_115_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
328vboxvideo_drv_115_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11500000
329vboxvideo_drv_115_INCS = \
330 $(vboxvideo_xorg_INCS) \
331 $(VBOX_PATH_X11_ROOT)/xorg-server-1.15.0
332vboxvideo_drv_115_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
333vboxvideo_drv_115_SOURCES := $(vboxvideo_drv_17_SOURCES)
334
335
336#
337# vboxvideo_drv_116
338#
339DLLS += vboxvideo_drv_116
340vboxvideo_drv_116_TEMPLATE = VBOXGUESTR3XORGMOD
341vboxvideo_drv_116_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
342vboxvideo_drv_116_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11600000
343vboxvideo_drv_116_INCS = \
344 $(vboxvideo_xorg_INCS) \
345 $(VBOX_PATH_X11_ROOT)/xorg-server-1.16.0
346vboxvideo_drv_116_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
347vboxvideo_drv_116_SOURCES := $(vboxvideo_drv_17_SOURCES)
348
349
350#
351# vboxvideo_drv_117
352#
353DLLS += vboxvideo_drv_117
354vboxvideo_drv_117_TEMPLATE = VBOXGUESTR3XORGMOD
355vboxvideo_drv_117_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
356vboxvideo_drv_117_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11700000
357vboxvideo_drv_117_INCS = \
358 $(vboxvideo_xorg_INCS) \
359 $(VBOX_PATH_X11_ROOT)/xorg-server-1.17.1
360vboxvideo_drv_117_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
361vboxvideo_drv_117_SOURCES := $(vboxvideo_drv_17_SOURCES)
362
363
364#
365# vboxvideo_drv_118
366#
367DLLS += vboxvideo_drv_118
368vboxvideo_drv_118_TEMPLATE = VBOXGUESTR3XORGMOD
369vboxvideo_drv_118_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
370vboxvideo_drv_118_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11800000
371vboxvideo_drv_118_INCS = \
372 $(vboxvideo_xorg_INCS) \
373 $(VBOX_PATH_X11_ROOT)/xorg-server-1.18.0
374vboxvideo_drv_118_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
375vboxvideo_drv_118_SOURCES := $(vboxvideo_drv_17_SOURCES)
376
377ifdef VBOX_USE_SYSTEM_XORG_HEADERS
378 # Build using local X.Org headers. We assume X.Org Server 1.7 or later.
379 DLLS := $(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system
380 SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS))
381 vboxvideo_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD
382 vboxvideo_drv_system_CFLAGS := \
383 $(vboxvideo_drv_70_CFLAGS) -include xorg-server.h
384 vboxvideo_drv_system_DEFS := $(filter-out _XORG_SERVER_H_ _DIX_CONFIG_H_, $(vboxvideo_15_DEFS))
385 vboxvideo_drv_system_INCS += \
386 $(PATH_ROOT)/src/VBox/Runtime/include \
387 /usr/include/x11 \
388 /usr/include/xorg \
389 /usr/include/pixman-1
390 vboxvideo_drv_system_SOURCES := $(vboxvideo_drv_17_SOURCES)
391endif
392
393
394# Check the undefined symbols in the X.Org modules against lists of allowed
395# symbols. Not very elegant, but it will catch problems early.
396
397ifdef VBOX_WITH_TESTCASES
398# ifndef VBOX_ONLY_ADDITIONS
399 ifndef VBOX_USE_SYSTEM_XORG_HEADERS
400 if1of ($(KBUILD_TARGET),linux solaris)
401 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
402 ifndef VBOX_ONLY_SDK
403 VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
404
405 ifeq ($(KBUILD_TARGET),linux)
406 TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
407 OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
408$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
409 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
410 $(QUIET)$(ASH) $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
411 $(vboxvideo_drv_1_STAGE_TARGET) --static $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules
412 $(QUIET)$(APPEND) -t "$@" "done"
413 endif
414
415##
416# Using the extra expansion to replace $(ver) before eval, thus everything
417# else needs escaped dollars.
418 define def_vboxvideo_test
419 TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
420 OTHERS += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
421 $$$$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
422 $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
423 $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST) \
424 $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules $$(VBOXVIDEO_SRC_PATH)/../undefined_xorg
425 $$(QUIET)$$(APPEND) -t "$$@" "done"
426 endef
427
428 $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113 _114 _115 _116 _117 _118, $(eval $(def_vboxvideo_test)))
429
430 endif # ! VBOX_ONLY_SDK
431 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
432 endif # 1of ($(KBUILD_TARGET),linux solaris)
433 endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
434# endif # ! VBOX_ONLY_ADDITIONS
435endif # VBOX_WITH_TESTCASES
436
437include $(FILE_KBUILD_SUB_FOOTER)
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