Changeset 16875 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Feb 17, 2009 9:15:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r16685 r16875 31 31 BLDDIRS += \ 32 32 $(VBOX_PATH_CROGL_GENFILES)/ 33 34 35 #36 # Globals37 #38 if1of ($(KBUILD_HOST), os2 win)39 VBOX_CROGL_HOST_PYTHONPATH := $(VBOX_PATH_CROGL_GLAPI);$(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer;$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib40 else41 VBOX_CROGL_HOST_PYTHONPATH := $(VBOX_PATH_CROGL_GLAPI):$(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer:$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib42 endif43 44 45 #46 # The VBOXOGLR3HOST template.47 #48 TEMPLATE_VBOXOGLR3HOST = VBox OpenGL Host Libraries49 TEMPLATE_VBOXOGLR3HOST_EXTENDS = VBOXR3NP50 TEMPLATE_VBOXOGLR3HOST_EXTENDS_BY = prepending51 TEMPLATE_VBOXOGLR3HOST_DEFS = CHROMIUM_THREADSAFE VBOX_WITH_HGCM UNPACKS52 TEMPLATE_VBOXOGLR3HOST_DEFS.win = _WIN32_WINNT=0x0500 WINDOWS=153 TEMPLATE_VBOXOGLR3HOST_DEFS.linux = Linux54 TEMPLATE_VBOXOGLR3HOST_DEFS.solaris = SunOS55 TEMPLATE_VBOXOGLR3HOST_DEFS.darwin = DARWIN GL_GLEXT_LEGACY56 TEMPLATE_VBOXOGLR3HOST_SDKS.darwin += DARWIN-OPENGL57 TEMPLATE_VBOXOGLR3HOST_INCS = \58 $(VBOX_PATH_CROGL_INCLUDE) \59 $(VBOX_PATH_CROGL_GENFILES)60 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.linux = -Wl,--no-as-needed61 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.darwin = \62 -framework Carbon \63 -framework OpenGL \64 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)65 66 33 67 34 ifeq ($(KBUILD_TARGET),darwin) … … 82 49 # VBoxSharedCrOpenGL 83 50 # 84 VBoxSharedCrOpenGL_TEMPLATE = VBOX OGLR3HOST51 VBoxSharedCrOpenGL_TEMPLATE = VBOXCROGLR3HOSTDLL 85 52 ifdef VBOX_WITH_XPCOM 86 53 VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM … … 102 69 crserver/crservice.cpp 103 70 VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib 71 VBoxSharedCrOpenGL_LIBS = \ 72 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \ 73 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ 74 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \ 75 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 76 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ 77 $(VBOX_LIB_OGL_HOSTCRUTIL) \ 78 $(LIB_RUNTIME) \ 79 $(LIB_VMM) 104 80 VBoxSharedCrOpenGL_LIBS.darwin = \ 105 81 $(LIB_REM) 106 82 ifeq ($(KBUILD_TARGET),win) 107 VBoxSharedCrOpenGL_LIBS = \ 108 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 109 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 110 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \ 111 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ 83 VBoxSharedCrOpenGL_LIBS += \ 112 84 $(PATH_OBJ)/VBoxOGLrenderspu/VBoxOGLrenderspu$(VBOX_SUFF_LIB) \ 113 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \114 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \115 85 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB) 116 86 else 117 87 VBoxSharedCrOpenGL_LIBS += \ 118 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \ 119 $(PATH_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL) \ 120 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ 121 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ 122 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \ 123 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 124 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) 125 endif 126 VBoxSharedCrOpenGL_LIBS += \ 127 $(LIB_RUNTIME) \ 128 $(LIB_VMM) 129 88 $(PATH_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL) 89 endif 130 90 131 91 # 132 92 # VBoxOGLcrserverlib 133 93 # 134 VBoxOGLcrserverlib_TEMPLATE = VBOX OGLR3HOST94 VBoxOGLcrserverlib_TEMPLATE = VBOXCROGLR3HOSTLIB 135 95 VBoxOGLcrserverlib_INCS = \ 136 96 crserverlib … … 176 136 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \ 177 137 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h 178 ifeq ($(KBUILD_HOST),win)179 VBoxOGLcrserverlib_LIBS = \180 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \181 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \182 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \183 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \184 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB)185 else186 VBoxOGLcrserverlib_LIBS = \187 $(PATH_BIN)/VBoxOGLhostcrpacker$(VBOX_SUFF_DLL) \188 $(PATH_BIN)/VBoxOGLhostspuload$(VBOX_SUFF_DLL) \189 $(PATH_BIN)/VBoxOGLcrunpacker$(VBOX_SUFF_DLL) \190 $(PATH_BIN)/VBoxOGLhostcrstate$(VBOX_SUFF_DLL) \191 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL)192 endif193 138 194 139 # … … 196 141 # 197 142 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch_header.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 198 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)143 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 199 144 200 145 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 201 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)146 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 202 147 203 148 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_retval.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 204 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)149 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 205 150 206 151 $(VBOX_PATH_CROGL_GENFILES)/server_get.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_get.py server_special get_components.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 207 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)152 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 208 153 209 154 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_simpleget.py get_sizes.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 210 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)155 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 211 156 212 157 … … 214 159 # VBoxOGLcrunpacker 215 160 # 216 VBoxOGLcrunpacker_TEMPLATE = VBOX OGLR3HOST161 VBoxOGLcrunpacker_TEMPLATE = VBOXCROGLR3HOSTLIB 217 162 VBoxOGLcrunpacker_INCS = \ 218 163 unpacker … … 249 194 $(VBOX_PATH_CROGL_GENFILES)/unpack.c \ 250 195 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h 251 ifeq ($(KBUILD_TARGET),win)252 VBoxOGLcrunpacker_LIBS = \253 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \254 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \255 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB)256 else257 VBoxOGLcrunpacker_LIBS = \258 $(PATH_BIN)/VBoxOGLhostcrpacker$(VBOX_SUFF_DLL) \259 $(PATH_BIN)/VBoxOGLhostspuload$(VBOX_SUFF_DLL) \260 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL)261 endif262 196 263 197 # … … 265 199 # 266 200 $(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 $$@) 267 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)201 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 268 202 269 203 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h: $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack_extend.py unpacker_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@) 270 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_ CROGL_HOST_PYTHONPATH),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)204 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) 271 205 272 206 … … 274 208 # VBoxOGLrenderspu 275 209 # 276 VBoxOGLrenderspu_TEMPLATE = VBOX OGLR3HOST210 VBoxOGLrenderspu_TEMPLATE = VBOXCROGLR3HOSTDLL 277 211 VBoxOGLrenderspu_INTERMEDIATES = \ 278 212 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ … … 286 220 VBoxOGLrenderspu_SOURCES.solaris = render/renderspu_glx.c 287 221 VBoxOGLrenderspu_SOURCES.darwin = render/renderspu_agl.c 288 289 222 VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib 290 ifeq ($(KBUILD_TARGET),win) 291 VBoxOGLrenderspu_LIBS += \ 292 $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB) \ 293 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 294 else 295 VBoxOGLrenderspu_LIBS += \ 296 $(PATH_BIN)/VBoxOGLhostcrutil$(VBOX_SUFF_DLL) \ 297 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) 298 endif 299 VBoxOGLrenderspu_LIBS += \ 223 VBoxOGLrenderspu_LIBS = \ 224 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ 225 $(VBOX_LIB_OGL_HOSTCRUTIL) \ 300 226 $(LIB_RUNTIME) 301 227 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang
Note:
See TracChangeset
for help on using the changeset viewer.