VirtualBox

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

Last change on this file since 69078 was 69078, checked in by vboxsync, 7 years ago

Additions/x11/vboxvideo: Remove helpers.c and adjust places depending on it.
bugref:9017: Additions/x11: put vboxvideo into upstream X.Org

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