1 | # $Id: Makefile.kmk 23732 2009-10-13 14:46:44Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Qt GUI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2009 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 |
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Globals.
|
---|
27 | #
|
---|
28 | VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
|
---|
29 | VBOX_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 | # Show the update notifier dialog during startup. If this setting is disabled
|
---|
38 | # the user can still update using the menu if desired.
|
---|
39 | VBOX_WITH_UPDATE_REQUEST := 1
|
---|
40 |
|
---|
41 |
|
---|
42 | #
|
---|
43 | # The targets.
|
---|
44 | #
|
---|
45 | ifdef VBOX_WITH_HARDENING
|
---|
46 | PROGRAMS += VirtualBoxHardened
|
---|
47 | DLLS += VirtualBox
|
---|
48 | else
|
---|
49 | PROGRAMS += VirtualBox
|
---|
50 | endif
|
---|
51 |
|
---|
52 | ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
53 | DLLS += VBoxKeyboard
|
---|
54 | ## @todo convert to install target.
|
---|
55 | OTHERS += $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
56 | CLEAN += $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
57 | endif
|
---|
58 | INSTALLS += VirtualBox.nls
|
---|
59 |
|
---|
60 |
|
---|
61 | #
|
---|
62 | # Include the language lists.
|
---|
63 | #
|
---|
64 | include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
|
---|
65 |
|
---|
66 |
|
---|
67 | #
|
---|
68 | # VBoxKeyboard - keyboard library for X11.
|
---|
69 | #
|
---|
70 | VBoxKeyboard_TEMPLATE = VBOXR3
|
---|
71 | VBoxKeyboard_SOURCES = \
|
---|
72 | src/X11/keyboard-new.c
|
---|
73 | VBoxKeyboard_LIBS = X11
|
---|
74 | VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
|
---|
75 |
|
---|
76 |
|
---|
77 | #
|
---|
78 | # vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
|
---|
79 | # redistributed with usable sources.
|
---|
80 | #
|
---|
81 | # This rule will link create a temporary symlink to src/X11/ and tar
|
---|
82 | # up the selected files into a tarball that is installed into the
|
---|
83 | # bin directory (probably belongs in /usr/shared/somewhere really,
|
---|
84 | # but wtf, it's not like we're even trying to be FHS compliant).
|
---|
85 | #
|
---|
86 | ## @todo this should be tar'ed down into the output directory and installed using an install target.
|
---|
87 | $(PATH_BIN)/vboxkeyboard.tar.gz: $(abspathex \
|
---|
88 | $(VBoxKeyboard_SOURCES) \
|
---|
89 | src/X11/COPYING.LIB \
|
---|
90 | src/X11/keyboard.h \
|
---|
91 | src/X11/keyboard-layouts.h \
|
---|
92 | src/X11/keyboard-list.h \
|
---|
93 | src/X11/keyboard-tables.h \
|
---|
94 | src/X11/keyboard-types.h \
|
---|
95 | src/X11/Makefile \
|
---|
96 | ,$(PATH_SUB_CURRENT)) | $(PATH_TARGET)/VBoxKeyboard/
|
---|
97 | $(call MSG_TOOL,tar/gzip,,$@)
|
---|
98 | $(QUIET2)$(RM) -f $(PATH_TARGET)/VBoxKeyboard/vboxkeyboard $@
|
---|
99 | $(QUIET)$(LN_SYMLINK) $(VBOX_VIRTUALBOX4_SRC)/src/X11/ $(PATH_TARGET)/VBoxKeyboard/vboxkeyboard
|
---|
100 | $(QUIET)cd $(PATH_TARGET)/VBoxKeyboard \
|
---|
101 | && tar -chvf - $(addprefix vboxkeyboard/,$(notdir $^)) \
|
---|
102 | | gzip - > $@
|
---|
103 | $(QUIET2)$(RM) -f $(PATH_TARGET)/VBoxKeyboard/vboxkeyboard
|
---|
104 |
|
---|
105 | OTHER_CLEAN += \
|
---|
106 | $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
107 |
|
---|
108 |
|
---|
109 | #
|
---|
110 | # Hardened VirtualBox.
|
---|
111 | #
|
---|
112 | VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
|
---|
113 | VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
|
---|
114 | VirtualBoxHardened_NAME = VirtualBox
|
---|
115 | ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed.
|
---|
116 | #VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
117 | VirtualBoxHardened_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
118 | endif
|
---|
119 |
|
---|
120 |
|
---|
121 | #
|
---|
122 | # Include Qt project file, we'll use FORMS and TRANSLATIONS in
|
---|
123 | # the VirtualBox setup below.
|
---|
124 | #
|
---|
125 | SAVED_TEMPLATE := $(TEMPLATE)
|
---|
126 | include $(PATH_SUB_CURRENT)/VBoxUI.pro
|
---|
127 |
|
---|
128 |
|
---|
129 | #
|
---|
130 | # VirtualBox - The GUI program.
|
---|
131 | #
|
---|
132 | USES += qt4
|
---|
133 | VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
|
---|
134 | VirtualBox_NAME = VirtualBox
|
---|
135 | ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
|
---|
136 | ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed.
|
---|
137 | #VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
138 | VirtualBox_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
139 | endif
|
---|
140 | endif
|
---|
141 | VirtualBox_SDKS.win = WINPSDK DXSDK
|
---|
142 | ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(KBUILD_TARGET)),) # X11 + os2 ## @todo solaris
|
---|
143 | VirtualBox_SDKS += LIBSDL
|
---|
144 | endif
|
---|
145 |
|
---|
146 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
147 | # For testing iChat Theater stuff change the sdk path (HACK ALERT!)
|
---|
148 | VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
|
---|
149 | endif
|
---|
150 |
|
---|
151 | VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS
|
---|
152 | VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
|
---|
153 | VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
|
---|
154 | ifndef VBOX_WITH_COCOA_QT
|
---|
155 | VirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS
|
---|
156 | endif
|
---|
157 | VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
158 | VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
159 | VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
160 | VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
161 | VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
|
---|
162 | VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
|
---|
163 | VirtualBox_DEFS.win.amd64 = VBOX_WITHOUT_QHTTP
|
---|
164 | ## @todo VBOX_WITH_HACKED_QT doesn't apply to Qt4, so why is this still here?
|
---|
165 | VirtualBox_DEFS.darwin.x86 += VBOX_WITH_HACKED_QT
|
---|
166 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
167 | VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
168 | endif
|
---|
169 | ifneq ($(KBUILD_TYPE),release)
|
---|
170 | # non-release builds has some extra features.
|
---|
171 | VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
|
---|
172 | endif
|
---|
173 | VirtualBox_DEFS += \
|
---|
174 | $(if $(VBOX_WITH_REGISTRATION),VBOX_WITH_REGISTRATION) \
|
---|
175 | $(if $(VBOX_WITH_REGISTRATION_REQUEST),VBOX_WITH_REGISTRATION_REQUEST) \
|
---|
176 | $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
|
---|
177 | $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
|
---|
178 | $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
|
---|
179 | $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
|
---|
180 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
181 | $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT)
|
---|
182 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
183 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
|
---|
184 | if "$(KBUILD_TYPE)" != "release"
|
---|
185 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
186 | endif
|
---|
187 | endif
|
---|
188 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
189 | VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
|
---|
190 | VBOX_GUI_USE_QGL
|
---|
191 | else ifdef VBOX_GUI_USE_QGL
|
---|
192 | VirtualBox_DEFS += VBOX_GUI_USE_QGL
|
---|
193 | endif
|
---|
194 | ifdef VBOX_WITH_VIRTIO
|
---|
195 | VirtualBox_DEFS += VBOX_WITH_VIRTIO
|
---|
196 | endif
|
---|
197 |
|
---|
198 | ifdef VBOX_BLEEDING_EDGE
|
---|
199 | VirtualBox_src/VBoxConsoleWnd.cpp_DEFS += \
|
---|
200 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
201 | VirtualBox_src/VBoxSelectorWnd.cpp_DEFS += \
|
---|
202 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
203 | VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
|
---|
204 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
205 | VirtualBox_src/main.cpp_DEFS += \
|
---|
206 | VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
|
---|
207 | endif
|
---|
208 |
|
---|
209 | VirtualBox_INCS = \
|
---|
210 | ./include \
|
---|
211 | $(PATH_VirtualBox)/include
|
---|
212 |
|
---|
213 | # Necessary for the hdd backend enumeration
|
---|
214 | VirtualBox_LIBS = $(LIB_DDU)
|
---|
215 |
|
---|
216 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
217 | # Necessary for save state support
|
---|
218 | VirtualBox_LIBS += $(LIB_VMM)
|
---|
219 | endif
|
---|
220 | ifeq ($(KBUILD_TYPE),release)
|
---|
221 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
222 | else
|
---|
223 | VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
|
---|
224 | ifeq ($(USERNAME),dmik)
|
---|
225 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
226 | else
|
---|
227 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
|
---|
228 | endif
|
---|
229 | endif
|
---|
230 | # r=bird: what is -lz doing here? it belongs in LIBS.
|
---|
231 | VirtualBox_LDFLAGS.darwin = -lz \
|
---|
232 | -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -framework Carbon \
|
---|
233 | $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
|
---|
234 | VirtualBox_LDFLAGS.darwin.x86 = -framework QuickTime
|
---|
235 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
236 | VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
237 | endif
|
---|
238 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
239 | VirtualBox_LDFLAGS.darwin += -framework OpenGL
|
---|
240 | endif
|
---|
241 |
|
---|
242 | VirtualBox_LIBS.win = \
|
---|
243 | $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
|
---|
244 | $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
|
---|
245 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
246 | ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
247 | VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
248 | endif
|
---|
249 |
|
---|
250 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
251 | VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
|
---|
252 | VirtualBox_LIBS.solaris += GL
|
---|
253 | endif
|
---|
254 |
|
---|
255 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
256 | VirtualBox_QT_MOCHDRS = \
|
---|
257 | include/QIHttp.h \
|
---|
258 | include/QIWidgetValidator.h \
|
---|
259 | include/QIHotKeyEdit.h \
|
---|
260 | include/QIStatusBar.h \
|
---|
261 | include/QIStateIndicator.h \
|
---|
262 | include/QIRichToolButton.h \
|
---|
263 | include/QIArrowButtonPress.h \
|
---|
264 | include/QIArrowButtonSwitch.h \
|
---|
265 | include/QIArrowSplitter.h \
|
---|
266 | include/QIMessageBox.h \
|
---|
267 | include/QILabel.h \
|
---|
268 | include/QILabel_p.h \
|
---|
269 | include/QILabelSeparator.h \
|
---|
270 | include/QIAbstractWizard.h \
|
---|
271 | include/QIListView.h \
|
---|
272 | include/QITreeWidget.h \
|
---|
273 | include/QIMainDialog.h \
|
---|
274 | include/QIHelpButton.h \
|
---|
275 | include/QIDialog.h \
|
---|
276 | include/QIFileDialog.h \
|
---|
277 | include/QIAdvancedSlider.h \
|
---|
278 | include/QISplitter.h \
|
---|
279 | include/QITreeView.h \
|
---|
280 | include/QIToolButton.h \
|
---|
281 | include/VBoxFilePathSelectorWidget.h \
|
---|
282 | include/VBoxOSTypeSelectorButton.h \
|
---|
283 | include/VBoxOSTypeSelectorWidget.h \
|
---|
284 | include/VBoxLineTextEdit.h \
|
---|
285 | include/VBoxUtils.h \
|
---|
286 | include/VBoxGlobalSettings.h \
|
---|
287 | include/VBoxGlobal.h \
|
---|
288 | include/VBoxVMListView.h \
|
---|
289 | include/VBoxMediaComboBox.h \
|
---|
290 | include/VBoxSelectorWnd.h \
|
---|
291 | include/VBoxConsoleWnd.h \
|
---|
292 | include/VBoxConsoleView.h \
|
---|
293 | include/VBoxMiniToolBar.h \
|
---|
294 | include/VBoxProblemReporter.h \
|
---|
295 | include/VBoxProgressDialog.h \
|
---|
296 | include/VBoxDownloaderWgt.h \
|
---|
297 | include/VBoxAboutDlg.h \
|
---|
298 | include/VBoxCloseVMDlg.h \
|
---|
299 | include/VBoxNewVMWzd.h \
|
---|
300 | include/VBoxNewHDWzd.h \
|
---|
301 | include/VBoxVMFirstRunWzd.h \
|
---|
302 | include/VBoxRegistrationDlg.h \
|
---|
303 | include/VBoxUpdateDlg.h \
|
---|
304 | include/VBoxSnapshotDetailsDlg.h \
|
---|
305 | include/VBoxVMInformationDlg.h \
|
---|
306 | include/VBoxTakeSnapshotDlg.h \
|
---|
307 | include/VBoxSnapshotsWgt.h \
|
---|
308 | include/VBoxVMLogViewer.h \
|
---|
309 | include/VBoxMediaManagerDlg.h \
|
---|
310 | include/VBoxSettingsUtils.h \
|
---|
311 | include/VBoxVMSettingsGeneral.h \
|
---|
312 | include/VBoxVMSettingsSystem.h \
|
---|
313 | include/VBoxVMSettingsDisplay.h \
|
---|
314 | include/VBoxVMSettingsHD.h \
|
---|
315 | include/VBoxVMSettingsAudio.h \
|
---|
316 | include/VBoxVMSettingsNetwork.h \
|
---|
317 | include/VBoxVMSettingsSerial.h \
|
---|
318 | include/VBoxVMSettingsParallel.h \
|
---|
319 | include/VBoxVMSettingsUSB.h \
|
---|
320 | include/VBoxVMSettingsUSBFilterDetails.h \
|
---|
321 | include/VBoxVMSettingsSF.h \
|
---|
322 | include/VBoxVMSettingsSFDetails.h \
|
---|
323 | include/VBoxGLSettingsGeneral.h \
|
---|
324 | include/VBoxGLSettingsInput.h \
|
---|
325 | include/VBoxGLSettingsUpdate.h \
|
---|
326 | include/VBoxGLSettingsLanguage.h \
|
---|
327 | include/VBoxGLSettingsNetwork.h \
|
---|
328 | include/VBoxGLSettingsNetworkDetails.h \
|
---|
329 | include/VBoxSettingsDialog.h \
|
---|
330 | include/VBoxSettingsDialogSpecific.h \
|
---|
331 | include/VBoxSettingsPage.h \
|
---|
332 | include/VBoxSettingsSelector.h \
|
---|
333 | include/VBoxApplianceEditorWgt.h \
|
---|
334 | include/VBoxImportApplianceWgt.h \
|
---|
335 | include/VBoxImportApplianceWzd.h \
|
---|
336 | include/VBoxExportApplianceWgt.h \
|
---|
337 | include/VBoxExportApplianceWzd.h
|
---|
338 |
|
---|
339 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
340 | VirtualBox_QT_MOCSRCS = \
|
---|
341 | src/VBoxSelectorWnd.cpp \
|
---|
342 | src/VBoxConsoleWnd.cpp \
|
---|
343 | src/VBoxMediaManagerDlg.cpp
|
---|
344 | ifdef VBOX_WITH_XPCOM
|
---|
345 | VirtualBox_QT_MOCSRCS += \
|
---|
346 | src/COMDefs.cpp
|
---|
347 | endif
|
---|
348 | ifeq ($(KBUILD_TARGET),win)
|
---|
349 | VirtualBox_QT_MOCSRCS += \
|
---|
350 | src/QIFileDialog.cpp
|
---|
351 | endif
|
---|
352 |
|
---|
353 | VirtualBox_SOURCES = \
|
---|
354 | src/main.cpp \
|
---|
355 | src/COMDefs.cpp \
|
---|
356 | src/QIWidgetValidator.cpp \
|
---|
357 | src/QIHotKeyEdit.cpp \
|
---|
358 | src/QIStateIndicator.cpp \
|
---|
359 | src/QIStatusBar.cpp \
|
---|
360 | src/QIRichToolButton.cpp \
|
---|
361 | src/QIArrowButtonSwitch.cpp \
|
---|
362 | src/QIArrowButtonPress.cpp \
|
---|
363 | src/QIArrowSplitter.cpp \
|
---|
364 | src/QIMessageBox.cpp \
|
---|
365 | src/QILabel.cpp \
|
---|
366 | src/QILabelSeparator.cpp \
|
---|
367 | src/QIAbstractWizard.cpp \
|
---|
368 | src/QIDialog.cpp \
|
---|
369 | src/QIFileDialog.cpp \
|
---|
370 | src/QIAdvancedSlider.cpp \
|
---|
371 | src/QIDialogButtonBox.cpp \
|
---|
372 | src/QIListView.cpp \
|
---|
373 | src/QITreeWidget.cpp \
|
---|
374 | src/QIMainDialog.cpp \
|
---|
375 | src/QILineEdit.cpp \
|
---|
376 | src/QIHelpButton.cpp \
|
---|
377 | src/QISplitter.cpp \
|
---|
378 | src/QITreeView.cpp \
|
---|
379 | src/VBoxGuestRAMSlider.cpp \
|
---|
380 | src/VBoxFilePathSelectorWidget.cpp \
|
---|
381 | src/VBoxOSTypeSelectorButton.cpp \
|
---|
382 | src/VBoxOSTypeSelectorWidget.cpp \
|
---|
383 | src/VBoxLineTextEdit.cpp \
|
---|
384 | src/VBoxDefs.cpp \
|
---|
385 | src/VBoxGlobalSettings.cpp \
|
---|
386 | src/VBoxGlobal.cpp \
|
---|
387 | src/VBoxMediaComboBox.cpp \
|
---|
388 | src/VBoxProblemReporter.cpp \
|
---|
389 | src/VBoxProgressDialog.cpp \
|
---|
390 | src/VBoxHelpActions.cpp \
|
---|
391 | src/VBoxSelectorWnd.cpp \
|
---|
392 | src/VBoxConsoleView.cpp \
|
---|
393 | src/VBoxConsoleWnd.cpp \
|
---|
394 | src/VBoxMiniToolBar.cpp \
|
---|
395 | src/VBoxDownloaderWgt.cpp \
|
---|
396 | src/VBoxVMListView.cpp \
|
---|
397 | src/VBoxFrameBuffer.cpp \
|
---|
398 | src/VBoxAboutDlg.cpp \
|
---|
399 | src/VBoxCloseVMDlg.cpp \
|
---|
400 | src/VBoxNewVMWzd.cpp \
|
---|
401 | src/VBoxNewHDWzd.cpp \
|
---|
402 | src/VBoxVMFirstRunWzd.cpp \
|
---|
403 | src/VBoxRegistrationDlg.cpp \
|
---|
404 | src/VBoxUpdateDlg.cpp \
|
---|
405 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
406 | src/VBoxVMInformationDlg.cpp \
|
---|
407 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
408 | src/VBoxSnapshotsWgt.cpp \
|
---|
409 | src/VBoxVMLogViewer.cpp \
|
---|
410 | src/VBoxVMSettingsGeneral.cpp \
|
---|
411 | src/VBoxVMSettingsSystem.cpp \
|
---|
412 | src/VBoxVMSettingsDisplay.cpp \
|
---|
413 | src/VBoxVMSettingsHD.cpp \
|
---|
414 | src/VBoxVMSettingsAudio.cpp \
|
---|
415 | src/VBoxVMSettingsNetwork.cpp \
|
---|
416 | src/VBoxVMSettingsSerial.cpp \
|
---|
417 | src/VBoxVMSettingsParallel.cpp \
|
---|
418 | src/VBoxVMSettingsUSB.cpp \
|
---|
419 | src/VBoxVMSettingsUSBFilterDetails.cpp \
|
---|
420 | src/VBoxVMSettingsSF.cpp \
|
---|
421 | src/VBoxVMSettingsSFDetails.cpp \
|
---|
422 | src/VBoxGLSettingsGeneral.cpp \
|
---|
423 | src/VBoxGLSettingsInput.cpp \
|
---|
424 | src/VBoxGLSettingsUpdate.cpp \
|
---|
425 | src/VBoxGLSettingsLanguage.cpp \
|
---|
426 | src/VBoxGLSettingsNetwork.cpp \
|
---|
427 | src/VBoxGLSettingsNetworkDetails.cpp \
|
---|
428 | src/VBoxSettingsDialog.cpp \
|
---|
429 | src/VBoxSettingsDialogSpecific.cpp \
|
---|
430 | src/VBoxSettingsSelector.cpp \
|
---|
431 | src/VBoxMediaManagerDlg.cpp \
|
---|
432 | src/VBoxMedium.cpp \
|
---|
433 | src/VBoxApplianceEditorWgt.cpp \
|
---|
434 | src/VBoxImportApplianceWgt.cpp \
|
---|
435 | src/VBoxImportApplianceWzd.cpp \
|
---|
436 | src/VBoxExportApplianceWgt.cpp \
|
---|
437 | src/VBoxExportApplianceWzd.cpp
|
---|
438 |
|
---|
439 | ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
440 | ifndef VBOX_OSE
|
---|
441 | VirtualBox_QT_MOCHDRS += \
|
---|
442 | include/VBoxLicenseViewer.h
|
---|
443 | VirtualBox_SOURCES += \
|
---|
444 | src/VBoxLicenseViewer.cpp
|
---|
445 | else
|
---|
446 | VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
|
---|
447 | include/VBoxLicenseViewer.h \
|
---|
448 | src/VBoxLicenseViewer.cpp
|
---|
449 | endif
|
---|
450 | VirtualBox_SOURCES += \
|
---|
451 | src/X11/XKeyboard-new.cpp \
|
---|
452 | src/VBoxX11Helper.cpp
|
---|
453 | else
|
---|
454 | VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
|
---|
455 | include/VBoxLicenseViewer.h \
|
---|
456 | src/VBoxLicenseViewer.cpp
|
---|
457 | endif
|
---|
458 |
|
---|
459 | VirtualBox_SOURCES.win += \
|
---|
460 | src/VBoxFBDDRAW.cpp \
|
---|
461 | src/win/VirtualBox.rc
|
---|
462 |
|
---|
463 | VirtualBox_SOURCES.darwin = \
|
---|
464 | src/darwin/DarwinKeyboard.cpp \
|
---|
465 | src/darwin/VBoxUtils-darwin.cpp \
|
---|
466 | src/darwin/VBoxDockIconPreview.cpp \
|
---|
467 | src/VBoxFBQuartz2D.cpp
|
---|
468 |
|
---|
469 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
470 | VirtualBox_SOURCES.darwin += \
|
---|
471 | src/darwin/VBoxIChatTheaterWrapper.m
|
---|
472 | endif
|
---|
473 |
|
---|
474 | ifdef VBOX_WITH_COCOA_QT
|
---|
475 | VirtualBox_SOURCES.darwin += \
|
---|
476 | src/darwin/VBoxCocoaApplication.m \
|
---|
477 | src/darwin/VBoxUtils-darwin-cocoa.m \
|
---|
478 | src/darwin/VBoxDockIconPreview-cocoa.m
|
---|
479 | else
|
---|
480 | VirtualBox_SOURCES.darwin += \
|
---|
481 | src/darwin/VBoxUtils-darwin-carbon.cpp
|
---|
482 | endif
|
---|
483 |
|
---|
484 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
485 | VirtualBox_SOURCES += \
|
---|
486 | src/VBoxFBQGL.cpp \
|
---|
487 | src/VBoxFBOverlay.cpp \
|
---|
488 | src/VBoxGLSupportInfo.cpp
|
---|
489 | endif
|
---|
490 | # The Qt modules we're using.
|
---|
491 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
492 | VirtualBox_QT_MODULES = Core Gui Network
|
---|
493 |
|
---|
494 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
495 | VirtualBox_QT_MODULES += OpenGL
|
---|
496 | endif
|
---|
497 |
|
---|
498 | # Import QDesigner UI sources and translations from VBoxUI.pro.
|
---|
499 | ifndef VBOX_WITH_REGISTRATION
|
---|
500 | FORMS := $(filter-out ui/VBoxRegistrationDlg.ui,$(FORMS))
|
---|
501 | endif
|
---|
502 | $(eval VirtualBox_SOURCES += $(FORMS))
|
---|
503 |
|
---|
504 | # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
|
---|
505 | VirtualBox_SOURCES += VirtualBox1.qrc
|
---|
506 | VirtualBox1.qrc_RCCFLAGS = -name BASIC1
|
---|
507 | VirtualBox_SOURCES += VirtualBox2.qrc
|
---|
508 | VirtualBox2.qrc_RCCFLAGS = -name BASIC2
|
---|
509 | VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
510 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
|
---|
511 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
512 | VirtualBox_SOURCES += VirtualBoxShaders.qrc
|
---|
513 | VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
|
---|
514 | endif
|
---|
515 |
|
---|
516 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
517 | VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
518 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
519 | # Compress the translation units.
|
---|
520 | VirtualBox_LRCFLAGS = -silent
|
---|
521 | # Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
|
---|
522 | VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
523 |
|
---|
524 |
|
---|
525 | ## @todo how to detect what tool is used?
|
---|
526 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
527 | # more generic -Wno-extra
|
---|
528 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
529 | ifdef VBOX_WITH_XPCOM
|
---|
530 | VirtualBox_src/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
531 | endif
|
---|
532 |
|
---|
533 |
|
---|
534 | #
|
---|
535 | # Generate the COM wrappers.
|
---|
536 | #
|
---|
537 | VirtualBox_BLDDIRS += $(PATH_VirtualBox)/include
|
---|
538 | VirtualBox_INTERMEDIATES += $(PATH_VirtualBox)/include/COMWrappers.h
|
---|
539 | VirtualBox_CLEAN += $(PATH_VirtualBox)/include/COMWrappers.h
|
---|
540 |
|
---|
541 | $$(PATH_VirtualBox)/include/COMWrappers.h: \
|
---|
542 | $(VBOX_XIDL_FILE) \
|
---|
543 | $(VBOX_VIRTUALBOX4_SRC)/include/COMWrappers.xsl \
|
---|
544 | | $$(dir $$@)
|
---|
545 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
546 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/include/COMWrappers.xsl $<
|
---|
547 |
|
---|
548 | # alias for generating the COM Wrappers file.
|
---|
549 | testwrappers:: $$(PATH_VirtualBox)/include/COMWrappers.h
|
---|
550 |
|
---|
551 |
|
---|
552 | #
|
---|
553 | # Generate qrc file with branded icons.
|
---|
554 | #
|
---|
555 | VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
|
---|
556 | VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
557 | if "$(KBUILD_HOST)" == "win" ## @todo remove when kBuild ticket #52 has been fixed and deployed.
|
---|
558 | VBOX_DRIVE_HACK := $(firstword $(subst :, ,$(PATH_ROOT))):
|
---|
559 | else
|
---|
560 | VBOX_DRIVE_HACK :=
|
---|
561 | endif
|
---|
562 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
|
---|
563 | $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
|
---|
564 | | $$(dir $$@)
|
---|
565 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
566 | $(QUIET)$(SED) \
|
---|
567 | -e 's;@VBOX_ABOUT_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_ABOUT_PNG));g' \
|
---|
568 | -e 's;@VBOX_ABOUT_16PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_ABOUT_16PX_PNG));g' \
|
---|
569 | -e 's;@VBOX_VBOX_16PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_16PX_PNG));g' \
|
---|
570 | -e 's;@VBOX_VBOX_20PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_20PX_PNG));g' \
|
---|
571 | -e 's;@VBOX_VBOX_32PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_32PX_PNG));g' \
|
---|
572 | -e 's;@VBOX_VBOX_40PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_40PX_PNG));g' \
|
---|
573 | -e 's;@VBOX_VBOX_48PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_48PX_PNG));g' \
|
---|
574 | -e 's;@VBOX_VBOX_64PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_VBOX_64PX_PNG));g' \
|
---|
575 | -e 's;@VBOX_CUBE_42PX_PNG@;$(subst $(VBOX_DRIVE_HACK),,$(VBOX_BRAND_GUI_CUBE_42PX_PNG));g' \
|
---|
576 | --output $@ \
|
---|
577 | $<
|
---|
578 |
|
---|
579 |
|
---|
580 | ifeq ($(KBUILD_TARGET),win)
|
---|
581 | #
|
---|
582 | # On Windows we'll have to generate/edit part of the resource file.
|
---|
583 | # The IDI_ICON1 name is Qt specific.
|
---|
584 | #
|
---|
585 | src/win/VirtualBox.rc_INCS = $(PATH_VirtualBox)
|
---|
586 | src/win/VirtualBox.rc_DEPS = $(PATH_VirtualBox)/VirtualBox-icon.rc
|
---|
587 | src/win/VirtualBox.rc_CLEAN = $(PATH_VirtualBox)/VirtualBox-icon.rc
|
---|
588 |
|
---|
589 | $$(PATH_VirtualBox)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
590 | $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
591 |
|
---|
592 | endif # win
|
---|
593 |
|
---|
594 |
|
---|
595 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
596 | #
|
---|
597 | # Create directories for each approved language or the application
|
---|
598 | # menu won't be translated.
|
---|
599 | #
|
---|
600 | INSTALLS += VirtualBox.lproj
|
---|
601 | VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
|
---|
602 | VirtualBox.lproj_MODE = 755
|
---|
603 | VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES_ALL))
|
---|
604 |
|
---|
605 | #
|
---|
606 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
607 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
608 | #
|
---|
609 | INSTALLS += VirtualBox.app
|
---|
610 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
611 | VirtualBox.app_MODE = 644
|
---|
612 | VirtualBox.app_SOURCES = \
|
---|
613 | src/darwin/PkgInfo \
|
---|
614 | $(PATH_VirtualBox.app)/Info.plist \
|
---|
615 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
|
---|
616 |
|
---|
617 | $$(PATH_VirtualBox.app)/Info.plist: $(PATH_SUB_CURRENT)/src/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
618 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
619 | $(QUIET)$(RM) -f $@
|
---|
620 | $(QUIET)$(SED) \
|
---|
621 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
622 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
623 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
624 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
625 | $< > $@
|
---|
626 |
|
---|
627 | INSTALLS += VirtualBoxVM.app
|
---|
628 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
629 | VirtualBoxVM.app_MODE = 644
|
---|
630 | VirtualBoxVM.app_SOURCES = \
|
---|
631 | src/darwin/VM-PkgInfo=>PkgInfo \
|
---|
632 | $(PATH_VirtualBoxVM.app)/VM-Info.plist=>Info.plist
|
---|
633 | VirtualBoxVM.app_SYMLINKS = \
|
---|
634 | MacOS=>../../../MacOS/ \
|
---|
635 | Resources=>../../../Resources/
|
---|
636 |
|
---|
637 | $$(PATH_VirtualBoxVM.app)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
638 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
639 | $(QUIET)$(RM) -f $@
|
---|
640 | $(QUIET)$(SED) \
|
---|
641 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
642 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
643 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
644 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
645 | --output $@ $<
|
---|
646 | endif # darwin
|
---|
647 |
|
---|
648 | #
|
---|
649 | # App for testing GL support
|
---|
650 | #
|
---|
651 | if defined(VBOX_WITH_VIDEOHWACCEL)
|
---|
652 | if1of ($(KBUILD_TARGET), win linux)
|
---|
653 | PROGRAMS += VBoxTestOGL2D
|
---|
654 | VBoxTestOGL2D_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
|
---|
655 | VBoxTestOGL2D_SOURCES = \
|
---|
656 | src/VBoxTestQGLApp.cpp \
|
---|
657 | src/VBoxGLSupportInfo.cpp
|
---|
658 | VBoxTestOGL2D_QT_MODULES = Core Gui OpenGL
|
---|
659 | VBoxTestOGL2D_INCS = include
|
---|
660 | VBoxTestOGL2D_LDFLAGS.darwin += -framework OpenGL
|
---|
661 | VBoxTestOGL2D_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
|
---|
662 | VBoxTestOGL2D_LIBS.solaris += GL
|
---|
663 | endif
|
---|
664 | endif
|
---|
665 |
|
---|
666 | #
|
---|
667 | # Testcase for the darwin keyboard routines.
|
---|
668 | #
|
---|
669 | ifdef VBOX_WITH_TESTCASES
|
---|
670 | PROGRAMS.darwin += tstDarwinKeyboard
|
---|
671 | tstDarwinKeyboard_NAME = tstDarwinKeyboard
|
---|
672 | tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
|
---|
673 | tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
|
---|
674 | tstDarwinKeyboard_INCS = include
|
---|
675 | tstDarwinKeyboard_SOURCES = \
|
---|
676 | src/darwin/tstDarwinKeyboard.cpp \
|
---|
677 | src/darwin/DarwinKeyboard.cpp
|
---|
678 | tstDarwinKeyboard_SOURCES.amd64 = \
|
---|
679 | src/darwin/VBoxCocoaApplication.m
|
---|
680 | tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
|
---|
681 | tstDarwinKeyboard_LIBS = \
|
---|
682 | $(LIB_RUNTIME)
|
---|
683 | endif
|
---|
684 |
|
---|
685 |
|
---|
686 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
687 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
688 | SAVED_TEMPLATE :=
|
---|
689 | LANGUAGE :=
|
---|
690 | FORMS :=
|
---|
691 | TRANSLATIONS :=
|
---|
692 | IMAGES :=
|
---|
693 |
|
---|
694 |
|
---|
695 | # Commit the magic.
|
---|
696 | # (note: before custom rules that make usage of generated variables!).
|
---|
697 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
698 |
|
---|
699 | #
|
---|
700 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
701 | #
|
---|
702 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
703 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
704 | # languages and should never be actually translated or installed.
|
---|
705 | #
|
---|
706 | updatenls:: \
|
---|
707 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES)) \
|
---|
708 | $(wildcard include/*.h)
|
---|
709 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
710 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
711 | $^ \
|
---|
712 | -ts \
|
---|
713 | $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS)) \
|
---|
714 | nls/VirtualBox_xx_YY.ts
|
---|
715 |
|
---|