Makefile.kmk revision efda5c4c4db213abd0692df0ea34a26f6230d59a
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Makefile for the VirtualBox Qt GUI.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Copyright (C) 2006-2010 Oracle Corporation
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# This file is part of VirtualBox Open Source Edition (OSE), as
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# available from http://www.virtualbox.org. This file is free software;
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# you can redistribute it and/or modify it under the terms of the GNU
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# General Public License (GPL) as published by the Free Software
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Foundation, in version 2 as it comes in the "COPYING" file of the
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSUB_DEPTH = ../../../..
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(KBUILD_PATH)/subheader.kmk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# VBOX_WITH_REGISTRATION := 1
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Ask the user to register at Sun. If this setting is disabled the user can
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# still register using the menu if desired.
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill# VBOX_WITH_REGISTRATION_REQUEST := 1
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# For now this should be disabled in any case
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_WITH_REGISTRATION=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION_REQUEST
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_WITH_REGISTRATION_REQUEST=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Show the update notifier dialog during startup. If this setting is disabled
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# the user can still update using the menu if desired.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifndef VBOX_OSE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_WITH_UPDATE_REQUEST := 1
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# The targets.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_HARDENING
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininPROGRAMS += VirtualBoxHardened
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininDLLS += VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininPROGRAMS += VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Include the language lists.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Hardened VirtualBox.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxHardened_SOURCES = src/hardenedmain.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxHardened_NAME = VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Include Qt project file, we'll use FORMS and TRANSLATIONS in
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# the VirtualBox setup below.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSAVED_TEMPLATE := $(TEMPLATE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(PATH_SUB_CURRENT)/VBoxUI.pro
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# VirtualBox - The GUI program.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_NAME = VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SDKS += LIBSDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin # For testing iChat Theater stuff change the sdk path (HACK ALERT!)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS =
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifndef VBOX_WITH_COCOA_QT
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifneq ($(KBUILD_TYPE),release)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin # non-release builds has some extra features.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_REGISTRATION),VBOX_WITH_REGISTRATION) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_REGISTRATION_REQUEST),VBOX_WITH_REGISTRATION_REQUEST) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_DEBUGGER_GUI
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin if "$(KBUILD_TYPE)" != "release"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_VIDEOHWACCEL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_GUI_USE_QGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininelse ifdef VBOX_GUI_USE_QGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_GUI_USE_QGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_VIRTIO
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_WITH_VIRTIO
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOXWDDM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOXWDDM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_BLEEDING_EDGE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_src/selector/VBoxSelectorWnd.cpp_DEFS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_GUI_INC_DIRS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_GUI_INC_DIRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_INCS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_GUI_INC_DIRS) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBox)/include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Necessary for the hdd backend enumeration
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS = $(LIB_DDU)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# This library is required for multi-monitor support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_VIDEOHWACCEL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Necessary for save state support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS += $(LIB_VMM)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TYPE),release)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ifeq ($(USERNAME),dmik)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -framework AppKit -framework Carbon \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.darwin += -framework OpenGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_SDK_DXSDK_LIB)/dxguid.lib
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Headers containing definitions of classes that use the Q_OBJECT macro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCHDRS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsLanguage.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsNetworkDetails.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSBFilterDetails.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/exportappliance/UIExportApplianceWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/importappliance/UIImportApplianceWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIKeyboardHandlerNormal.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineLogicFullscreen.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineWindowFullscreen.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineViewFullscreen.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIKeyboardHandlerSeamless.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineLogicSeamless.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineWindowSeamless.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineViewSeamless.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCHDRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Sources containing local definitions of classes that use the Q_OBJECT macro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCSRCS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_XPCOM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),win)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/registration/UIRegistrationWzd.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsGeneral.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsUpdate.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsLanguage.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsNetwork.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsNetworkDetails.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSBFilterDetails.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/exportappliance/UIExportApplianceWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/importappliance/UIImportApplianceWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIKeyboardHandlerNormal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineWindowNormal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineLogicSeamless.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineWindowSeamless.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/seamless/UIMachineViewSeamless.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIKeyboardHandlerScale.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ifndef VBOX_OSE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCHDRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/registration/UIRegistrationWzd.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_COCOA_QT
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_DARWIN_USE_NATIVE_CONTROLS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# The Qt modules we're using.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# (The include directory and lib/framework for each module will be added by the Qt4 unit.)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MODULES = Core Gui Network
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MODULES += OpenGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Import QDesigner UI sources and translations from VBoxUI.pro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifndef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin FORMS := $(filter-out src/wizards/registration/UIRegistrationWzdPage1.ui,$(FORMS))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$(eval VirtualBox_SOURCES += $(FORMS))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES += VirtualBox1.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES += VirtualBox2.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),darwin)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += VirtualBoxMac.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += VirtualBoxOther.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += VirtualBoxShaders.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Compress the translation units.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LRCFLAGS = -silent
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin## @todo how to detect what tool is used?
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill# more generic -Wno-extra
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrillifdef VBOX_WITH_XPCOM
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill# Generate the COM wrappers.
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill## @todo This needs some cleaning up perhaps...
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill## @todo kBuild: Non-existing +| targets should be tried remade or what?
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan CantrillVirtualBox_BLDDIRS += $(PATH_VirtualBox)/include
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan CantrillVirtualBox_INTERMEDIATES += $(PATH_VirtualBox)/include/COMWrappers.h
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan CantrillVirtualBox_CLEAN += \
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill $(PATH_VirtualBox)/include/COMWrappers \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBox)/include/COMWrappers.tmp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBox)/include/COMWrappers.h \
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka $(PATH_VirtualBox)/include/COMWrappers.cpp
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel TelkaVirtualBox_SOURCES += $(PATH_VirtualBox)/include/COMWrappers.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$$(PATH_VirtualBox)/include/COMWrappers \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin+| $$(PATH_VirtualBox)/include/COMWrappers.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin+| $$(PATH_VirtualBox)/include/COMWrappers.cpp: \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_XIDL_FILE) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin | $$(dir $$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_GENERATE,VirtualBox,$<,$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(RM) -f $@ $@.tmp $@.h $@.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin --output $@.tmp $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(CP) --changed $@.tmp $@.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(APPEND) -t -n $@.tmp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/^inline //' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin --append $@.tmp $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(CP) --changed $@.tmp $@.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(RM) -f $@.tmp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# alias for generating the COM Wrappers file.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinintestwrappers:: $$(PATH_VirtualBox)/include/COMWrappers.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Generate qrc file with branded icons.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin | $$(dir $$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_GENERATE,VirtualBox,$<,$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin --output $@ \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Precompiled header - non-functional atm.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_PRECOMPILED_HEADERS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinintstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_SUB_CURRENT)/src/precomp.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin | $$(dir $$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin time 'g++-4.0' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-missing-field-initializers' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-trigraphs' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fno-exceptions' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-non-virtual-dtor' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-long-long' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fshort-wchar' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fno-strict-aliasing' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fvisibility=hidden' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DRT_USE_VISIBILITY_DEFAULT' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fvisibility-inlines-hidden' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Winvalid-pch' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fpch-preprocess' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-F$(PATH_SDK_QT4)/Frameworks' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-mmacosx-version-min=10.5' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-isysroot' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-I$(PATH_ROOT)/include' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-I$(PATH_OUT)' \
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka '-DVBOX_WITH_DEBUGGER' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_64_BITS_GUESTS' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DRT_OS_DARWIN' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-D__DARWIN__' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DRT_ARCH_X86' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-D__X86__' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DIN_RING3' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_NO_DEBUG' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_THREAD_SUPPORT' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_SHARED' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DHAVE_CONFIG_H' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DHC_ARCH_BITS=32' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DGC_ARCH_BITS=64' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_XPCOM' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_REGISTRATION' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_REGISTRATION_REQUEST' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_UPDATE_REQUEST' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_ALSA' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_PULSE' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_E1000' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_NETFLT' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_DEBUGGER_GUI' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_VIDEOHWACCEL' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_GUI_USE_QGL' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_VIRTIO' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_WITH_PRECOMPILED_HEADERS' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_CORE_LIB' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_GUI_LIB' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_NETWORK_LIB' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DQT_OPENGL_LIB' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_GUI_USE_QUARTZ2D' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-DVBOX_GUI_USE_QIMAGE' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),win)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# On Windows we'll have to generate/edit part of the resource file.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# The IDI_ICON1 name is Qt specific.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininsrc/win/VirtualBox.rc_INCS = $(PATH_VirtualBox)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininsrc/win/VirtualBox.rc_DEPS = $(PATH_VirtualBox)/VirtualBox-icon.rc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininsrc/win/VirtualBox.rc_CLEAN = $(PATH_VirtualBox)/VirtualBox-icon.rc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$$(PATH_VirtualBox)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),darwin)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Create directories for each approved language or the application
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# menu won't be translated.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$$(PATH_VirtualBox.app)/Info.plist: $(PATH_SUB_CURRENT)/src/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_GENERATE,VirtualBox.app,$<,$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(RM) -f $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBoxVM.app)/VM-Info.plist=>Info.plist
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin MacOS=>../../../MacOS/ \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin Resources=>../../../Resources/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$$(PATH_VirtualBoxVM.app)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(RM) -f $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin --output $@ $<
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif # darwin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# App for testing GL support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin if1of ($(KBUILD_TARGET), win linux)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin LIBRARIES += VBoxOGL2D
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_TEMPLATE = VBOXR3STATIC
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_USES = qt4
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_SDKS = QT4
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_QT_MODULES += OpenGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_INCS = include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Testcase for the darwin keyboard routines.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_TESTCASES
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininPROGRAMS.darwin += tstDarwinKeyboard
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_NAME = tstDarwinKeyboard
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_INCS = include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_LIBS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(LIB_RUNTIME)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Unset everything that was loaded from VBoxUI.pro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininTEMPLATE := $(SAVED_TEMPLATE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSAVED_TEMPLATE :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininTRANSLATIONS :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Commit the magic.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# (note: before custom rules that make usage of generated variables!).
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(KBUILD_PATH)/subfooter.kmk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Update all known NLS translation (.ts) files in the nls/ subdirectory.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# NOTE: This target is intended to be run only by the GUI maintainer shortly
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# before a new product release. VirtualBox_xx_YY.ts is a template for new
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# languages and should never be actually translated or installed.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# lupdate call
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininupdatenls:: makeallnls nls/VirtualBox_en.ts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininmakeallnls:: \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_L1,lupdate all languages (nls/*.ts))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(TOOL_QT4_LUPDATE) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Create the English translation file. This is something special cause it will
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# contain the plural forms only.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(call MSG_L1,lupdate $@)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(TOOL_QT4_LUPDATE) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) -n -i -e \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \