Ticket #16052: VirtualBox-5.0.18-xserver_guest.patch
| File VirtualBox-5.0.18-xserver_guest.patch, 4.7 KB (added by , 8 years ago) |
|---|
-
./Config.kmk
Copyright (c) 2016 Sérgio Basto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The MIT License is to allow be in included in VirtualBox source code. Using also VBOX_USE_SYSTEM_XORG_HEADERS to build guest additions parts, just compile with X11 system source and we may remove all bundle X11 source code. when we use VBOX_USE_SYSTEM_XORG_HEADERS, we don't need compile the very old VBoxGuestR3LibXFree86 for use with old servers where the C library is not available and becasue fail to build when we unbundle all X11 sources, files like xf86_ansic.h doesn't exist anymore.
old new ifdef VBOX_WITH_CROGL 2362 2362 endif 2363 2363 2364 2364 if1of ($(KBUILD_TARGET), freebsd linux solaris) 2365 ifndef VBOX_USE_SYSTEM_XORG_HEADERS 2365 2366 # VBOX_PATH_MESA_SOURCE = $(PATH_ROOT)/src/libs/mesa-7.2 2366 2367 VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2 2367 2368 VBOX_MESA_INCS = \ … … ifdef VBOX_WITH_CROGL 2372 2373 $(VBOX_PATH_MESA_SOURCE)/src/mesa/main \ 2373 2374 $(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common 2374 2375 endif 2376 endif 2375 2377 2376 2378 VBOX_DARWIN_OPENGL_INST = obj/VBoxOGL/GL/ 2377 2379 VBOX_DARWIN_OPENGL_HEADERS = gl.h glu.h -
./src/VBox/Additions/common/crOpenGL/Makefile.kmk
old new endif 67 67 VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL 68 68 VBoxOGL_INCS = . 69 69 if1of ($(KBUILD_TARGET), linux solaris freebsd) 70 ifdef VBOX_USE_SYSTEM_XORG_HEADERS 71 VBoxOGL_INCS += \ 72 /usr/include/x11 \ 73 /usr/include/xorg \ 74 /usr/include/pixman-1 \ 75 $(VBOX_MESA_INCS) \ 76 /usr/include/drm \ 77 /usr/include/libdrm 78 else 70 79 VBoxOGL_INCS += \ 71 80 $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \ 72 81 $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \ … … if1of ($(KBUILD_TARGET), linux solaris f 81 90 $(VBOX_MESA_INCS) \ 82 91 $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.13 83 92 VBoxOGL_DEFS += VBOX_NO_NATIVEGL 93 endif 84 94 endif 85 95 86 96 ifdef VBoxOGL_DRI … … VBoxOGL_LIBS.win += \ 213 223 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB) 214 224 215 225 if1of ($(KBUILD_TARGET), linux solaris freebsd) 216 VBoxOGL_LIBS += \ 226 ifdef VBOX_USE_SYSTEM_XORG_HEADERS 227 VBoxOGL_LIBS += \ 228 Xcomposite \ 229 Xdamage \ 230 Xfixes \ 231 Xext 232 else 233 VBoxOGL_LIBS += \ 217 234 $(PATH_STAGE_LIB)/libXcomposite.so \ 218 235 $(PATH_STAGE_LIB)/libXdamage.so \ 219 236 $(PATH_STAGE_LIB)/libXfixes.so \ 220 237 $(PATH_STAGE_LIB)/libXext.so 238 endif 221 239 ifdef VBoxOGL_FAKEDRI 222 240 ifeq ($(KBUILD_TARGET), freebsd) 223 241 VBoxOGL_LIBS += \ -
./src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk
old new LIBRARIES += \ 40 40 VBoxGuestR3LibShared 41 41 ifndef VBOX_ONLY_VALIDATIONKIT 42 42 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd) 43 ifndef VBOX_USE_SYSTEM_XORG_HEADERS 43 44 LIBRARIES += \ 44 45 VBoxGuestR3LibXFree86 45 46 endif 47 endif 46 48 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) 47 49 LIBRARIES += \ 48 50 VBoxGuestR3LibXOrg -
./src/VBox/Additions/x11/vboxvideo/Makefile.kmk
old new vboxvideo_drv_118_SOURCES := $(vboxvideo 376 376 377 377 ifdef VBOX_USE_SYSTEM_XORG_HEADERS 378 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_system379 DLLS := $(filter-out vboxvideo_drv_%,$(DLLS)) 380 380 SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS)) 381 381 vboxvideo_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD 382 382 vboxvideo_drv_system_CFLAGS := \

