Makefile.kmk revision efda5c4c4db213abd0692df0ea34a26f6230d59a
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# $Id$
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin## @file
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Makefile for the VirtualBox Qt GUI.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Copyright (C) 2006-2010 Oracle Corporation
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSUB_DEPTH = ../../../..
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(KBUILD_PATH)/subheader.kmk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Globals.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# VBOX_WITH_REGISTRATION := 1
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# For now this should be disabled in any case
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_WITH_REGISTRATION=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION_REQUEST
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_WITH_REGISTRATION_REQUEST=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# The targets.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_HARDENING
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininPROGRAMS += VirtualBoxHardened
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininDLLS += VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininelse
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininPROGRAMS += VirtualBox
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininINSTALLS += VirtualBox.nls
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Include the language lists.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Hardened VirtualBox.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Include Qt project file, we'll use FORMS and TRANSLATIONS in
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# the VirtualBox setup below.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSAVED_TEMPLATE := $(TEMPLATE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinininclude $(PATH_SUB_CURRENT)/VBoxUI.pro
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# VirtualBox - The GUI program.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininUSES += qt4
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SDKS.win = WINPSDK DXSDK
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SDKS += LIBSDL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 Kruchininendif
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifneq ($(KBUILD_TYPE),release)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin # non-release builds has some extra features.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
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 Kruchinin endif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_VIRTIO
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_WITH_VIRTIO
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOXWDDM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOXWDDM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
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 KruchininVirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_src/main.cpp_DEFS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVBOX_GUI_INC_DIRS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/globals \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/extensions \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/settings \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/settings/global \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/settings/vm \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/newvm \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/newhd \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/firstrun \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/exportappliance \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/importappliance \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/widgets \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/X11 \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/darwin \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/selector \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/runtime \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/runtime/normal \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/runtime/fullscreen \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/runtime/seamless \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/runtime/scale
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBOX_GUI_INC_DIRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ./src/wizards/registration
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_INCS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_GUI_INC_DIRS) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBox)/include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Necessary for the hdd backend enumeration
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS = $(LIB_DDU)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# This library is required for multi-monitor support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS.linux += Xinerama
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS.solaris += Xinerama
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS.freebsd += Xinerama
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_VIDEOHWACCEL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Necessary for save state support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS += $(LIB_VMM)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TYPE),release)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininelse
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ifeq ($(USERNAME),dmik)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin else
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin endif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LDFLAGS.darwin = \
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LDFLAGS.darwin += -framework OpenGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_LIBS.win = \
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LIBS.solaris += GL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_LIBS.linux += GL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Headers containing definitions of classes that use the Q_OBJECT macro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCHDRS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxAboutDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxCloseVMDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxGlobalSettings.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxMediaManagerDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxSnapshotDetailsDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxTakeSnapshotDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxUpdateDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxVMInformationDlg.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxVMLogViewer.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxGlobal.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxProblemReporter.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxUtils.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIMainEventListener.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIExtraDataEventHandler.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIAdvancedSlider.h \
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka src/extensions/QIArrowButtonPress.h \
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka src/extensions/QIArrowButtonSwitch.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIArrowSplitter.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIDialog.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIFileDialog.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIHotKeyEdit.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIHttp.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QILabel.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QILabelSeparator.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIListView.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIMainDialog.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIMessageBox.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIRichToolButton.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QISplitter.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIStateIndicator.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIStatusBar.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QITabWidget.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIToolButton.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QITreeView.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QITreeWidget.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIWidgetValidator.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIWizard.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsDialog.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsDialogSpecific.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsPage.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsSelector.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsGeneral.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsInput.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsUpdate.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsLanguage.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsNetwork.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsNetworkDetails.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsGeneral.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSystem.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsDisplay.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsHD.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsAudio.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsNetwork.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSerial.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsParallel.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSB.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSBFilterDetails.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSF.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSFDetails.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/newvm/UINewVMWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/newhd/UINewHDWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/firstrun/UIFirstRunWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/exportappliance/UIExportApplianceWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/importappliance/UIImportApplianceWzd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIBar.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloader.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloaderAdditions.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloaderUserManual.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIPopupBox.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UISpacerWidgets.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UISpecialControls.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxApplianceEditorWgt.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxBootTable.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxExportApplianceWgt.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxFilePathSelectorWidget.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxImportApplianceWgt.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxLineTextEdit.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxMediaComboBox.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxMiniToolBar.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxOSTypeSelectorButton.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxOSTypeSelectorWidget.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxProgressDialog.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxWarningPane.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMDesktop.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMListView.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMPreviewWindow.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVirtualBoxEventHandler.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/VBoxSelectorWnd.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/VBoxSnapshotsWgt.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachine.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UISession.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIActionsPool.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIIndicatorsPool.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIKeyboardHandler.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMouseHandler.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineLogic.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineView.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMultiScreenLayout.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIConsoleEventHandler.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIKeyboardHandlerNormal.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineLogicNormal.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineWindowNormal.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineViewNormal.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 Kruchinin src/runtime/scale/UIKeyboardHandlerScale.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIMachineLogicScale.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIMachineWindowScale.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIMachineViewScale.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCHDRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/registration/UIRegistrationWzd.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Sources containing local definitions of classes that use the Q_OBJECT macro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCSRCS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxMediaManagerDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIExtraDataEventHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QISplitter.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMDesktop.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIActionsPool.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIIndicatorsPool.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachine.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineLogic.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineMenuBar.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_XPCOM
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/COMDefs.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),win)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIFileDialog.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCSRCS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/registration/UIRegistrationWzd.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/main.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxAboutDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxCloseVMDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxGlobalSettings.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxHelpActions.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxMediaManagerDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxMedium.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxSnapshotDetailsDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxTakeSnapshotDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxUpdateDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxVMInformationDlg.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxVMLogViewer.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/COMDefs.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxDefs.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxGlobal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/VBoxProblemReporter.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIIconPool.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIMainEventListener.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIExtraDataEventHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/globals/UIImageTools.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIAdvancedSlider.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIArrowButtonPress.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIArrowButtonSwitch.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIArrowSplitter.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIDialog.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIDialogButtonBox.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIFileDialog.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIHotKeyEdit.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QILabel.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QILabelSeparator.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QILineEdit.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIListView.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIMainDialog.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIMessageBox.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIRichToolButton.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QISplitter.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIStateIndicator.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIStatusBar.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QITreeView.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QITreeWidget.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIWidgetValidator.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/extensions/QIWizard.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsDialog.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsDialogSpecific.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/VBoxSettingsSelector.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsGeneral.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/global/VBoxGLSettingsInput.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/VBoxVMSettingsGeneral.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSystem.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsDisplay.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsHD.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsAudio.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsNetwork.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSerial.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsParallel.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSB.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsUSBFilterDetails.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSF.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/settings/vm/VBoxVMSettingsSFDetails.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/newvm/UINewVMWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/newhd/UINewHDWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/firstrun/UIFirstRunWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/exportappliance/UIExportApplianceWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/importappliance/UIImportApplianceWzd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIBar.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloader.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloaderAdditions.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIDownloaderUserManual.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UIPopupBox.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/UISpecialControls.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxApplianceEditorWgt.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxBootTable.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxExportApplianceWgt.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxFilePathSelectorWidget.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxGuestRAMSlider.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxImportApplianceWgt.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxLineTextEdit.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxMediaComboBox.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxMiniToolBar.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxOSTypeSelectorButton.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxOSTypeSelectorWidget.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxProgressDialog.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/widgets/VBoxWarningPane.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMDesktop.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMItem.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMListView.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVMPreviewWindow.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/UIVirtualBoxEventHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/VBoxSelectorWnd.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/selector/VBoxSnapshotsWgt.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachine.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UISession.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIActionsPool.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIIndicatorsPool.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIKeyboardHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMouseHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBuffer.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBufferQGL.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBufferQImage.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBufferSDL.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineLogic.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineWindow.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineView.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMachineMenuBar.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIMultiScreenLayout.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIConsoleEventHandler.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIKeyboardHandlerNormal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineLogicNormal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineWindowNormal.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/normal/UIMachineViewNormal.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 Kruchinin src/runtime/scale/UIMachineLogicScale.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIMachineWindowScale.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/scale/UIMachineViewScale.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES.win += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBufferDirectDraw.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES.darwin += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/runtime/UIFrameBufferQuartz2D.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/UIAbstractDockIconPreview.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/UICocoaDockIconPreview.mm
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ifndef VBOX_OSE
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCHDRS += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin else
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin endif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/X11/XKeyboard-new.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/X11/VBoxX11Helper.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininelse
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.h \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxLicenseViewer.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_REGISTRATION
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/wizards/registration/UIRegistrationWzd.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES.win += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/win/VirtualBox.rc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES.darwin += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/DarwinKeyboard.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/VBoxUtils-darwin.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_ICHAT_THEATER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES.darwin += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/VBoxIChatTheaterWrapper.m
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifdef VBOX_WITH_COCOA_QT
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_DEFS += VBOX_DARWIN_USE_NATIVE_CONTROLS
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES.darwin += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/CocoaEventHelper.mm \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/UICocoaApplication.mm \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/VBoxUtils-darwin-cocoa.mm \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/UICocoaSpecialControls.mm
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MOCHDRS.darwin = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/UICocoaSpecialControls.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxFBQGL.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxFBOverlay.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/VBoxGLSupportInfo.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
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 Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininif defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_QT_MODULES += OpenGL
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin$(eval VirtualBox_SOURCES += $(FORMS))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES += VirtualBox1.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox1.qrc_RCCFLAGS = -name BASIC1
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox_SOURCES += VirtualBox2.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox2.qrc_RCCFLAGS = -name BASIC2
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),darwin)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += VirtualBoxMac.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBoxMac.qrc_RCCFLAGS = -name MAC
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininelse
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBox_SOURCES += VirtualBoxOther.qrc
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
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 Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka
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 Cantrillendif
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill#
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill# Generate the COM wrappers.
5cd496e3c5514951ae23bdd897cb29b202e2ff62Bryan Cantrill#
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
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin --output $@.tmp $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(CP) --changed $@.tmp $@.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(QUIET)$(APPEND) -t -n $@.tmp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '/*' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ' */' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '#include "VBoxGlobal.h"' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin ''
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# alias for generating the COM Wrappers file.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinintestwrappers:: $$(PATH_VirtualBox)/include/COMWrappers.h
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Generate qrc file with branded icons.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 $<
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Precompiled header - non-functional atm.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinintstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 '-c' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-g' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-pipe' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wall' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wextra' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-missing-field-initializers' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-trigraphs' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-frtti' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-fno-exceptions' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-non-virtual-dtor' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-Wno-long-long' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin \
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 \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-F$(PATH_SDK_QT4)/Frameworks' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-mmacosx-version-min=10.5' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-isysroot' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '/Developer/SDKs/MacOSX10.5.sdk' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-m32' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-I$(PATH_ROOT)/include' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin '-I$(PATH_OUT)' \
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka '-DVBOX' \
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 Kruchinin '-o' $@ $<
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),win)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 Kruchinin#
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
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 Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif # win
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininifeq ($(KBUILD_TARGET),darwin)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Create directories for each approved language or the application
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# menu won't be translated.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininINSTALLS += VirtualBox.lproj
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.lproj_MODE = 755
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininINSTALLS += VirtualBox.app
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.app_MODE = 644
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBox.app_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/PkgInfo \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBox.app)/Info.plist \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 Kruchinin $< > $@
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininINSTALLS += VirtualBoxVM.app
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxVM.app_MODE = 644
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxVM.app_SOURCES = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/VM-PkgInfo=>PkgInfo \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(PATH_VirtualBoxVM.app)/VM-Info.plist=>Info.plist
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininVirtualBoxVM.app_SYMLINKS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin MacOS=>../../../MacOS/ \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin Resources=>../../../Resources/
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# App for testing GL support
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 src/VBoxGLSupportInfo.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin VBoxOGL2D_INCS = include
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin endif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Testcase for the darwin keyboard routines.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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 Kruchinin src/darwin/tstDarwinKeyboard.cpp \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/DarwinKeyboard.cpp
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_SOURCES.amd64 = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin src/darwin/CocoaEventHelper.mm
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchinintstDarwinKeyboard_LIBS = \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(LIB_RUNTIME)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininendif
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Unset everything that was loaded from VBoxUI.pro.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininTEMPLATE := $(SAVED_TEMPLATE)
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininSAVED_TEMPLATE :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininLANGUAGE :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininFORMS :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininTRANSLATIONS :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan KruchininIMAGES :=
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Update all known NLS translation (.ts) files in the nls/ subdirectory.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#
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#
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#
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininupdatenls:: makeallnls nls/VirtualBox_en.ts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
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 $^ \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -ts \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin nls/VirtualBox_xx_YY.ts
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# Create the English translation file. This is something special cause it will
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin# contain the plural forms only.
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchininnls/VirtualBox_en.ts: \
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 $^ \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin -ts \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $@
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}' \
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin $@
745caa4284ab4cda9ab810405f99417d7cc6e8e6Marcel Telka
bbaa8b60dd95d714741fc474adad3cf710ef4efdDan Kruchinin