Makefile.kmk revision 797b441615ea01355c0d6042595431cd4f033182
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# $Id$
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @file
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Makefile for the VBox Main module.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
cce0c6096dee0c5353bb74431dc47b05f87a1c6dvboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Copyright (C) 2006-2009 Sun Microsystems, Inc.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# available from http://www.virtualbox.org. This file is free software;
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# you can redistribute it and/or modify it under the terms of the GNU
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# General Public License (GPL) as published by the Free Software
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# additional information or have any questions.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncSUB_DEPTH = ../../..
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Include sub-makefile(s).
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_WEBSERVICES
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Targets and globals (bit of a mess...)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_ONLY_SDK
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # used by some rules
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync PATH_VBoxCOM = $(PATH_TARGET)/VBoxCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync BLDDIRS += $(PATH_VBoxCOM) $(PATH_BIN)/components
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # I'm Evil! Dr. Evil.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include $(KBUILD_PATH)/tools/VCC70.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include $(KBUILD_PATH)/sdks/WINPSDK.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif #!VBOX_ONLY_SDK
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Construct VBOX_MAIN_DEFS
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @todo eliminate or expand VBOX_MAIN_DEFS.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_MAIN_DEFS =
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifneq ($(KBUILD_TARGET),win)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifndef VBOX_WITH_XPCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(error "VBox: VBOX_WITH_XPCOM isn't defined")
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifneq ($(KBUILD_TARGET),os2)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_MAIN_DEFS+= VBOX_WITH_SYS_V_IPC_SESSION_WATCHER
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_MAIN_DEFS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Unconditionally enable the new semaphore key generation code
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_IDL_FILE.MSCOM = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_IDL_FILE.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/idl/VirtualBox_XPCOM.idl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_IDL_TYPELIB.XPCOM = $(PATH_BIN)/components/VirtualBox_XPCOM.xpt
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_IDL_HEADER.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# The MS COM specific stuff.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncif defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync OTHERS += \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(VBOX_IDL_FILE.MSCOM) \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync OTHER_CLEAN += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_IDL_FILE.MSCOM) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM)/VirtualBox.h \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM)/VirtualBox_i.c \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM)/VirtualBox.tlb
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_MAIN_PREREQS += $(PATH_VBoxCOM)/VirtualBox_i.c
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# The XPCOM specific stuff.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncif defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync OTHER_CLEAN += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_IDL_FILE.XPCOM) \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync $(VBOX_IDL_HEADER.XPCOM) \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(VBOX_IDL_TYPELIB.XPCOM)
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync BLDDIRS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/idl \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_SDK)/bindings/xpcom/include
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif # xpcom
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Strip documentation from source XIDL so that we don't get a full
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# recompile every time a comma in the documentation is changed.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XIDL_FILE_SRC) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# $(CP) -fv $< $(VBOX_XIDL_FILE).ts
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $<
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(CP) --changed -fv $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync# The Main API documentation
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
fb9af443dbf06990f4956d683286ddce29c4dca6vboxsyncBLDDIRS += $(VBOX_MAIN_DOC_DIR)
fb9af443dbf06990f4956d683286ddce29c4dca6vboxsync
fb9af443dbf06990f4956d683286ddce29c4dca6vboxsync$(PATH_TARGET)/docs.Main: \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XIDL_FILE_SRC) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync | $(PATH_TARGET)/ \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_DOC_DIR)/
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(APPEND) $(PATH_TARGET)/docs.Main
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# aliases
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncdocs.main docs.Main: $(PATH_TARGET)/docs.Main
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsyncif !defined(VBOX_ONLY_DOCS)
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsyncdocs: $(PATH_TARGET)/docs.Main
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Some SDK bit.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncINSTALLS += VBox-main-xidl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBox-main-xidl_INST = $(INST_SDK)bindings/
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_PYTHON
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync# or to some subdir?
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_PYTHON_CONSTANTS = $(PATH_TARGET)/VirtualBox_constants.py
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncINSTALLS += VBox-python-glue
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBox-python-glue_INST = $(INST_SDK)installer
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBox-python-glue_SOURCES = glue/vboxapi.py=>vboxapi/__init__.py \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_PYTHON_CONSTANTS)=>vboxapi/VirtualBox_constants.py
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_PYTHON_CONSTANTS): $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsyncendif # VBOX_WITH_PYTHON
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifndef VBOX_ONLY_SDK # Note this goes on for *very* long
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# These two files are used by both VBoxC and VBoxSVC.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncBLDDIRS += $(PATH_TARGET)/Main
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMADEFS_H = $(PATH_TARGET)/Main/SchemaDefs.h
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMADEFS_CPP = $(PATH_TARGET)/Main/SchemaDefs.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMADEFS_XSL = $(VBOX_PATH_MAIN_SRC)/xml/SchemaDefs.xsl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VBoxSVC executable
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncPROGRAMS += VBoxSVC
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_TEMPLATE = VBOXMAINEXE
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_DEFS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_MAIN_SETTINGS_ADDONS \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_DEFS) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VRDP),VBOX_WITH_VRDP,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_COCOA_QT),VBOX_WITH_COCOA_QT,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_MAIN_RELEASE_LOG),VBOX_MAIN_RELEASE_LOG LOG_ENABLED,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_DEFS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_WITH_USB \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),VBOX_WITH_NEW_USB_CODE_ON_SOLARIS,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_DEFS.win.x86 += _WIN32_WINNT=0x0500
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsyncVBoxSVC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync# Try to load and use libhal at runtime for probing removable media
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_DEFS.freebsd += VBOX_USE_LIBHAL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_SOLARIS_NSL_RESOLVED
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_DEFS.solaris += VBOX_SOLARIS_NSL_RESOLVED
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @todo We're disabling optimizations on FreeBSD to work around strange linker
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# errors in release builds. Figure out why and how to work around it in a
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# more optimal fashion.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_CXXFLAGS.freebsd = -O0
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsyncVBoxSVC_INCS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxSVC) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(dir $(VBOX_XML_SCHEMADEFS_H)) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync .
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_INCS.win = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_INCS.os2 = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_LIBS += \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(LIB_VMM) \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync $(LIB_DDU)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_LIBS.darwin = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(LIB_REM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_LIBS.solaris = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync adm \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync nsl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_NETFLT
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifdef VBOX_SOLARIS_NSL_RESOLVED
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LIBS.solaris += devinfo
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LIBS.solaris += socket
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LIBS.solaris += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync devinfo
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_INTERMEDIATES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_PREREQS) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XML_SCHEMADEFS_H)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_SOURCES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Global.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Logging.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync AutoLock.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Matching.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync xml/Settings.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxBase.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxErrorInfoImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ApplianceImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync xml/ovfreader.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VFSExplorerImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MachineImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync SnapshotImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MediumImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MediumAttachmentImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MediumFormatImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ProgressImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync HostImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync HostNetworkInterfaceImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync DHCPServerImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync DHCPServerRunner.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync GuestOSTypeImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync NetworkAdapterImpl.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync SerialPortImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ParallelPortImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync USBControllerImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync StorageControllerImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync AudioAdapterImpl.cpp \
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync SharedFolderImpl.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync SystemPropertiesImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync BIOSSettingsImpl.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync HostPower.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(if $(VBOX_WITH_VRDP),VRDPServerImpl.cpp,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_XPCOM),xpcom/server.cpp,) \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync $(VBOX_XML_SCHEMADEFS_CPP)
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_SOURCES.darwin = \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync darwin/iokit.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync darwin/HostPowerDarwin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsyncifdef VBOX_WITH_CROGL
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync ifneq ($(KBUILD_TARGET),darwin)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES += generic/OpenGLTest.cpp
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync endif
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync VBoxSVC_SOURCES.darwin += darwin/OpenGLTestDarwin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
b84a3f2aac9529d5c5840512b12d81bc62d0e665vboxsync
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsyncVBoxSVC_SOURCES.win = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/svcmain.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync win/svchlp.cpp \
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync win/HostPowerWin.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/VBoxSVC.rc
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsync
968c867cc19737e4e1fd97c396fcf75a3d52dd27vboxsyncVBoxSVC_SOURCES.linux = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync linux/HostHardwareLinux.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_SOURCES.solaris = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync linux/vbox-libhal.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync solaris/DynLoadLibSolaris.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_SOURCES.freebsd = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync freebsd/HostHardwareFreeBSD.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifdef VBOX_WITH_SYSFS_BY_DEFAULT
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync linux/USBProxyServiceLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync USBDeviceFilterImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync USBProxyService.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync HostUSBDeviceImpl.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.darwin += darwin/USBProxyServiceDarwin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.linux += linux/USBProxyServiceLinux.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.os2 += os2/USBProxyServiceOs2.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.solaris += solaris/USBProxyServiceSolaris.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.win += win/USBProxyServiceWindows.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.freebsd += freebsd/USBProxyServiceFreeBSD.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_NETFLT
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # Note! The includes from the TOOL has lower priority than the SDKs,
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # since comdef.h is in both the DDK and VCC we want to make sure
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # we're using the VCC since we're not using the DDK compiler/crt.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # Since this is potentially risky, restrict it to the source file
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # needing it.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/NetIf-win.cpp_INCS.win += $(PATH_TOOL_$(VBOX_VCC_TOOL)_INC)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LIBS.win += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_LIB)/WinNetConfig.lib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_SDK_WINPSDK_LIB)/WbemUuid.Lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifdef VBOX_NETFLT_ONDEMAND_BIND
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_CROGL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LDFLAGS.darwin += -framework OpenGL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifeq ($(KBUILD_TYPE),debug)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_RESOURCE_USAGE_API
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync PerformanceImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Performance.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.darwin += darwin/PerformanceDarwin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.freebsd += freebsd/PerformanceFreeBSD.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.linux += linux/PerformanceLinux.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.os2 += os2/PerformanceOs2.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.solaris += solaris/PerformanceSolaris.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.win += win/PerformanceWin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LDFLAGS.darwin += -lproc
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LDFLAGS.solaris += -lkstat
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_HOSTNETIF_API
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.win += win/NetIf-win.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.linux += linux/NetIf-linux.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.os2 += os2/NetIf-os2.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.darwin += darwin/NetIf-darwin.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.solaris += solaris/NetIf-solaris.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES.freebsd += freebsd/NetIf-freebsd.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVC_SOURCES += generic/NetIf-generic.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncwin/VBoxSVC.rc_INCS = $(PATH_VBoxSVC)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncwin/VBoxSVC.rc_DEPS = $(PATH_VBoxSVC)/VBoxSVC.rgs $(PATH_VBoxSVC)/VBoxSVC-icon.rc
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncwin/VBoxSVC.rc_CLEAN = $(PATH_VBoxSVC)/VBoxSVC.rgs $(PATH_VBoxSVC)/VBoxSVC-icon.rc
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVC)/VBoxSVC-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$(@D))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVC)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$(@D))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) --stringparam Module VBoxSVC -o $@ $< $(VBOX_XIDL_FILE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Embed XML Schema files to VBoxSVC
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA_COMMON = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-common.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.darwin = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-macosx.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.linux = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-linux.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.freebsd = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-freebsd.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.win = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-windows.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.os2 = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-os2.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_SCHEMA.solaris = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-solaris.xsd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_XML_CONVERTER_TEMPLATE = $(VBOX_PATH_MAIN_SRC)/xml/SettingsConverter.xsl
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVC)/xml_VirtualBox_settings_xsd.h: $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_BIN2C)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_BIN2C) _xml_VirtualBox_settings_xsd $< $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVC)/xml_VirtualBox_settings_common_xsd.h: $(VBOX_XML_SCHEMA_COMMON) $(VBOX_BIN2C)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_BIN2C) _xml_VirtualBox_settings_common_xsd $< $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVC)/xml_SettingsConverter_xsl.h: $(VBOX_XML_CONVERTER_TEMPLATE) $(VBOX_BIN2C)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_BIN2C) _xml_SettingsConverter_xsl $< $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_GENERATE,SchemaDefs,$@,$<)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_GENERATE,SchemaDefs,$@,$<)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncOTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncif defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_VIDEOHWACCEL)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifneq ($(KBUILD_TARGET),darwin)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync #
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # VBoxTestOGL - OpenGL support test app.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync #
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifdef VBOX_WITH_VIDEOHWACCEL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync USES += qt4
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync PROGRAMS += VBoxTestOGL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_SOURCES = generic/OpenGLTestApp.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_LIBS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_CROGL), \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_LIB_OGL_HOSTCRUTIL),) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(LIB_RUNTIME)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_DEFS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_CROGL), VBOX_WITH_CROGL,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifdef VBOX_WITH_VIDEOHWACCEL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_QT_MODULES += Core Gui OpenGL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_LIBS.solaris += GL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_XPCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VBoxSVCM - VBoxSVC wrapper module
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncDLLS += VBoxSVCM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_TEMPLATE = VBOXMAINCOMP
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_HARDENING
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxSVCM_DEFS += VBOX_WITH_HARDENING
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_INCS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxC) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync .
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_SOURCES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync xpcom/server_module.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_LDFLAGS.darwin = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync -exported_symbols_list $(PATH_VBoxSVCM)/VBoxSVCM.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ifeq ($(KBUILD_TARGET),darwin)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_ORDERDEPS += $(PATH_VBoxSVCM)/VBoxSVCM.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_CLEAN += $(PATH_VBoxSVCM)/VBoxSVCM.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxSVCM)/VBoxSVCM.def:
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(RM) -f $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(APPEND) $@ _NSGetModule
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync endif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif # VBOX_WITH_XPCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VBoxC module
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncDLLS += VBoxC
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_TEMPLATE = VBOXMAINCOMP
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync IN_RING3 \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_DEFS) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_COM_INPROC \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VRDP),VBOX_WITH_VRDP,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_MAIN_RELEASE_LOG),VBOX_MAIN_RELEASE_LOG LOG_ENABLED,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_CROSSBOW),VBOX_WITH_CROSSBOW,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_HPET),VBOX_WITH_HPET,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_SMC),VBOX_WITH_SMC,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_LPC),VBOX_WITH_LPC,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_WITH_USB \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_HGSMI
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS += VBOX_WITH_HGSMI
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_VIDEOHWACCEL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS += VBOX_WITH_VIDEOHWACCEL
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_DYNAMIC_NET_ATTACH
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS += VBOX_DYNAMIC_NET_ATTACH
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_INCS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxC) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(dir $(VBOX_XML_SCHEMADEFS_H))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_INCS.win = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync .
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_LDFLAGS.darwin = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync -exported_symbols_list $(PATH_VBoxC)/VBoxC.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_USE_VCC80
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxC_LDFLAGS.win = /MANIFEST
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_LIBS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(LIB_VMM) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(LIB_REM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_NETFLT
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxC_LIBS.win += $(PATH_LIB)/WinNetConfig.lib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_SDK_WINPSDK_LIB)/WbemUuid.Lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_INTERMEDIATES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_PREREQS) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XML_SCHEMADEFS_H)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SOURCES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Global.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Logging.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync AutoLock.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxDll.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync USBDeviceImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync RemoteUSBDeviceImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxBase.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxErrorInfoImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ProgressImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync SharedFolderImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync SessionImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VirtualBoxCallbackImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ConsoleImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ConsoleImpl2.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ConsoleImplTeleporter.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ConsoleVRDPServer.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync GuestImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync KeyboardImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MouseImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync DisplayImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync DisplayResampleImage.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync MachineDebuggerImpl.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxDriversRegister.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync AudioSnifferInterface.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VMMDevInterface.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XML_SCHEMADEFS_CPP)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SOURCES.win = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/dllmain.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/VBoxC.def \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/VBoxC.rc
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_XPCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync xpcom/module.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_HGCM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync hgcm/HGCMObjects.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync hgcm/HGCMThread.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync hgcm/HGCM.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_USB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync RemoteUSBBackend.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifeq ($(KBUILD_TARGET),darwin)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_ORDERDEPS += $(PATH_VBoxC)/VBoxC.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_CLEAN += $(PATH_VBoxC)/VBoxC.def
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxC)/VBoxC.def: $(MAKEFILE_CURRENT)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(RM) -f $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(APPEND) $@ _NSGetModule
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(APPEND) $@ _VBoxDriversRegister
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncConsoleImpl.cpp_DEFS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncwin/VBoxC.rc_DEPS = $(PATH_VBoxC)/VBoxC.rgs $(PATH_VBoxCOM)/VirtualBox.tlb
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_CLEAN.win += $(PATH_VBoxC)/VBoxC.rgs
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$$(PATH_VBoxC)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(PATH_VBoxC)/
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_XSLTPROC) --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# VBoxCOM - COM Abstraction Layer library
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncLIBRARIES += VBoxCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxCOM_TEMPLATE = VBOXMAINLIB
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxCOM_SOURCES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/com.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/initterm.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/string.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/EventQueue.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/ErrorInfo.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/errorprint.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/SupportErrorInfo.cpp \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync glue/VirtualBoxErrorInfo.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxCOM_INCS += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifeq ($(KBUILD_TARGET),win)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxCOM_DEFS.x86 += _WIN32_WINNT=0x0500
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxCOM_DEFS.amd64 += _WIN32_WINNT=0x0510
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxCOM_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_VBoxCOM)/VirtualBox_i.c
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncelse # !win
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxCOM_SOURCES += \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync xpcom/helpers.cpp
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif # !win
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif # !VBOX_ONLY_SDK (the ifndef is far above)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Installs com related thing(s) to bin.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncINSTALLS.win += VBoxMain-com-inst
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxMain-com-inst_INST = $(INST_BIN)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxMain-com-inst_SOURCES = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync win/comregister.cmd
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncif defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux"
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync #
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync # Installs linux/hardening related things to components.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync #
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync INSTALLS.linux += VBoxMain-hardening-inst
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxMain-hardening-inst_INST = $(INST_BIN)components/
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxMain-hardening-inst_SYMLINKS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxDDU.so=>../VBoxDDU.so \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxREM.so=>../VBoxREM.so \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxRT.so=>../VBoxRT.so \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxVMM.so=>../VBoxVMM.so \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync VBoxXPCOM.so=>../VBoxXPCOM.so
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# generate rules
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Additions rules.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncxpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(CHMOD) 0644 $@
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @todo ^^^^^^^^^^^^ fix horrible hack
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBOX_MAIN_IDL ?= $(EXEC_X86_WIN32) $(call VBOX_FN_MAKE_WIN_PATH,$(firstword $(wildcard \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_SDK_WINPSDK_BIN)/Midl.Exe\
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_SDK_WINPSDK)/Bin/Midl.Exe\
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(PATH_DEVTOOLS)/win.x86/bin/midl.exe\
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync ) Sorry_Cannot_Find_The_Midl_Compiler_In_The_PSDK))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncIDL_DEFS = /nologo
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_VRDP
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync IDL_DEFS += /D VBOX_WITH_VRDP
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Aliases for testing purposes.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncifdef VBOX_WITH_XPCOM
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestidlhdr: $(VBOX_IDL_HEADER.XPCOM)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncelse
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestidl: $(VBOX_IDL_FILE.MSCOM) $(PATH_VBoxCOM)/VirtualBox_i.c
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncendif
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync## @todo r=bird: last changes to this rule showed incorrect dependencies here as it broke testcase (see testboxwin2).
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# This is kind of obvious when looking at the rule, because it's (a) not specifying all it output
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# and (b) generating more stuff *after* the main target has been completed.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# What needs to be done is to not depend on _i.c in the object subdir, but on all the final outputs.
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync$(PATH_VBoxCOM)/VirtualBox_i.c \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync+ $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync+ $(PATH_VBoxCOM)/VirtualBox.h \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync+ $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync+ $(PATH_VBoxCOM)/VirtualBox.tlb \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync+ $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $(call DIRDEP,$(PATH_VBoxCOM))
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_MAIN_IDL) $(IDL_DEFS) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync /out $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_VBoxCOM)) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_WINPSDK_INC)) \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync /I idl \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call VBOX_FN_MAKE_WIN_PATH,$<)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(MKDIR) -p $(VBOX_PATH_SDK)/bindings/mscom/include
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(CP) $(PATH_VBoxCOM)/VirtualBox.h $(VBOX_PATH_SDK)/bindings/mscom/include
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(MKDIR) -p $(VBOX_PATH_SDK)/bindings/mscom/lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(CP) $(PATH_VBoxCOM)/VirtualBox.tlb $(VBOX_PATH_SDK)/bindings/mscom/lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(CP) $(PATH_VBoxCOM)/VirtualBox_i.c $(VBOX_PATH_SDK)/bindings/mscom/lib
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync# Translation stuff
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync#
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_VBOX_HEADERS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include/collection.h \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include/MachineImpl.h
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxSVC_VBOX_TRANSLATIONS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync nls/VBoxSVC_de.ts
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_VBOX_HEADERS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync include/ConsoleImpl.h
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncVBoxC_VBOX_TRANSLATIONS = \
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync nls/VBoxC_de.ts
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncupdatenls::
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_VBOX_HEADERS) -ts $(VBoxSVC_VBOX_TRANSLATIONS)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_VBOX_HEADERS) -ts $(VBoxC_VBOX_TRANSLATIONS)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestconverter:: $(VBOX_USER_HOME)/VirtualBox.xml
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$(VBOX_USER_HOME)/VirtualBox.xml.test)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_USER_HOME)/VirtualBox.xml.test xml/SettingsConverter.xsl $<
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsynctestconverter2:: $(VBOX_USER_HOME)/Machines/dos/dos.xml
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$<.test)
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync $(QUIET)$(VBOX_XSLTPROC) -o $<.test xml/SettingsConverter.xsl $<
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync