VirtualBox

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

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

Build fix.

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