VirtualBox

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

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

wddm/3d: VM settings GUI: display warnings about the VRAM size

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