Changeset 16276 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jan 27, 2009 9:15:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r16265 r16276 20 20 # 21 21 22 23 22 SUB_DEPTH = ../../../.. 24 25 23 include $(KBUILD_PATH)/subheader.kmk 26 24 27 if1of ($(KBUILD_HOST), win) 25 26 # 27 # Target lists. 28 # 29 DLLS += VBoxSharedCrOpenGL VBoxOGLrenderspu 30 LIBRARIES += VBoxOGLcrserverlib VBoxOGLcrunpacker 31 BLDDIRS += \ 32 $(VBOX_PATH_CROGL_GENFILES)/ 33 34 35 # 36 # Globals 37 # 38 if1of ($(KBUILD_HOST), os2 win) 28 39 VBOX_CROGL_HOST_PYTHONPATH := $(VBOX_PATH_CROGL_GLAPI);$(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer;$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib 29 40 else … … 31 42 endif 32 43 33 VBOX_OPENGL_HEADERS = gl.h glu.h 34 VBOX_PATH_MACOSX_OPENGL = $(PATH_OBJ)/VBoxOGL/GL 35 36 DLLS += VBoxSharedCrOpenGL 37 DLLS += VBoxOGLrenderspu 38 LIBRARIES += VBoxOGLcrserverlib 39 LIBRARIES += VBoxOGLcrunpacker 40 41 # We have to symlink the system headers of OpenGl cause they have some 42 # different directory hierarchy on Mac OS X (no /GL sub directory). 43 $(addprefix $(VBOX_PATH_MACOSX_OPENGL)/,$(VBOX_OPENGL_HEADERS)): \ 44 $(VBOX_PATH_MACOSX_OPENGL)/%: $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/% | $$(dir $$@) 45 $(LN) -s $< $@ 46 47 ## VBOXOGLR3HOST ## 44 45 # 46 # The VBOXOGLR3HOST template. 47 # 48 ## @todo r=bird: Most of the keywords are overridden here... check each and why. 48 49 TEMPLATE_VBOXOGLR3HOST = VBox OpenGL Host Libraries 49 50 TEMPLATE_VBOXOGLR3HOST_EXTENDS = VBOXR3NP … … 53 54 TEMPLATE_VBOXOGLR3HOST_DEFS.solaris = SunOS 54 55 TEMPLATE_VBOXOGLR3HOST_DEFS.darwin = DARWIN GL_GLEXT_LEGACY 56 TEMPLATE_VBOXOGLR3HOST_INCS.darwin = $(VBOX_PATH_DARWIN_OPENGL)/.. 55 57 TEMPLATE_VBOXOGLR3HOST_INCS = $(VBOX_PATH_CROGL_INCLUDE) $(VBOX_PATH_CROGL_GENFILES) 56 TEMPLATE_VBOXOGLR3HOST_DEPS.darwin = $(addprefix $(VBOX_PATH_MACOSX_OPENGL)/,$(VBOX_OPENGL_HEADERS)) 57 TEMPLATE_VBOXOGLR3HOST_INCS.darwin = $(VBOX_PATH_MACOSX_OPENGL)/.. 58 TEMPLATE_VBOXOGLR3HOST_BLDDIRS.darwin = $(VBOX_PATH_MACOSX_OPENGL) 58 ## @todo r=bird: try INTERMEDIATES.darwin here. 59 TEMPLATE_VBOXOGLR3HOST_DEPS.darwin = $(addprefix $(VBOX_PATH_DARWIN_OPENGL)/,$(VBOX_DARWIN_OPENGL_HEADERS)) 59 60 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.linux = -Wl,--no-as-needed 60 61 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.darwin = -framework Carbon -framework OpenGL -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) 61 TEMPLATE_VBOXOGLR3HOST_BLDDIRS = $(VBOX_PATH_CROGL_GENFILES)/ 62 TEMPLATE_VBOXOGLR3HOST_BLDDIRS.darwin = $(VBOX_PATH_DARWIN_OPENGL) 63 64 65 ifeq ($(KBUILD_TARGET),darwin) 66 # 67 # We have to symlink the system headers of OpenGl cause they have some 68 # different directory hierarchy on Mac OS X (no /GL sub directory). 69 # 70 VBOX_DARWIN_OPENGL_HEADERS := gl.h glu.h 71 VBOX_PATH_DARWIN_OPENGL := $(PATH_OBJ)/VBoxOGL/GL 72 73 $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS), \ 74 $(VBOX_PATH_DARWIN_OPENGL)/$(hdr): \ 75 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr) \ 76 | $(VBOX_PATH_DARWIN_OPENGL)/ \ 77 ; $$(LN_SYMLINK) $$< $$@ ) 78 endif # darwin 62 79 63 80 # 64 81 # VBoxSharedCrOpenGL 65 82 # 66 67 83 VBoxSharedCrOpenGL_TEMPLATE = VBOXOGLR3HOST 68 VBoxSharedCrOpenGL_INCS := \ 69 $(PATH_SUB_CURRENT) \ 70 $(PATH_VBoxSVC) 71 VBoxSharedCrOpenGL_INCS.win += \ 84 ifdef VBOX_WITH_XPCOM 85 VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM 86 VBoxSharedCrOpenGL_INTERMEDIATES = \ 87 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h 88 endif 89 VBoxSharedCrOpenGL_INCS.win = \ 72 90 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \ 73 91 $(VBOX_PATH_SDK)/bindings/mscom/include \ 74 92 $(PATH_VBoxCOM) 93 VBoxSharedCrOpenGL_INCS = \ 94 . \ 95 $(PATH_VBoxSVC) 75 96 ifdef VBOX_WITH_XPCOM 76 VBoxSharedCrOpenGL_DEFS += VBOX_WITH_XPCOM 77 VBoxSharedCrOpenGL_INCS += $(VBOX_XPCOM_INCS) 78 VBoxSharedCrOpenGL_INTERMEDIATES += $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h 79 endif 80 VBoxSharedCrOpenGL_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib 81 VBoxSharedCrOpenGL_SOURCES += crserver/crservice.cpp 82 VBoxSharedCrOpenGL_LIBS.win = \ 97 VBoxSharedCrOpenGL_INCS += \ 98 $(VBOX_XPCOM_INCS) 99 endif 100 VBoxSharedCrOpenGL_SOURCES = \ 101 crserver/crservice.cpp 102 VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib 103 VBoxSharedCrOpenGL_LIBS.darwin = \ 104 $(LIB_REM) 105 ifeq ($(KBUILD_TARGET),win) 106 VBoxSharedCrOpenGL_LIBS = \ 83 107 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 84 108 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ … … 88 112 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \ 89 113 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ 90 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB)\ 91 $(LIB_RUNTIME) $(LIB_VMM) 92 if1of ($(KBUILD_TARGET), linux solaris darwin) 114 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB) 115 else 93 116 VBoxSharedCrOpenGL_LIBS += \ 94 117 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \ … … 98 121 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \ 99 122 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 100 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) \ 101 $(LIB_RUNTIME) $(LIB_VMM) 102 endif 103 VBoxSharedCrOpenGL_LIBS.darwin += $(LIB_REM) 123 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) 124 endif 125 VBoxSharedCrOpenGL_LIBS += \ 126 $(LIB_RUNTIME) \ 127 $(LIB_VMM) 128 104 129 105 130 # 106 131 # VBoxOGLcrserverlib 107 132 # 108 109 133 VBoxOGLcrserverlib_TEMPLATE = VBOXOGLR3HOST 110 VBoxOGLcrserverlib_INCS := $(PATH_SUB_CURRENT)/crserverlib 134 VBoxOGLcrserverlib_INCS = \ 135 crserverlib 136 VBoxOGLcrserverlib_INTERMEDIATES = \ 137 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \ 138 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \ 139 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ 140 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h 111 141 VBoxOGLcrserverlib_SOURCES := \ 112 142 crserverlib/server_main.c \ … … 139 169 $(VBOX_PATH_CROGL_GENFILES)/server_get.c \ 140 170 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c 141 VBoxOGLcrserverlib_INTERMEDIATES := \ 142 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \ 143 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \ 144 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ 145 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h 146 VBoxOGLcrserverlib_CLEAN := \ 171 VBoxOGLcrserverlib_CLEAN = \ 147 172 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \ 148 173 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \ … … 150 175 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \ 151 176 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h 152 VBoxOGLcrserverlib_LIBS.win = \ 153 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 154 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ 155 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 156 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ 177 ifeq ($(KBUILD_HOST),win) 178 VBoxOGLcrserverlib_LIBS = \ 179 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 180 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ 181 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 182 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ 157 183 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) 158 if1of ($(KBUILD_TARGET), linux solaris darwin) 159 VBoxOGLcrserverlib_LIBS += \184 else 185 VBoxOGLcrserverlib_LIBS = \ 160 186 $(PATH_BIN)/VBoxOGLhostcrpacker$(VBOX_SUFF_DLL) \ 161 187 $(PATH_BIN)/VBoxOGLhostspuload$(VBOX_SUFF_DLL) \ … … 165 191 endif 166 192 193 # 194 # Generate files for VBoxOGLcrserverlib 195 # 167 196 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch_header.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 168 197 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) … … 180 209 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 181 210 211 182 212 # 183 213 # VBoxOGLcrunpacker 184 214 # 185 186 215 VBoxOGLcrunpacker_TEMPLATE = VBOXOGLR3HOST 187 VBoxOGLcrunpacker_INCS := $(PATH_SUB_CURRENT)/unpacker 216 VBoxOGLcrunpacker_INCS = \ 217 unpacker 188 218 VBoxOGLcrunpacker_INTERMEDIATES = \ 189 219 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \ 190 220 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \ 191 221 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h 192 VBoxOGLcrunpacker_SOURCES := \222 VBoxOGLcrunpacker_SOURCES = \ 193 223 unpacker/unpack_arrays.c \ 194 224 unpacker/unpack_bounds.c \ … … 215 245 unpacker/unpack_visibleregion.c \ 216 246 $(VBOX_PATH_CROGL_GENFILES)/unpack.c 217 VBoxOGLcrunpacker_CLEAN := \247 VBoxOGLcrunpacker_CLEAN = \ 218 248 $(VBOX_PATH_CROGL_GENFILES)/unpack.c \ 219 249 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h 220 VBoxOGLcrunpacker_LIBS.win = \ 221 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 222 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 223 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) 224 if1of ($(KBUILD_TARGET), linux solaris darwin) 225 VBoxOGLcrunpacker_LIBS += \ 226 $(PATH_BIN)/VBoxOGLhostcrpacker$(VBOX_SUFF_DLL) \ 227 $(PATH_BIN)/VBoxOGLhostspuload$(VBOX_SUFF_DLL) \ 228 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) 229 endif 230 250 ifeq ($(KBUILD_TARGET),win) 251 VBoxOGLcrunpacker_LIBS = \ 252 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 253 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 254 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) 255 else 256 VBoxOGLcrunpacker_LIBS = \ 257 $(PATH_BIN)/VBoxOGLhostcrpacker$(VBOX_SUFF_DLL) \ 258 $(PATH_BIN)/VBoxOGLhostspuload$(VBOX_SUFF_DLL) \ 259 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) 260 endif 261 262 # 263 # Generate files for VBoxOGLcrunpacker. 264 # 231 265 $(VBOX_PATH_CROGL_GENFILES)/unpack.c: $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack.py unpacker_special) $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h $(VBOX_CROGL_API_FILES) | $$(dir $$@) 232 266 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) … … 235 269 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 236 270 271 237 272 # 238 273 # VBoxOGLrenderspu 239 274 # 240 241 275 VBoxOGLrenderspu_TEMPLATE = VBOXOGLR3HOST 242 VBoxOGLrenderspu_LIBS += $(LIB_RUNTIME) 243 VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib 244 VBoxOGLrenderspu_SOURCES := \ 276 VBoxOGLrenderspu_INTERMEDIATES = \ 277 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ 278 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h 279 VBoxOGLrenderspu_SOURCES = \ 245 280 render/renderspu.c \ 246 281 render/renderspu_config.c \ … … 250 285 VBoxOGLrenderspu_SOURCES.solaris = render/renderspu_glx.c 251 286 VBoxOGLrenderspu_SOURCES.darwin = render/renderspu_agl.c 252 VBoxOGLrenderspu_INTERMEDIATES = \ 253 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ 254 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h 255 VBoxOGLrenderspu_LIBS.win = \ 256 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 257 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 258 if1of ($(KBUILD_TARGET), linux solaris darwin) 287 288 VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib 289 ifeq ($(KBUILD_TARGET),win) 259 290 VBoxOGLrenderspu_LIBS += \ 260 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) \ 261 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 262 endif 263 if1of ($(KBUILD_TARGET), linux solaris) 264 VBoxOGLrenderspu_LIBPATH += $(VBOX_LIBPATH_X11) 291 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 292 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 293 else 265 294 VBoxOGLrenderspu_LIBS += \ 266 Xmu X11 Xext 295 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) \ 296 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 297 endif 298 VBoxOGLrenderspu_LIBS += \ 299 $(LIB_RUNTIME) 300 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang 301 VBoxOGLrenderspu_LIBS += \ 302 Xmu \ 303 X11 \ 304 Xext 305 VBoxOGLrenderspu_LIBPATH = \ 306 $(VBOX_LIBPATH_X11) 267 307 endif 268 308
Note:
See TracChangeset
for help on using the changeset viewer.