VirtualBox

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

Last change on this file since 27215 was 27215, checked in by vboxsync, 15 years ago

FE/Qt4: new core: dock icon preview with MM support added again

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