VirtualBox

Changeset 18160 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 6:04:28 PM (16 years ago)
Author:
vboxsync
Message:

common/crOpenGL: solaris bits VBoxOGL.so. DRI yet todo, has some linking issues.

Location:
trunk/src/VBox/Additions/common
Files:
3 edited

Legend:

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

    r17723 r18160  
    3333endif
    3434ifdef VBOX_WITH_CROGL
    35  include $(PATH_SUB_CURRENT)/crOpenGL/Makefile.kmk
     35  include $(PATH_SUB_CURRENT)/crOpenGL/Makefile.kmk
    3636endif
    3737
  • trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk

    r18146 r18160  
    3737
    3838ifndef VBOX_OSE  ## @todo Solaris too?
    39 DLLS.linux += \
     39DLLS += \
    4040    VBoxOGL \
    4141    VBoxOGLarrayspu \
     
    4545endif
    4646
    47 ifeq ($(KBUILD_TARGET),linux)
     47if1of ($(KBUILD_TARGET),linux solaris)
    4848 #VBoxOGL_DRI = 1
    49  VBoxOGL_FAKEDRI = 1
     49 ifneq ($(KBUILD_TARGET),solaris)       # temporary
     50  VBoxOGL_FAKEDRI = 1
     51 endif
    5052 VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2
    5153endif
     
    5658VBoxOGL_TEMPLATE       = VBOXCROGLR3GUESTDLL
    5759VBoxOGL_INCS           = .
    58 VBoxOGL_INCS.linux     = \
     60if1of ($(KBUILD_TARGET),linux solaris)
     61 VBoxOGL_INCS     += \
    5962        $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \
    6063        $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \
     
    7275        $(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common \
    7376        $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.5
    74 VBoxOGL_DEFS.linux     += VBOX_NO_NATIVEGL
     77 VBoxOGL_DEFS     += VBOX_NO_NATIVEGL
     78endif
    7579ifdef VBoxOGL_DRI
    7680 VBoxOGL_DEFS          += VBOXOGL_DRI IN_DRI_DRIVER
     
    9094        $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
    9195endif
    92 VBoxOGL_SOURCES        = \
     96VBoxOGL_SOURCES       += \
    9397        load.c \
    9498        stub.c \
     
    97101        $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
    98102        $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
    99 VBoxOGL_SOURCES.linux  = \
     103
     104if1of ($(KBUILD_TARGET),linux solaris)
     105 VBoxOGL_SOURCES += \
    100106        glx.c \
    101107        xfont.c
    102 ifdef VBoxOGL_DRI
    103  VBoxOGL_SOURCES.linux += \
     108 ifdef VBoxOGL_DRI
     109  VBoxOGL_SOURCES += \
    104110        $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
    105111        $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm \
    106112        dri_drv.c
    107 else ifdef VBoxOGL_FAKEDRI
    108  VBoxOGL_SOURCES.linux += \
     113 else ifdef VBoxOGL_FAKEDRI
     114  VBoxOGL_SOURCES += \
    109115        $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \
    110116        $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm \
    111117        fakedri_drv.c
    112 else
     118 else
     119  VBoxOGL_SOURCES.solaris += \
     120        $(VBOX_PATH_CROGL_GENFILES)/sunos_exports.c
    113121 VBoxOGL_SOURCES.linux += \
    114122        $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
    115 endif
     123 endif
     124endif
     125
    116126VBoxOGL_SOURCES.win    = \
    117127        wgl.c \
     
    124134        $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
    125135        $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
    126 VBoxOGL_CLEAN.linux    = \
     136if1of ($(KBUILD_TARGET),linux solaris)
     137 VBoxOGL_CLEAN           += \
    127138        $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
     139endif
    128140VBoxOGL_CLEAN.win      = \
    129141        $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
    130142        $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
    131 ifdef VBoxOGL_DRI
    132  VBoxOGL_CLEAN.linux   += \
     143if1of ($(KBUILD_TARGET),linux solaris)
     144 ifdef VBoxOGL_DRI
     145  VBoxOGL_CLEAN   += \
    133146        $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
    134147        $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
    135148        $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
    136 else ifdef VBoxOGL_FAKEDRI
    137  VBoxOGL_CLEAN.linux   += \
     149 else ifdef VBoxOGL_FAKEDRI
     150  VBoxOGL_CLEAN   += \
    138151        $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
    139152        $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm
     153 endif
    140154endif
    141155VBoxOGL_LIBS = \
     
    173187                | $$(dir $$@)
    174188        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
    175 else ifeq ($(KBUILD_TARGET),linux)
     189else if1of ($(KBUILD_TARGET),linux solaris)
    176190$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
    177191        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
    178192if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI)
     193 ifeq ($(KBUILD_TARGET),solaris)
     194$(VBOX_PATH_CROGL_GENFILES)/sunos_exports.c: \
     195                $(PATH_SUB_CURRENT)/SunOS_exports.py \
     196                $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
     197                | $$(dir $$@)
     198        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     199 else
    179200$(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm: \
    180201                $(PATH_SUB_CURRENT)/Linux_i386_exports.py \
     
    182203                | $$(dir $$@)
    183204        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     205 endif
    184206else ifdef VBoxOGL_DRI
    185207$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
  • trunk/src/VBox/Additions/common/crOpenGL/SunOS_exports.py

    r15532 r18160  
    66import entrypoints
    77
    8 hacks = ["TexImage3D"]
     8hacks = []
    99
    1010entrypoints.GenerateEntrypoints(hacks)
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