Changeset 18542 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Mar 30, 2009 1:04:33 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk
r18175 r18542 51 51 VBoxOGL_FAKEDRI = 1 52 52 VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2 53 endif 53 54 # Only Solaris right now needs C stubs because I can't figure out how to 55 # generate the GOT based relocation ASM yet. 56 ifeq ($(KBUILD_TARGET),solaris) 57 ifdef VBoxOGL_FAKEDRI 58 VBOX_OGL_GLX_USE_CSTUBS = 1 59 endif 60 endif 61 endif 62 54 63 55 64 # … … 81 90 else ifdef VBoxOGL_FAKEDRI 82 91 VBoxOGL_DEFS += VBOXOGL_FAKEDRI 92 VBoxOGL_DEFS.solaris += VBOX_OGL_GLX_USE_CSTUBS 83 93 endif 84 94 ifeq ($(KBUILD_TARGET),win) … … 106 116 glx.c \ 107 117 xfont.c 118 ifdef VBOX_OGL_GLX_USE_CSTUBS 119 VBoxOGL_SOURCES += glx_c_exports.c 120 endif 108 121 109 122 ifdef VBoxOGL_DRI … … 121 134 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \ 122 135 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm 123 VBoxOGL_SOURCES.solaris += \ 136 ifndef VBOX_OGL_GLX_USE_CSTUBS 137 VBoxOGL_SOURCES.solaris += \ 124 138 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm \ 125 139 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm 140 else 141 VBoxOGL_SOURCES.solaris += \ 142 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c 143 endif 126 144 else 127 145 VBoxOGL_SOURCES.linux += \ 128 146 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm 129 147 VBoxOGL_SOURCES.solaris += \ 130 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports. asm148 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c 131 149 endif 132 150 endif … … 145 163 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm 146 164 VBoxOGL_CLEAN.solaris += \ 147 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports. asm165 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c 148 166 VBoxOGL_CLEAN.win = \ 149 167 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \ … … 203 221 if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI) 204 222 ifeq ($(KBUILD_TARGET),solaris) 205 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports. asm: \206 $(PATH_SUB_CURRENT)/SunOS_ i386_exports.py \223 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \ 224 $(PATH_SUB_CURRENT)/SunOS_exports.py \ 207 225 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \ 208 226 | $$(dir $$@) … … 238 256 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@) 239 257 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) 240 ifeq ($(KBUILD_TARGET),solaris) 258 ifndef VBOX_OGL_GLX_USE_CSTUBS 259 ifeq ($(KBUILD_TARGET),solaris) 241 260 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \ 242 261 $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \ … … 246 265 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm: $(PATH_SUB_CURRENT)/SunOS_i386_glxapi_exports.py | $$(dir $$@) 247 266 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< 248 else267 else 249 268 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \ 250 269 $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \ … … 254 273 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm: $(PATH_SUB_CURRENT)/Linux_i386_glxapi_exports.py | $$(dir $$@) 255 274 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< 256 endif 275 endif 276 else 277 # @todo linux if required 278 ifeq ($(KBUILD_TARGET),solaris) 279 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \ 280 $(PATH_SUB_CURRENT)/SunOS_exports.py \ 281 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \ 282 | $$(dir $$@) 283 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) 284 endif 285 endif # VBOX_OGL_GLX_USE_CSTUBS 257 286 endif 258 287 endif
Note:
See TracChangeset
for help on using the changeset viewer.