# $Id: Makefile.kmk 25806 2010-01-13 14:44:56Z vboxsync $ ## @file # Sub-Makefile for the VirtualBox HGCM Service. # # # Copyright (C) 2008 Sun Microsystems, Inc. # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa # Clara, CA 95054 USA or visit http://www.sun.com if you need # additional information or have any questions. # SUB_DEPTH = ../../../.. include $(KBUILD_PATH)/subheader.kmk # # Target lists. # ifdef VBOX_WITH_MAIN DLLS += VBoxSharedCrOpenGL VBoxOGLrenderspu LIBRARIES += VBoxOGLcrserverlib VBoxOGLcrunpacker BLDDIRS += \ $(VBOX_PATH_CROGL_GENFILES)/ endif ifeq ($(KBUILD_TARGET),darwin) # # We have to symlink the system headers of OpenGl cause they have some # different directory hierarchy on Mac OS X (no /GL sub directory). # # See Config.kmk for the global variables. # INSTALLS += DarwinOpenGLHdrs DarwinOpenGLHdrs_INST = $(VBOX_DARWIN_OPENGL_INST) DarwinOpenGLHdrs_SYMLINKS = \ $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS),\ $(hdr)=>$(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr)) endif # darwin # # VBoxSharedCrOpenGL # VBoxSharedCrOpenGL_TEMPLATE = VBOXCROGLR3HOSTDLL ifdef VBOX_WITH_XPCOM VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM VBoxSharedCrOpenGL_CXXFLAGS = -Wno-non-virtual-dtor endif VBoxSharedCrOpenGL_INTERMEDIATES = \ $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES) VBoxSharedCrOpenGL_INCS.win = \ $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \ $(VBOX_PATH_SDK)/bindings/mscom/include \ $(PATH_VBoxCOM) VBoxSharedCrOpenGL_INCS = \ . \ $(PATH_VBoxSVC) ifdef VBOX_WITH_XPCOM VBoxSharedCrOpenGL_INCS += \ $(VBOX_XPCOM_INCS) endif VBoxSharedCrOpenGL_SOURCES = \ crserver/crservice.cpp VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib VBoxSharedCrOpenGL_LIBS = \ $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \ $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \ $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \ $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \ $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \ $(VBOX_LIB_OGL_HOSTCRUTIL) \ $(LIB_RUNTIME) \ $(LIB_VMM) VBoxSharedCrOpenGL_LIBS.darwin = \ $(LIB_REM) ifeq ($(KBUILD_TARGET),win) VBoxSharedCrOpenGL_LIBS += \ $(PATH_OBJ)/VBoxOGLrenderspu/VBoxOGLrenderspu$(VBOX_SUFF_LIB) \ $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB) else VBoxSharedCrOpenGL_LIBS += \ $(PATH_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL) endif # # VBoxOGLcrserverlib # VBoxOGLcrserverlib_TEMPLATE = VBOXCROGLR3HOSTLIB VBoxOGLcrserverlib_INCS = \ crserverlib VBoxOGLcrserverlib_INTERMEDIATES = \ $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \ $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \ $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \ $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h VBoxOGLcrserverlib_SOURCES := \ crserverlib/server_main.c \ crserverlib/server_boundsinfo.c \ crserverlib/server_bufferobject.c \ crserverlib/server_clear.c \ crserverlib/server_clip.c \ crserverlib/server_config.c \ crserverlib/server_context.c \ crserverlib/server_gentextures.c \ crserverlib/server_getmap.c \ crserverlib/server_getstring.c \ crserverlib/server_getpointer.c \ crserverlib/server_getpixelmap.c \ crserverlib/server_getteximage.c \ crserverlib/server_lists.c \ crserverlib/server_misc.c \ crserverlib/server_occlude.c \ crserverlib/server_papi.c \ crserverlib/server_projmatrix.c \ crserverlib/server_readpixels.c \ crserverlib/server_stream.c \ crserverlib/server_tiles.c \ crserverlib/server_viewport.c \ crserverlib/server_window.c \ crserverlib/server_winpos.c \ crserverlib/server_writeback.c \ crserverlib/server_getshaders.c \ crserverlib/server_framebuffer.c \ crserverlib/server_glsl.c \ $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \ $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \ $(VBOX_PATH_CROGL_GENFILES)/server_get.c \ $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c VBoxOGLcrserverlib_CLEAN = \ $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \ $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \ $(VBOX_PATH_CROGL_GENFILES)/server_get.c \ $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \ $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h # # Generate files for VBoxOGLcrserverlib # $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch_header.py server_special) $(VBOX_CROGL_API_FILES) $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/state_tracker/state_special | $$(dir $$@) $(call MSG_GENERATE,python,$@,$<) $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(