VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk@ 32876

Last change on this file since 32876 was 32835, checked in by vboxsync, 14 years ago

FE/Qt4: reordering

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 31.4 KB
Line 
1# $Id: Makefile.kmk 32835 2010-09-30 08:02:49Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Globals.
23#
24VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
25VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
26
27# VBOX_WITH_REGISTRATION := 1
28
29# Ask the user to register at Sun. If this setting is disabled the user can
30# still register using the menu if desired.
31# VBOX_WITH_REGISTRATION_REQUEST := 1
32
33# For now this should be disabled in any case
34ifdef VBOX_WITH_REGISTRATION
35 VBOX_WITH_REGISTRATION=
36endif
37ifdef VBOX_WITH_REGISTRATION_REQUEST
38 VBOX_WITH_REGISTRATION_REQUEST=
39endif
40
41# Show the update notifier dialog during startup. If this setting is disabled
42# the user can still update using the menu if desired.
43ifndef VBOX_OSE
44VBOX_WITH_UPDATE_REQUEST := 1
45endif
46
47#
48# The targets.
49#
50ifdef VBOX_WITH_HARDENING
51PROGRAMS += VirtualBoxHardened
52DLLS += VirtualBox
53else
54PROGRAMS += VirtualBox
55endif
56
57INSTALLS += VirtualBox.nls
58
59
60#
61# Include the language lists.
62#
63include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
64
65
66#
67# Hardened VirtualBox.
68#
69VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
70VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
71VirtualBoxHardened_NAME = VirtualBox
72VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
73
74
75#
76# Include Qt project file, we'll use FORMS and TRANSLATIONS in
77# the VirtualBox setup below.
78#
79SAVED_TEMPLATE := $(TEMPLATE)
80include $(PATH_SUB_CURRENT)/VBoxUI.pro
81
82
83#
84# VirtualBox - The GUI program.
85#
86USES += qt4
87VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
88VirtualBox_NAME = VirtualBox
89ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
90 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
91endif
92VirtualBox_SDKS.win = WINPSDK DXSDK
93if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris
94 VirtualBox_SDKS += LIBSDL
95endif
96
97ifdef VBOX_WITH_ICHAT_THEATER
98 # For testing iChat Theater stuff change the sdk path (HACK ALERT!)
99 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
100endif
101
102VirtualBox_DEFS =
103VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
104VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE
105ifndef VBOX_WITH_COCOA_QT
106VirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS
107endif
108VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
109VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
110VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
111VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
112VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
113VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
114ifdef VBOX_WITH_ICHAT_THEATER
115 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
116endif
117ifneq ($(KBUILD_TYPE),release)
118 # non-release builds has some extra features.
119 VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
120endif
121VirtualBox_DEFS += \
122 $(if $(VBOX_WITH_REGISTRATION),VBOX_WITH_REGISTRATION) \
123 $(if $(VBOX_WITH_REGISTRATION_REQUEST),VBOX_WITH_REGISTRATION_REQUEST) \
124 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
125 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
126 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
127 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
128 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
129 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
130 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
131 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI)
132ifdef VBOX_WITH_DEBUGGER_GUI
133 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
134 if "$(KBUILD_TYPE)" != "release"
135 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
136 endif
137endif
138ifdef VBOX_WITH_VIDEOHWACCEL
139 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
140 VBOX_GUI_USE_QGL
141else ifdef VBOX_GUI_USE_QGL
142 VirtualBox_DEFS += VBOX_GUI_USE_QGL
143endif
144ifdef VBOX_WITH_VIRTIO
145 VirtualBox_DEFS += VBOX_WITH_VIRTIO
146endif
147ifdef VBOX_WITH_WDDM
148 VirtualBox_DEFS += VBOX_WITH_WDDM
149endif
150ifdef VBOX_BLEEDING_EDGE
151VirtualBox_src/selector/VBoxSelectorWnd.cpp_DEFS += \
152 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
153VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
154 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
155VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
156 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
157VirtualBox_src/main.cpp_DEFS += \
158 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
159endif
160
161
162VBOX_GUI_INC_DIRS = \
163 ./src \
164 ./src/globals \
165 ./src/extensions \
166 ./src/settings \
167 ./src/settings/global \
168 ./src/settings/vm \
169 ./src/wizards/newvm \
170 ./src/wizards/newhd \
171 ./src/wizards/firstrun \
172 ./src/wizards/exportappliance \
173 ./src/wizards/importappliance \
174 ./src/widgets \
175 ./src/X11 \
176 ./src/darwin \
177 ./src/selector \
178 ./src/runtime \
179 ./src/runtime/fullscreen \
180 ./src/runtime/normal \
181 ./src/runtime/scale \
182 ./src/runtime/seamless
183
184ifdef VBOX_WITH_REGISTRATION
185 VBOX_GUI_INC_DIRS += \
186 ./src/wizards/registration
187endif
188
189VirtualBox_INCS = \
190 $(VBOX_GUI_INC_DIRS) \
191 $(PATH_VirtualBox)/include
192
193# Necessary for the hdd backend enumeration
194VirtualBox_LIBS = $(LIB_DDU)
195
196# This library is required for multi-monitor support
197VirtualBox_LIBS.linux += Xinerama
198VirtualBox_LIBS.solaris += Xinerama
199VirtualBox_LIBS.freebsd += Xinerama
200
201ifdef VBOX_WITH_VIDEOHWACCEL
202# Necessary for save state support
203VirtualBox_LIBS += $(LIB_VMM)
204endif
205ifeq ($(KBUILD_TYPE),release)
206 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
207else
208 VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
209 ifeq ($(USERNAME),dmik)
210 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
211 else
212 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
213 endif
214endif
215
216if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
217 VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
218endif
219
220VirtualBox_LDFLAGS.darwin = \
221 -framework AppKit -framework Carbon \
222 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
223ifdef VBOX_WITH_ICHAT_THEATER
224 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
225endif
226if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
227 VirtualBox_LDFLAGS.darwin += -framework OpenGL
228endif
229
230VirtualBox_LIBS.win = \
231 $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
232 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
233 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
234if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
235 VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
236endif
237
238if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
239 VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
240 VirtualBox_LIBS.solaris += GL
241 VirtualBox_LIBS.linux += GL
242 VirtualBox_LIBS.freebsd += GL
243endif
244
245# Headers containing definitions of classes that use the Q_OBJECT macro.
246VirtualBox_QT_MOCHDRS = \
247 src/VBoxAboutDlg.h \
248 src/VBoxGlobalSettings.h \
249 src/VBoxMediaManagerDlg.h \
250 src/VBoxSnapshotDetailsDlg.h \
251 src/VBoxTakeSnapshotDlg.h \
252 src/VBoxUpdateDlg.h \
253 src/VBoxVMInformationDlg.h \
254 src/VBoxVMLogViewer.h \
255 src/globals/VBoxGlobal.h \
256 src/globals/VBoxProblemReporter.h \
257 src/globals/VBoxUtils.h \
258 src/globals/UIMainEventListener.h \
259 src/globals/UIExtraDataEventHandler.h \
260 src/extensions/QIAdvancedSlider.h \
261 src/extensions/QIArrowButtonPress.h \
262 src/extensions/QIArrowButtonSwitch.h \
263 src/extensions/QIArrowSplitter.h \
264 src/extensions/QIDialog.h \
265 src/extensions/QIFileDialog.h \
266 src/extensions/QIHotKeyEdit.h \
267 src/extensions/QIHttp.h \
268 src/extensions/QILabel.h \
269 src/extensions/QILabelSeparator.h \
270 src/extensions/QIListView.h \
271 src/extensions/QIMainDialog.h \
272 src/extensions/QIMessageBox.h \
273 src/extensions/QIRichToolButton.h \
274 src/extensions/QISplitter.h \
275 src/extensions/QIStateIndicator.h \
276 src/extensions/QIStatusBar.h \
277 src/extensions/QITabWidget.h \
278 src/extensions/QIToolButton.h \
279 src/extensions/QITableView.h \
280 src/extensions/QITreeView.h \
281 src/extensions/QITreeWidget.h \
282 src/extensions/QIWidgetValidator.h \
283 src/extensions/QIWizard.h \
284 src/settings/UISettingsDialog.h \
285 src/settings/UISettingsDialogSpecific.h \
286 src/settings/UISettingsPage.h \
287 src/settings/VBoxSettingsSelector.h \
288 src/settings/global/VBoxGLSettingsGeneral.h \
289 src/settings/global/VBoxGLSettingsInput.h \
290 src/settings/global/VBoxGLSettingsUpdate.h \
291 src/settings/global/VBoxGLSettingsLanguage.h \
292 src/settings/global/VBoxGLSettingsNetwork.h \
293 src/settings/global/VBoxGLSettingsNetworkDetails.h \
294 src/settings/vm/VBoxVMSettingsGeneral.h \
295 src/settings/vm/VBoxVMSettingsSystem.h \
296 src/settings/vm/VBoxVMSettingsDisplay.h \
297 src/settings/vm/VBoxVMSettingsHD.h \
298 src/settings/vm/VBoxVMSettingsAudio.h \
299 src/settings/vm/VBoxVMSettingsNetwork.h \
300 src/settings/vm/VBoxVMSettingsPortForwardingDlg.h \
301 src/settings/vm/VBoxVMSettingsSerial.h \
302 src/settings/vm/VBoxVMSettingsParallel.h \
303 src/settings/vm/VBoxVMSettingsUSB.h \
304 src/settings/vm/VBoxVMSettingsUSBFilterDetails.h \
305 src/settings/vm/VBoxVMSettingsSF.h \
306 src/settings/vm/VBoxVMSettingsSFDetails.h \
307 src/wizards/newvm/UINewVMWzd.h \
308 src/wizards/newhd/UINewHDWzd.h \
309 src/wizards/firstrun/UIFirstRunWzd.h \
310 src/wizards/exportappliance/UIExportApplianceWzd.h \
311 src/wizards/importappliance/UIImportApplianceWzd.h \
312 src/widgets/UIBar.h \
313 src/widgets/UIDownloader.h \
314 src/widgets/UIDownloaderAdditions.h \
315 src/widgets/UIDownloaderUserManual.h \
316 src/widgets/UIPopupBox.h \
317 src/widgets/UISpacerWidgets.h \
318 src/widgets/UISpecialControls.h \
319 src/widgets/VBoxApplianceEditorWgt.h \
320 src/widgets/VBoxBootTable.h \
321 src/widgets/VBoxExportApplianceWgt.h \
322 src/widgets/VBoxFilePathSelectorWidget.h \
323 src/widgets/VBoxImportApplianceWgt.h \
324 src/widgets/VBoxLineTextEdit.h \
325 src/widgets/VBoxMediaComboBox.h \
326 src/widgets/VBoxMiniToolBar.h \
327 src/widgets/VBoxOSTypeSelectorButton.h \
328 src/widgets/VBoxOSTypeSelectorWidget.h \
329 src/widgets/VBoxProgressDialog.h \
330 src/widgets/VBoxWarningPane.h \
331 src/selector/UIVMDesktop.h \
332 src/selector/UIVMListView.h \
333 src/selector/UIVMPreviewWindow.h \
334 src/selector/UIVirtualBoxEventHandler.h \
335 src/selector/VBoxSelectorWnd.h \
336 src/selector/VBoxSnapshotsWgt.h \
337 src/runtime/UIActionsPool.h \
338 src/runtime/UIConsoleEventHandler.h \
339 src/runtime/UIIndicatorsPool.h \
340 src/runtime/UIKeyboardHandler.h \
341 src/runtime/UIMachine.h \
342 src/runtime/UIMachineLogic.h \
343 src/runtime/UIMachineView.h \
344 src/runtime/UIMouseHandler.h \
345 src/runtime/UIMultiScreenLayout.h \
346 src/runtime/UISession.h \
347 src/runtime/UIVMCloseDialog.h \
348 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
349 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
350 src/runtime/fullscreen/UIMachineViewFullscreen.h \
351 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
352 src/runtime/normal/UIKeyboardHandlerNormal.h \
353 src/runtime/normal/UIMachineLogicNormal.h \
354 src/runtime/normal/UIMachineViewNormal.h \
355 src/runtime/normal/UIMachineWindowNormal.h \
356 src/runtime/scale/UIKeyboardHandlerScale.h \
357 src/runtime/scale/UIMachineLogicScale.h \
358 src/runtime/scale/UIMachineViewScale.h \
359 src/runtime/scale/UIMachineWindowScale.h \
360 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
361 src/runtime/seamless/UIMachineLogicSeamless.h \
362 src/runtime/seamless/UIMachineViewSeamless.h \
363 src/runtime/seamless/UIMachineWindowSeamless.h
364
365VirtualBox_QT_MOCHDRS.darwin += \
366 src/darwin/UIWindowMenuManager.h
367
368# Sources containing local definitions of classes that use the Q_OBJECT macro.
369VirtualBox_QT_MOCSRCS = \
370 src/VBoxMediaManagerDlg.cpp \
371 src/globals/UIExtraDataEventHandler.cpp \
372 src/extensions/QISplitter.cpp \
373 src/selector/UIVMDesktop.cpp \
374 src/settings/vm/VBoxVMSettingsPortForwardingDlg.cpp \
375 src/runtime/UIActionsPool.cpp \
376 src/runtime/UIIndicatorsPool.cpp \
377 src/runtime/UIMachine.cpp \
378 src/runtime/UIMachineLogic.cpp \
379 src/runtime/UIMachineMenuBar.cpp
380
381VirtualBox_QT_MOCSRCS.darwin += \
382 src/darwin/UIWindowMenuManager.cpp
383VirtualBox_QT_MOCSRCS.win += \
384 src/extensions/QIFileDialog.cpp
385
386ifdef VBOX_WITH_REGISTRATION
387 VirtualBox_QT_MOCHDRS += \
388 src/wizards/registration/UIRegistrationWzd.h
389endif
390
391ifdef VBOX_WITH_XPCOM
392 VirtualBox_QT_MOCSRCS += \
393 src/globals/COMDefs.cpp
394endif
395
396ifdef VBOX_WITH_REGISTRATION
397 VirtualBox_QT_MOCSRCS += \
398 src/wizards/registration/UIRegistrationWzd.cpp
399endif
400
401VirtualBox_SOURCES = \
402 src/main.cpp \
403 src/VBoxAboutDlg.cpp \
404 src/VBoxGlobalSettings.cpp \
405 src/VBoxHelpActions.cpp \
406 src/VBoxMediaManagerDlg.cpp \
407 src/VBoxMedium.cpp \
408 src/VBoxSnapshotDetailsDlg.cpp \
409 src/VBoxTakeSnapshotDlg.cpp \
410 src/VBoxUpdateDlg.cpp \
411 src/VBoxVMInformationDlg.cpp \
412 src/VBoxVMLogViewer.cpp \
413 src/globals/COMDefs.cpp \
414 src/globals/VBoxDefs.cpp \
415 src/globals/VBoxGlobal.cpp \
416 src/globals/VBoxProblemReporter.cpp \
417 src/globals/UIIconPool.cpp \
418 src/globals/UIMainEventListener.cpp \
419 src/globals/UIExtraDataEventHandler.cpp \
420 src/globals/UIImageTools.cpp \
421 src/extensions/QIAdvancedSlider.cpp \
422 src/extensions/QIArrowButtonPress.cpp \
423 src/extensions/QIArrowButtonSwitch.cpp \
424 src/extensions/QIArrowSplitter.cpp \
425 src/extensions/QIDialog.cpp \
426 src/extensions/QIDialogButtonBox.cpp \
427 src/extensions/QIFileDialog.cpp \
428 src/extensions/QIHotKeyEdit.cpp \
429 src/extensions/QILabel.cpp \
430 src/extensions/QILabelSeparator.cpp \
431 src/extensions/QILineEdit.cpp \
432 src/extensions/QIListView.cpp \
433 src/extensions/QIMainDialog.cpp \
434 src/extensions/QIMessageBox.cpp \
435 src/extensions/QIRichToolButton.cpp \
436 src/extensions/QISplitter.cpp \
437 src/extensions/QIStateIndicator.cpp \
438 src/extensions/QIStatusBar.cpp \
439 src/extensions/QITableView.cpp \
440 src/extensions/QITreeView.cpp \
441 src/extensions/QITreeWidget.cpp \
442 src/extensions/QIWidgetValidator.cpp \
443 src/extensions/QIWizard.cpp \
444 src/settings/UISettingsDialog.cpp \
445 src/settings/UISettingsDialogSpecific.cpp \
446 src/settings/VBoxSettingsSelector.cpp \
447 src/settings/global/VBoxGLSettingsGeneral.cpp \
448 src/settings/global/VBoxGLSettingsInput.cpp \
449 src/settings/global/VBoxGLSettingsUpdate.cpp \
450 src/settings/global/VBoxGLSettingsLanguage.cpp \
451 src/settings/global/VBoxGLSettingsNetwork.cpp \
452 src/settings/global/VBoxGLSettingsNetworkDetails.cpp \
453 src/settings/vm/VBoxVMSettingsGeneral.cpp \
454 src/settings/vm/VBoxVMSettingsSystem.cpp \
455 src/settings/vm/VBoxVMSettingsDisplay.cpp \
456 src/settings/vm/VBoxVMSettingsHD.cpp \
457 src/settings/vm/VBoxVMSettingsAudio.cpp \
458 src/settings/vm/VBoxVMSettingsNetwork.cpp \
459 src/settings/vm/VBoxVMSettingsPortForwardingDlg.cpp \
460 src/settings/vm/VBoxVMSettingsSerial.cpp \
461 src/settings/vm/VBoxVMSettingsParallel.cpp \
462 src/settings/vm/VBoxVMSettingsUSB.cpp \
463 src/settings/vm/VBoxVMSettingsUSBFilterDetails.cpp \
464 src/settings/vm/VBoxVMSettingsSF.cpp \
465 src/settings/vm/VBoxVMSettingsSFDetails.cpp \
466 src/wizards/newvm/UINewVMWzd.cpp \
467 src/wizards/newhd/UINewHDWzd.cpp \
468 src/wizards/firstrun/UIFirstRunWzd.cpp \
469 src/wizards/exportappliance/UIExportApplianceWzd.cpp \
470 src/wizards/importappliance/UIImportApplianceWzd.cpp \
471 src/widgets/UIBar.cpp \
472 src/widgets/UIDownloader.cpp \
473 src/widgets/UIDownloaderAdditions.cpp \
474 src/widgets/UIDownloaderUserManual.cpp \
475 src/widgets/UIPopupBox.cpp \
476 src/widgets/UISpecialControls.cpp \
477 src/widgets/UIToolBar.cpp \
478 src/widgets/VBoxApplianceEditorWgt.cpp \
479 src/widgets/VBoxBootTable.cpp \
480 src/widgets/VBoxExportApplianceWgt.cpp \
481 src/widgets/VBoxFilePathSelectorWidget.cpp \
482 src/widgets/VBoxGuestRAMSlider.cpp \
483 src/widgets/VBoxImportApplianceWgt.cpp \
484 src/widgets/VBoxLineTextEdit.cpp \
485 src/widgets/VBoxMediaComboBox.cpp \
486 src/widgets/VBoxMiniToolBar.cpp \
487 src/widgets/VBoxOSTypeSelectorButton.cpp \
488 src/widgets/VBoxOSTypeSelectorWidget.cpp \
489 src/widgets/VBoxProgressDialog.cpp \
490 src/widgets/VBoxWarningPane.cpp \
491 src/selector/UIVMDesktop.cpp \
492 src/selector/UIVMItem.cpp \
493 src/selector/UIVMListView.cpp \
494 src/selector/UIVMPreviewWindow.cpp \
495 src/selector/UIVirtualBoxEventHandler.cpp \
496 src/selector/VBoxSelectorWnd.cpp \
497 src/selector/VBoxSnapshotsWgt.cpp \
498 src/runtime/UIActionsPool.cpp \
499 src/runtime/UIConsoleEventHandler.cpp \
500 src/runtime/UIFrameBuffer.cpp \
501 src/runtime/UIFrameBufferQGL.cpp \
502 src/runtime/UIFrameBufferQImage.cpp \
503 src/runtime/UIFrameBufferSDL.cpp \
504 src/runtime/UIIndicatorsPool.cpp \
505 src/runtime/UIKeyboardHandler.cpp \
506 src/runtime/UIMachine.cpp \
507 src/runtime/UIMachineLogic.cpp \
508 src/runtime/UIMachineMenuBar.cpp \
509 src/runtime/UIMachineView.cpp \
510 src/runtime/UIMachineWindow.cpp \
511 src/runtime/UIMouseHandler.cpp \
512 src/runtime/UIMultiScreenLayout.cpp \
513 src/runtime/UISession.cpp \
514 src/runtime/UIVMCloseDialog.cpp \
515 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
516 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
517 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
518 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
519 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
520 src/runtime/normal/UIMachineLogicNormal.cpp \
521 src/runtime/normal/UIMachineViewNormal.cpp \
522 src/runtime/normal/UIMachineWindowNormal.cpp \
523 src/runtime/scale/UIKeyboardHandlerScale.cpp \
524 src/runtime/scale/UIMachineLogicScale.cpp \
525 src/runtime/scale/UIMachineViewScale.cpp \
526 src/runtime/scale/UIMachineWindowScale.cpp \
527 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
528 src/runtime/seamless/UIMachineLogicSeamless.cpp \
529 src/runtime/seamless/UIMachineViewSeamless.cpp \
530 src/runtime/seamless/UIMachineWindowSeamless.cpp
531
532VirtualBox_SOURCES.win += \
533 src/runtime/UIFrameBufferDirectDraw.cpp
534VirtualBox_SOURCES.darwin += \
535 src/runtime/UIFrameBufferQuartz2D.cpp \
536 src/darwin/UIAbstractDockIconPreview.cpp \
537 src/darwin/UIWindowMenuManager.cpp \
538 src/darwin/UICocoaDockIconPreview.mm
539
540if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
541 ifndef VBOX_OSE
542 VirtualBox_QT_MOCHDRS += \
543 src/VBoxLicenseViewer.h
544 VirtualBox_SOURCES += \
545 src/VBoxLicenseViewer.cpp
546 else
547 VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
548 src/VBoxLicenseViewer.h \
549 src/VBoxLicenseViewer.cpp
550 endif
551 VirtualBox_SOURCES += \
552 src/X11/XKeyboard-new.cpp \
553 src/X11/VBoxX11Helper.cpp
554else
555 VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
556 src/VBoxLicenseViewer.h \
557 src/VBoxLicenseViewer.cpp
558endif
559
560ifdef VBOX_WITH_REGISTRATION
561 VirtualBox_SOURCES += \
562 src/wizards/registration/UIRegistrationWzd.cpp
563endif
564
565VirtualBox_SOURCES.win += \
566 src/win/VirtualBox.rc
567
568VirtualBox_SOURCES.darwin += \
569 src/darwin/DarwinKeyboard.cpp \
570 src/darwin/VBoxUtils-darwin.cpp
571
572ifdef VBOX_WITH_ICHAT_THEATER
573 VirtualBox_SOURCES.darwin += \
574 src/darwin/VBoxIChatTheaterWrapper.m
575endif
576
577ifdef VBOX_WITH_COCOA_QT
578 VirtualBox_DEFS += VBOX_DARWIN_USE_NATIVE_CONTROLS
579 VirtualBox_SOURCES.darwin += \
580 src/darwin/CocoaEventHelper.mm \
581 src/darwin/UICocoaApplication.mm \
582 src/darwin/VBoxUtils-darwin-cocoa.mm \
583 src/darwin/UICocoaSpecialControls.mm
584 VirtualBox_QT_MOCHDRS.darwin += \
585 src/darwin/UICocoaSpecialControls.h
586endif
587
588ifdef VBOX_GUI_WITH_SYSTRAY
589 VirtualBox_DEFS += VBOX_GUI_WITH_SYSTRAY
590 VirtualBox_QT_MOCHDRS += \
591 src/selector/VBoxTrayIcon.h
592 VirtualBox_SOURCES += \
593 src/selector/VBoxTrayIcon.cpp
594endif
595
596if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
597 VirtualBox_SOURCES += \
598 src/VBoxFBQGL.cpp \
599 src/VBoxFBOverlay.cpp \
600 src/VBoxGLSupportInfo.cpp
601endif
602# The Qt modules we're using.
603# (The include directory and lib/framework for each module will be added by the Qt4 unit.)
604VirtualBox_QT_MODULES = Core Gui Network
605
606if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
607 VirtualBox_QT_MODULES += OpenGL
608endif
609
610# Import QDesigner UI sources and translations from VBoxUI.pro.
611ifndef VBOX_WITH_REGISTRATION
612 FORMS := $(filter-out src/wizards/registration/UIRegistrationWzdPage1.ui,$(FORMS))
613endif
614$(eval VirtualBox_SOURCES += $(FORMS))
615
616# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
617VirtualBox_SOURCES += VirtualBox1.qrc
618VirtualBox1.qrc_RCCFLAGS = -name BASIC1
619VirtualBox_SOURCES += VirtualBox2.qrc
620VirtualBox2.qrc_RCCFLAGS = -name BASIC2
621ifeq ($(KBUILD_TARGET),darwin)
622 VirtualBox_SOURCES += VirtualBoxMac.qrc
623 VirtualBoxMac.qrc_RCCFLAGS = -name MAC
624else
625 VirtualBox_SOURCES += VirtualBoxOther.qrc
626 VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
627endif
628VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
629$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
630if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
631 VirtualBox_SOURCES += VirtualBoxShaders.qrc
632 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
633endif
634
635# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
636VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
637 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
638# Compress the translation units.
639VirtualBox_LRCFLAGS = -silent
640# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
641VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
642
643
644## @todo how to detect what tool is used?
645## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
646# more generic -Wno-extra
647# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
648ifdef VBOX_WITH_XPCOM
649 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
650endif
651
652
653#
654# Generate the COM wrappers.
655#
656## @todo This needs some cleaning up perhaps...
657## @todo kBuild: Non-existing +| targets should be tried remade or what?
658VirtualBox_BLDDIRS += $(PATH_VirtualBox)/include
659VirtualBox_INTERMEDIATES += $(PATH_VirtualBox)/include/COMWrappers.h
660VirtualBox_CLEAN += \
661 $(PATH_VirtualBox)/include/COMWrappers \
662 $(PATH_VirtualBox)/include/COMWrappers.tmp \
663 $(PATH_VirtualBox)/include/COMWrappers.h \
664 $(PATH_VirtualBox)/include/COMWrappers.cpp
665VirtualBox_SOURCES += $(PATH_VirtualBox)/include/COMWrappers.cpp
666
667$$(PATH_VirtualBox)/include/COMWrappers \
668+| $$(PATH_VirtualBox)/include/COMWrappers.h \
669+| $$(PATH_VirtualBox)/include/COMWrappers.cpp: \
670 $(VBOX_XIDL_FILE) \
671 $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
672 | $$(dir $$@)
673 $(call MSG_GENERATE,VirtualBox,$<,$@)
674 $(QUIET)$(RM) -f $@ [email protected] [email protected] [email protected]
675 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
676
677 $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
678 --output [email protected] $@
679 $(QUIET)$(CP) --changed [email protected] [email protected]
680
681 $(QUIET)$(APPEND) -t -n [email protected] \
682 '/*' \
683 ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
684 ' */' \
685 '' \
686 '#include "VBoxGlobal.h"' \
687 ''
688 $(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
689 -e 's/^inline //' \
690 --append [email protected] $@
691 $(QUIET)$(CP) --changed [email protected] [email protected]
692 $(QUIET)$(RM) -f [email protected]
693
694
695# alias for generating the COM Wrappers file.
696testwrappers:: $$(PATH_VirtualBox)/include/COMWrappers.h
697
698
699#
700# Generate qrc file with branded icons.
701#
702VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
703VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
704$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
705 $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
706 | $$(dir $$@)
707 $(call MSG_GENERATE,VirtualBox,$<,$@)
708 $(QUIET)$(SED) \
709 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
710 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
711 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
712 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
713 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
714 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
715 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
716 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
717 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
718 --output $@ \
719 $<
720
721
722#
723# Precompiled header - non-functional atm.
724#
725ifdef VBOX_WITH_PRECOMPILED_HEADERS
726VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
727VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
728VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
729VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
730
731tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
732
733$$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
734 $(PATH_SUB_CURRENT)/src/precomp.h \
735 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
736 $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
737 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
738 | $$(dir $$@)
739 time 'g++-4.0' \
740 '-c' \
741 '-g' \
742 $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
743 '-pipe' \
744 '-Wall' \
745 '-Wextra' \
746 '-Wno-missing-field-initializers' \
747 '-Wno-trigraphs' \
748 '-frtti' \
749 '-fno-exceptions' \
750 '-Wno-non-virtual-dtor' \
751 '-Wno-long-long' \
752 \
753 '-fshort-wchar' \
754 '-fno-strict-aliasing' \
755 '-fvisibility=hidden' \
756 '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
757 '-DRT_USE_VISIBILITY_DEFAULT' \
758 '-fvisibility-inlines-hidden' \
759 '-Winvalid-pch' \
760 '-fpch-preprocess' \
761 \
762 '-F$(PATH_SDK_QT4)/Frameworks' \
763 '-mmacosx-version-min=10.5' \
764 '-isysroot' \
765 '/Developer/SDKs/MacOSX10.5.sdk' \
766 '-m32' \
767 \
768 $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
769 '-I$(PATH_ROOT)/include' \
770 '-I$(PATH_OUT)' \
771 '-DVBOX' \
772 '-DVBOX_WITH_DEBUGGER' \
773 '-DVBOX_WITH_64_BITS_GUESTS' \
774 $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
775 '-DRT_OS_DARWIN' \
776 '-D__DARWIN__' \
777 '-DRT_ARCH_X86' \
778 '-D__X86__' \
779 '-DIN_RING3' \
780 '-DQT_NO_DEBUG' \
781 '-DQT_THREAD_SUPPORT' \
782 '-DQT_SHARED' \
783 '-DHAVE_CONFIG_H' \
784 '-DHC_ARCH_BITS=32' \
785 '-DGC_ARCH_BITS=64' \
786 '-DVBOX_WITH_XPCOM' \
787 '-DVBOX_WITH_REGISTRATION' \
788 '-DVBOX_WITH_REGISTRATION_REQUEST' \
789 '-DVBOX_WITH_UPDATE_REQUEST' \
790 '-DVBOX_WITH_ALSA' \
791 '-DVBOX_WITH_PULSE' \
792 '-DVBOX_WITH_E1000' \
793 '-DVBOX_WITH_NETFLT' \
794 '-DVBOX_WITH_DEBUGGER_GUI' \
795 $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
796 '-DVBOX_WITH_VIDEOHWACCEL' \
797 '-DVBOX_GUI_USE_QGL' \
798 '-DVBOX_WITH_VIRTIO' \
799 '-DVBOX_WITH_PRECOMPILED_HEADERS' \
800 '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
801 '-DQT_CORE_LIB' \
802 '-DQT_GUI_LIB' \
803 '-DQT_NETWORK_LIB' \
804 '-DQT_OPENGL_LIB' \
805 '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
806 '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
807 '-DVBOX_GUI_USE_QUARTZ2D' \
808 '-DVBOX_GUI_USE_QIMAGE' \
809 '-o' $@ $<
810endif
811
812ifeq ($(KBUILD_TARGET),win)
813#
814# On Windows we'll have to generate/edit part of the resource file.
815# The IDI_ICON1 name is Qt specific.
816#
817src/win/VirtualBox.rc_INCS = $(PATH_VirtualBox)
818src/win/VirtualBox.rc_DEPS = $(PATH_VirtualBox)/VirtualBox-icon.rc
819src/win/VirtualBox.rc_CLEAN = $(PATH_VirtualBox)/VirtualBox-icon.rc
820
821$$(PATH_VirtualBox)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
822 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
823
824endif # win
825
826
827ifeq ($(KBUILD_TARGET),darwin)
828#
829# Create directories for each approved language or the application
830# menu won't be translated.
831#
832INSTALLS += VirtualBox.lproj
833VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
834VirtualBox.lproj_MODE = 755
835VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
836
837#
838# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
839# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
840#
841INSTALLS += VirtualBox.app
842VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
843VirtualBox.app_MODE = 644
844VirtualBox.app_SOURCES = \
845 src/darwin/PkgInfo \
846 $(PATH_VirtualBox.app)/Info.plist \
847 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
848
849$$(PATH_VirtualBox.app)/Info.plist: $(PATH_SUB_CURRENT)/src/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
850 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
851 $(QUIET)$(RM) -f $@
852 $(QUIET)$(SED) \
853 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
854 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
855 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
856 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
857 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
858 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
859 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
860 $< > $@
861
862INSTALLS += VirtualBoxVM.app
863VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
864VirtualBoxVM.app_MODE = 644
865VirtualBoxVM.app_SOURCES = \
866 src/darwin/VM-PkgInfo=>PkgInfo \
867 $(PATH_VirtualBoxVM.app)/VM-Info.plist=>Info.plist
868VirtualBoxVM.app_SYMLINKS = \
869 MacOS=>../../../MacOS/ \
870 Resources=>../../../Resources/
871
872$$(PATH_VirtualBoxVM.app)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
873 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
874 $(QUIET)$(RM) -f $@
875 $(QUIET)$(SED) \
876 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
877 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
878 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
879 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
880 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
881 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
882 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
883 --output $@ $<
884endif # darwin
885
886#
887# App for testing GL support
888#
889if defined(VBOX_WITH_VIDEOHWACCEL)
890 if1of ($(KBUILD_TARGET), win linux freebsd)
891 LIBRARIES += VBoxOGL2D
892 VBoxOGL2D_TEMPLATE = VBOXR3STATIC
893 VBoxOGL2D_USES = qt4
894 VBoxOGL2D_SDKS = QT4
895 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
896 VBoxOGL2D_QT_MODULES += OpenGL
897 VBoxOGL2D_SOURCES = \
898 src/VBoxGLSupportInfo.cpp
899 VBoxOGL2D_INCS = include
900 endif
901endif
902
903#
904# Testcase for the darwin keyboard routines.
905#
906ifdef VBOX_WITH_TESTCASES
907PROGRAMS.darwin += tstDarwinKeyboard
908tstDarwinKeyboard_NAME = tstDarwinKeyboard
909tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
910tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
911tstDarwinKeyboard_INCS = include
912tstDarwinKeyboard_SOURCES = \
913 src/darwin/tstDarwinKeyboard.cpp \
914 src/darwin/DarwinKeyboard.cpp
915tstDarwinKeyboard_SOURCES.amd64 = \
916 src/darwin/CocoaEventHelper.mm
917tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
918tstDarwinKeyboard_LIBS = \
919 $(LIB_RUNTIME)
920endif
921
922
923# Unset everything that was loaded from VBoxUI.pro.
924TEMPLATE := $(SAVED_TEMPLATE)
925SAVED_TEMPLATE :=
926LANGUAGE :=
927FORMS :=
928TRANSLATIONS :=
929IMAGES :=
930
931
932# Commit the magic.
933# (note: before custom rules that make usage of generated variables!).
934include $(KBUILD_PATH)/subfooter.kmk
935
936#
937# Update all known NLS translation (.ts) files in the nls/ subdirectory.
938#
939# NOTE: This target is intended to be run only by the GUI maintainer shortly
940# before a new product release. VirtualBox_xx_YY.ts is a template for new
941# languages and should never be actually translated or installed.
942#
943# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
944# lupdate call
945#
946#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
947updatenls:: makeallnls nls/VirtualBox_en.ts
948
949makeallnls:: \
950 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
951 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
952 $(call MSG_L1,lupdate all languages (nls/*.ts))
953 $(QUIET)$(TOOL_QT4_LUPDATE) \
954 $^ \
955 -ts \
956 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
957 nls/VirtualBox_xx_YY.ts
958
959# Create the English translation file. This is something special cause it will
960# contain the plural forms only.
961nls/VirtualBox_en.ts: \
962 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
963 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
964 $(call MSG_L1,lupdate $@)
965 $(QUIET)$(TOOL_QT4_LUPDATE) \
966 $^ \
967 -ts \
968 $@
969 $(QUIET)$(SED) -n -i -e \
970 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
971 $@
972
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette