VirtualBox

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

Last change on this file since 68664 was 67145, checked in by vboxsync, 8 years ago

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Rename HGSMIBufferAlloc.cpp to HGSMIBuffers.cpp and move VBoxHGSMIBufferSubmit() there.

  • 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 67145 2017-05-30 15:11:29Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
4#
5
6#
7# Copyright (C) 2006-2016 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)/inputproto-1.9.99.902 \
32 $(VBOX_PATH_X11_ROOT)/kbproto-1.0.6 \
33 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
34 $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \
35 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
36 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
37 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
38 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
39 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
40 $(VBOX_GRAPHICS_INCS)
41
42vboxvideo.c_DEPS = $(VBOX_SVN_REV_HEADER)
43
44#
45# vboxvideo_drv
46#
47if1of ($(KBUILD_TARGET), linux)
48 SYSMODS += vboxvideo_drv
49endif # target linux
50vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
51vboxvideo_drv_CFLAGS += -Wno-shadow # Avoid MBs of warnings in X11 and OpenGL headers (solaris mostly).
52vboxvideo_drv_DEFS.linux = linux
53vboxvideo_drv_DEFS.x86 = __i386__
54# This one has to be defined when building server code on systems where
55# unsigned long is 64bits
56vboxvideo_drv_DEFS.amd64 += _XSERVER64
57vboxvideo_drv_DEFS = \
58 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE _DEFAULT_SOURCE \
59 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
60 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
61 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
62 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
63 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
64 IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
65vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
66vboxvideo_drv_INCS = \
67 $(VBOX_PATH_X11_XFREE_4_3)/include \
68 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
69 $(VBOX_PATH_X11_XFREE_4_3)/include/X11/extensions \
70 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
71 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
72 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
73 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
74 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
75 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
76 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
77 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
78 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
79 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
80 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
81 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
82 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
83 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
84 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
85 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
86 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
87 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
88 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
89 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
90 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
91 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
92 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
93 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
94 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/randr \
95 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
96vboxvideo_drv_INCS += \
97 $(PATH_ROOT)/src/VBox/Runtime/include \
98 $(VBOX_GRAPHICS_INCS)
99vboxvideo_drv_SOURCES = \
100 getmode.c \
101 helpers.c \
102 pointer.c \
103 setmode.c \
104 vboxvideo.c \
105 vbva.c \
106 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
107 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \
108 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
109 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
110 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
111 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMIMemAlloc.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 $(VBOX_GRAPHICS_INCS) \
388 /usr/include/x11 \
389 /usr/include/xorg \
390 /usr/include/pixman-1
391 vboxvideo_drv_system_SOURCES := $(vboxvideo_drv_17_SOURCES)
392endif
393
394
395# Check the undefined symbols in the X.Org modules against lists of allowed
396# symbols. Not very elegant, but it will catch problems early.
397
398ifdef VBOX_WITH_TESTCASES
399# ifndef VBOX_ONLY_ADDITIONS
400 ifndef VBOX_USE_SYSTEM_XORG_HEADERS
401 if1of ($(KBUILD_TARGET),linux solaris)
402 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
403 ifndef VBOX_ONLY_SDK
404 VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
405
406 ifeq ($(KBUILD_TARGET),linux)
407 TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
408 OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
409$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
410 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
411 $(QUIET)$(ASH) $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
412 $(vboxvideo_drv_1_STAGE_TARGET) --static $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules
413 $(QUIET)$(APPEND) -t "$@" "done"
414 endif
415
416##
417# Using the extra expansion to replace $(ver) before eval, thus everything
418# else needs escaped dollars.
419 define def_vboxvideo_test
420 TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
421 OTHERS += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
422 $$$$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
423 $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
424 $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST) \
425 $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules $$(VBOXVIDEO_SRC_PATH)/../undefined_xorg
426 $$(QUIET)$$(APPEND) -t "$$@" "done"
427 endef
428
429 $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113 _114 _115 _116 _117 _118, $(eval $(def_vboxvideo_test)))
430
431 endif # ! VBOX_ONLY_SDK
432 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
433 endif # 1of ($(KBUILD_TARGET),linux solaris)
434 endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
435# endif # ! VBOX_ONLY_ADDITIONS
436endif # VBOX_WITH_TESTCASES
437
438include $(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