VirtualBox

Changeset 17472 in vbox


Ignore:
Timestamp:
Mar 6, 2009 2:03:46 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: more dri related drafts

Location:
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/Makefile.kmk

    r17466 r17472  
    3131DLLS += VBoxOGL VBoxOGLarrayspu VBoxOGLpassthroughspu VBoxOGLpackspu VBoxOGLfeedbackspu
    3232
     33ifeq ($(KBUILD_TARGET),linux)
     34 VBoxOGL_DRI = 1
     35 VBOX_PATH_MESA_SOURCE = /usr/share/mesa-source
     36endif
     37
    3338#
    3439# VBoxOGL
     
    3641VBoxOGL_TEMPLATE       = VBOXCROGLR3GUESTDLL
    3742VBoxOGL_INCS           = .
     43ifdef VBoxOGL_DRI
     44 VBoxOGL_DEFS          += VBOXOGL_DRI IN_DRI_DRIVER
     45 VBoxOGL_INCS          += \
     46    $(VBOX_PATH_MESA_SOURCE) \
     47    $(VBOX_PATH_MESA_SOURCE)/include \
     48    $(VBOX_PATH_MESA_SOURCE)/src/mesa/ \
     49    $(VBOX_PATH_MESA_SOURCE)/src/mesa/glapi \
     50    $(VBOX_PATH_MESA_SOURCE)/src/mesa/main \
     51    $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.5
     52endif
    3853ifeq ($(KBUILD_TARGET),win)
    3954#fixme?, INTERMEDIATES.win ain't working
    4055 VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
     56endif
     57ifdef VBoxOGL_DRI
     58 VBoxOGL_INTERMEDIATES += \
     59    $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
     60    $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h
    4161endif
    4262VBoxOGL_SOURCES        = \
     
    5171        xfont.c \
    5272        $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
     73ifdef VBoxOGL_DRI
     74 VBoxOGL_SOURCES.linux += \
     75        $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
     76        dri_drv.c
     77endif
    5378VBoxOGL_SOURCES.win    = \
    5479        wgl.c \
     
    6691        $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
    6792        $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
     93ifdef VBoxOGL_DRI
     94VBoxOGL_CLEAN.linux   += \
     95    $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
     96    $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
     97    $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
     98endif
    6899VBoxOGL_LIBS = \
    69100        $(VBOX_LIB_IPRT_GUEST_R3) \
     
    97128        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
    98129else ifeq ($(KBUILD_TARGET),linux)
     130ifndef VBoxOGL_DRI
    99131$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
    100132        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     
    104136                | $$(dir $$@)
    105137        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     138else
     139$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress_dri.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
     140        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     141$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
     142        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     143  $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h: $(PATH_SUB_CURRENT)/DD_glh.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
     144        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     145  $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c: $(PATH_SUB_CURRENT)/DD_glc.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
     146        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     147  $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm: \
     148                $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
     149                $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
     150                | $$(dir $$@)
     151        $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
     152endif
    106153endif
    107154
  • trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/cr_gl.py

    r15532 r17472  
    55
    66/*
    7  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     7 * Copyright (C) 2008 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
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