Changeset 17472 in vbox
- Timestamp:
- Mar 6, 2009 2:03:46 PM (16 years ago)
- 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 31 31 DLLS += VBoxOGL VBoxOGLarrayspu VBoxOGLpassthroughspu VBoxOGLpackspu VBoxOGLfeedbackspu 32 32 33 ifeq ($(KBUILD_TARGET),linux) 34 VBoxOGL_DRI = 1 35 VBOX_PATH_MESA_SOURCE = /usr/share/mesa-source 36 endif 37 33 38 # 34 39 # VBoxOGL … … 36 41 VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL 37 42 VBoxOGL_INCS = . 43 ifdef 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 52 endif 38 53 ifeq ($(KBUILD_TARGET),win) 39 54 #fixme?, INTERMEDIATES.win ain't working 40 55 VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h 56 endif 57 ifdef VBoxOGL_DRI 58 VBoxOGL_INTERMEDIATES += \ 59 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \ 60 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h 41 61 endif 42 62 VBoxOGL_SOURCES = \ … … 51 71 xfont.c \ 52 72 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm 73 ifdef VBoxOGL_DRI 74 VBoxOGL_SOURCES.linux += \ 75 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \ 76 dri_drv.c 77 endif 53 78 VBoxOGL_SOURCES.win = \ 54 79 wgl.c \ … … 66 91 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \ 67 92 $(VBOX_PATH_CROGL_GENFILES)/cropengl.def 93 ifdef VBoxOGL_DRI 94 VBoxOGL_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 98 endif 68 99 VBoxOGL_LIBS = \ 69 100 $(VBOX_LIB_IPRT_GUEST_R3) \ … … 97 128 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) 98 129 else ifeq ($(KBUILD_TARGET),linux) 130 ifndef VBoxOGL_DRI 99 131 $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@) 100 132 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) … … 104 136 | $$(dir $$@) 105 137 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) 138 else 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) 152 endif 106 153 endif 107 154 -
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/cr_gl.py
r15532 r17472 5 5 6 6 /* 7 * Copyright (C) 200 6-2007Sun Microsystems, Inc.7 * Copyright (C) 2008 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as
Note:
See TracChangeset
for help on using the changeset viewer.