VirtualBox

Ignore:
Timestamp:
Oct 9, 2012 9:15:37 PM (12 years ago)
Author:
vboxsync
Message:

Additions/x11: add option to build X.Org drivers against system headers only (build with VBOX_USE_SYSTEM_XORG_HEADERS=1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r43284 r43588  
    2222# Include sub-makefile(s).
    2323#
    24 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
     24ifndef VBOX_USE_SYSTEM_XORG_HEADERS
     25 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
     26endif
    2527
    2628vboxvideo_70_DEFS := \
     
    321323
    322324
     325ifdef VBOX_USE_SYSTEM_XORG_HEADERS
     326 # Build using local X.Org headers.  We assume X.Org Server 1.7 or later.
     327 DLLS    := $(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system
     328 SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS))
     329 vboxvideo_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD
     330 vboxvideo_drv_system_CFLAGS := \
     331        $(vboxvideo_drv_70_CFLAGS) -include xorg-server.h
     332 vboxvideo_drv_system_DEFS := $(vboxvideo_15_DEFS)
     333 vboxvideo_drv_system_INCS += \
     334        $(PATH_ROOT)/src/VBox/Runtime/include \
     335        /usr/include/x11 \
     336        /usr/include/X11/dri \
     337        /usr/include/libdrm \
     338        /usr/include/xorg \
     339        /usr/include/pixman-1
     340 vboxvideo_drv_system_SOURCES := $(vboxvideo_drv_15_SOURCES)
     341endif
     342
     343
    323344# Check the undefined symbols in the X.Org modules against lists of allowed
    324345# symbols.  Not very elegant, but it will catch problems early.
    325346ifdef VBOX_WITH_TESTCASES
    326347# ifndef VBOX_ONLY_ADDITIONS
     348 ifndef VBOX_USE_SYSTEM_XORG_HEADERS
    327349  if1of ($(KBUILD_TARGET),linux solaris)
    328350   ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
     
    447469   endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
    448470  endif # eq ($(KBUILD_TARGET),linux)
     471 endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
    449472# endif # ! VBOX_ONLY_ADDITIONS
    450473endif # VBOX_WITH_TESTCASES
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette