VirtualBox

Changeset 6639 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jan 31, 2008 7:25:14 AM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: Merge graphics driver and build other drivers on solaris.

Location:
trunk/src/VBox/Additions/x11/xgraphics
Files:
2 edited

Legend:

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

    r6623 r6639  
    2020
    2121if1of ($(BUILD_TARGET),linux l4)
     22## @todo figure out vboxvideo_drv on solaris (seems to be a kernel module)
    2223SYSMODS  = vboxvideo_drv
    23 DLLS     = vboxvideo_drv_70 vboxvideo_drv_71 vboxvideo_drv_13 vboxvideo_drv_14
    24 
    2524# for BUILD_TARGET=l4
    2625SUFF_DLL = .so
    27 
     26endif
     27DLLS     = vboxvideo_drv_70 vboxvideo_drv_71 vboxvideo_drv_13 vboxvideo_drv_14
     28
     29#
     30# vboxvideo_drv
     31#
     32if1of ($(BUILD_TARGET),linux l4)
    2833vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
    2934vboxvideo_drv_SYSSUFF = .o
     
    104109vboxvideo_drv_LIBS = \
    105110        $(VBOX_LIB_VBGL_R3_XFREE86)
    106 
    107 vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     111endif   # target linux, l4
     112
     113
     114#
     115# vboxvideo_drv_70
     116#
     117if1of ($(BUILD_TARGET),linux l4)
     118 vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     119 vboxvideo_drv_70_CFLAGS.linux := \
     120        -Wno-conversion -Wno-unused-parameter \
     121        $(VBOX_GCC_Wno-variadic-macros) -std=c99
     122 vboxvideo_drv_70_LDFLAGS = -s
     123else
     124 vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3DLL
     125 vboxvideo_drv_70_CFLAGS   = -std=c99
     126endif
     127## @todo PIC should be defined in the template on linux
    108128vboxvideo_drv_70_DEFS := \
    109129        XFree86Server IN_MODULE XFree86Module XFree86LOADER \
    110130        IN_RING3 VBOX XORG_7X PIC RENDER=1
    111 vboxvideo_drv_70_CFLAGS.linux := \
    112         -Wno-conversion -Wno-unused-parameter \
    113         $(VBOX_GCC_Wno-variadic-macros) -std=c99
    114 vboxvideo_drv_70_LDFLAGS = -s
     131vboxvideo_drv_70_DEFS.solaris = _XPG6
    115132vboxvideo_drv_70_INCS = \
    116133        $(VBOX_PATH_X11_XORG_7_0) \
     
    125142        $(VBOX_LIB_VBGL_R3_SHARED)
    126143
    127 vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     144
     145#
     146# vboxvideo_drv_71
     147#
     148if1of ($(BUILD_TARGET),linux l4)
     149 vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     150 vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
     151 vboxvideo_drv_71_LDFLAGS = -s
     152else
     153 vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3DLL
     154 vboxvideo_drv_71_CFLAGS   = $(vboxvideo_drv_70_CFLAGS)
     155endif
    128156vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
    129 vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    130 vboxvideo_drv_71_LDFLAGS = -s
     157vboxvideo_drv_71_DEFS.solaris = $(vboxvideo_drv_70_DEFS.solaris)
    131158vboxvideo_drv_71_INCS = \
    132159        $(VBOX_PATH_X11_XORG_7_1) \
     
    141168        $(VBOX_LIB_VBGL_R3_SHARED)
    142169
    143 vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     170
     171#
     172# vboxvideo_drv_13
     173#
     174if1of ($(BUILD_TARGET),linux l4)
     175 vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     176 vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
     177 vboxvideo_drv_13_LDFLAGS = -s
     178else
     179 vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3DLL
     180 vboxvideo_drv_13_CFLAGS   = $(vboxvideo_drv_70_CFLAGS)
     181endif
    144182vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
    145 vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    146 vboxvideo_drv_13_LDFLAGS = -s
     183vboxvideo_drv_13_DEFS.solaris = $(vboxvideo_drv_70_DEFS.solaris)
    147184vboxvideo_drv_13_INCS = \
    148185        $(VBOX_PATH_X11_XORG_1_3) \
     
    157194        $(VBOX_LIB_VBGL_R3_SHARED)
    158195
    159 vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     196
     197#
     198# vboxvideo_drv_14
     199#
     200if1of ($(BUILD_TARGET),linux l4)
     201 vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
     202 vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
     203 vboxvideo_drv_14_LDFLAGS = -s
     204else
     205 vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3DLL
     206 vboxvideo_drv_14_CFLAGS   = $(vboxvideo_drv_70_CFLAGS)
     207endif
    160208vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
    161 vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    162 vboxvideo_drv_14_LDFLAGS = -s
     209vboxvideo_drv_14_DEFS.solaris = $(vboxvideo_drv_70_DEFS.solaris)
    163210vboxvideo_drv_14_INCS = \
    164211        $(VBOX_PATH_X11_XORG_1_4) \
     
    174221        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    175222        $(VBOX_LIB_VBGL_R3_SHARED)
    176 endif
    177 
    178 ifeq ($(BUILD_TARGET),solaris)
    179 DLLS     = vboxvideo_drv
    180 
    181 vboxvideo_drv_TEMPLATE = VBOXGUESTR3DLL
    182 vboxvideo_drv_DEFS := \
    183         XFree86Server XFree86Module XFree86LOADER IN_MODULE XORG_7X RENDER=1
    184 vboxvideo_drv_INCS = \
    185         $(VBOX_PATH_X11_XORG_7_1) \
    186         $(VBOX_PATH_X11_XORG_7_1)/X11 \
    187         $(VBOX_PATH_X11_XORG_7_1)/xorg
    188 vboxvideo_drv_SOURCES  = \
    189         vboxvideo_70.c \
    190         vboxutils-new.c
    191 vboxvideo_drv_LIBS = \
    192         $(VBOX_LIB_VBGL_R3_SHARED) \
    193         $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    194         $(VBOX_LIB_VBGL_R3_SHARED)
    195 endif
     223
    196224
    197225include $(PATH_KBUILD)/footer.kmk
  • trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_13.c

    r6589 r6639  
    173173    if (!pScrn->driverPrivate) {
    174174        pScrn->driverPrivate = xcalloc(sizeof(VBOXRec), 1);
     175#ifndef RT_OS_SOLARIS
    175176        ((VBOXPtr)pScrn->driverPrivate)->vbox_fd = -1;
     177#endif
    176178    }
    177179
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