VirtualBox

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

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

FE/Qt4: disable register

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