VirtualBox

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

Last change on this file since 57359 was 57223, checked in by vboxsync, 9 years ago

Tab.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 45.6 KB
Line 
1# $Id: Makefile.kmk 57223 2015-08-06 19:22:20Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2015 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Globals.
23#
24VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
25VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
26
27# Show the update notifier dialog during startup. If this setting is disabled
28# the user can still update using the menu if desired.
29ifndef VBOX_OSE
30VBOX_WITH_UPDATE_REQUEST := 1
31endif
32
33#
34# The targets.
35#
36ifdef VBOX_WITH_HARDENING
37PROGRAMS += VirtualBoxHardened
38PROGRAMS.darwin += VirtualBoxVM
39DLLS += VirtualBox
40else
41PROGRAMS += VirtualBox
42endif
43
44INSTALLS += VirtualBox.nls
45
46
47#
48# Include the language lists.
49#
50include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
51
52
53#
54# Hardened VirtualBox.
55#
56VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
57VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
58VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
59VirtualBoxHardened_NAME = VirtualBox
60VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
61src/platform/win/VirtualBoxHardened.rc_INCS = $(VirtualBox_0_OUTDIR)
62src/platform/win/VirtualBoxHardened.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
63
64
65#
66# Hardened VirtualBoxVM.
67#
68ifeq ($(KBUILD_TARGET),darwin)
69 VirtualBoxVM_EXTENDS = VirtualBoxHardened
70 VirtualBoxVM_NAME = VirtualBoxVM
71 VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS) VIRTUALBOX_VM
72endif
73
74
75#
76# Include Qt project file, we'll use FORMS and TRANSLATIONS in
77# the VirtualBox setup below.
78#
79SAVED_TEMPLATE := $(TEMPLATE)
80include $(PATH_SUB_CURRENT)/VBoxUI.pro
81
82
83#
84# VirtualBox - The GUI program.
85#
86USES += qt4
87VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
88VirtualBox_NAME = VirtualBox
89ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
90 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
91endif
92VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
93
94VirtualBox_DEFS =
95VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
96VirtualBox_DEFS.linux = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
97VirtualBox_DEFS.solaris = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
98VirtualBox_DEFS.freebsd = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
99VirtualBox_DEFS.darwin = VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
100VirtualBox_DEFS.win = VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
101VirtualBox_DEFS.win += UNICODE QT_DLL
102ifdef VBOX_WITH_ICHAT_THEATER
103 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
104endif
105VirtualBox_DEFS += \
106 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
107 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
108 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
109 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
110 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
111 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
112 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
113 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
114 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
115 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
116 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
117 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
118 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
119 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
120 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
121 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
122 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
123 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
124 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
125 $(if $(VBOX_GUI_WITH_HIDPI),VBOX_GUI_WITH_HIDPI) \
126 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
127 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
128 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1)
129ifdef VBOX_WITH_DEBUGGER_GUI
130 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
131 if "$(KBUILD_TYPE)" != "release"
132 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
133 endif
134endif
135ifdef VBOX_WITH_VIDEOHWACCEL
136 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
137 VBOX_GUI_USE_QGL
138else ifdef VBOX_GUI_USE_QGL
139 VirtualBox_DEFS += VBOX_GUI_USE_QGL
140endif
141ifdef VBOX_WITH_LIBCURL
142 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
143 VBOX_GUI_WITH_NETWORK_MANAGER := 1
144endif
145ifdef VBOX_BLEEDING_EDGE
146VirtualBox_src/selector/UISelectorWindow.cpp_DEFS += \
147 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
148VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
149 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
150VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
151 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
152VirtualBox_src/main.cpp_DEFS += \
153 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
154endif
155
156
157
158VBOX_GUI_INC_DIRS = \
159 ./src \
160 ./src/converter \
161 ./src/extensions \
162 ./src/extensions/graphics \
163 ./src/extradata \
164 ./src/globals \
165 ./src/medium \
166 ./src/objects \
167 ./src/platform \
168 ./src/platform/darwin \
169 ./src/platform/win \
170 ./src/platform/x11 \
171 ./src/runtime \
172 ./src/runtime/fullscreen \
173 ./src/runtime/normal \
174 ./src/runtime/scale \
175 ./src/runtime/seamless \
176 ./src/selector \
177 ./src/selector/graphics/chooser \
178 ./src/selector/graphics/details \
179 ./src/settings \
180 ./src/settings/global \
181 ./src/settings/machine \
182 ./src/widgets \
183 ./src/widgets/graphics \
184 ./src/wizards \
185 ./src/wizards/newvm \
186 ./src/wizards/newvd \
187 ./src/wizards/clonevm \
188 ./src/wizards/clonevd \
189 ./src/wizards/exportappliance \
190 ./src/wizards/importappliance \
191 ./src/wizards/firstrun
192
193ifdef VBOX_GUI_WITH_NETWORK_MANAGER
194VBOX_GUI_INC_DIRS += \
195 ./src/net
196endif
197
198VirtualBox_INCS = \
199 $(VBOX_GUI_INC_DIRS) \
200 $(VirtualBox_0_OUTDIR)/include
201
202# Necessary for the hdd backend enumeration
203VirtualBox_LIBS = $(LIB_DDU)
204
205if1of ($(KBUILD_TARGET), linux netbsd openbsd)
206 VirtualBox_LIBS += dl
207endif
208
209# This library is required for multi-monitor support
210VirtualBox_LIBS.linux += Xinerama
211VirtualBox_LIBS.solaris += Xinerama
212VirtualBox_LIBS.freebsd += Xinerama
213
214ifneq ($(KBUILD_TARGET),win)
215VirtualBox_CXXFLAGS += -Wno-switch
216endif
217
218ifeq ($(KBUILD_TYPE),release)
219 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
220else
221 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
222 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
223endif
224
225# delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use
226# (i.e. it does not create the ogl context properly when loaded this way)
227#
228# @todo: investigate a better work-around and enable back delay loading since it is needed to avoid
229# crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded)
230#if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
231# VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
232#endif
233
234VirtualBox_LDFLAGS.darwin = \
235 -framework AppKit -framework Carbon -framework IOKit \
236 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
237ifdef VBOX_WITH_ICHAT_THEATER
238 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
239endif
240
241VirtualBox_LIBS.win = \
242 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
243 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
244 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
245if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
246 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
247endif
248
249if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
250 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
251 VirtualBox_LIBS.solaris += GL
252 VirtualBox_LIBS.linux += GL
253 VirtualBox_LIBS.freebsd += GL
254 VirtualBox_LDFLAGS.darwin += -framework OpenGL
255endif
256ifdef VBOX_WITH_CROGL
257 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
258endif
259
260
261# Headers containing definitions of classes that use the Q_OBJECT macro.
262VirtualBox_QT_MOCHDRS = \
263 src/UIMediumTypeChangeDialog.h \
264 src/VBoxAboutDlg.h \
265 src/VBoxGlobalSettings.h \
266 src/VBoxLicenseViewer.h \
267 src/VBoxSnapshotDetailsDlg.h \
268 src/VBoxTakeSnapshotDlg.h \
269 src/UIVMInfoDialog.h \
270 src/UIVMLogViewer.h \
271 src/extensions/QIAdvancedSlider.h \
272 src/extensions/QIArrowButtonPress.h \
273 src/extensions/QIArrowButtonSwitch.h \
274 src/extensions/QIArrowSplitter.h \
275 src/extensions/QIDialog.h \
276 src/extensions/QIFileDialog.h \
277 src/extensions/QILabel.h \
278 src/extensions/QILabelSeparator.h \
279 src/extensions/QIListView.h \
280 src/extensions/QIMainDialog.h \
281 src/extensions/QIMenu.h \
282 src/extensions/QIMessageBox.h \
283 src/extensions/QIProcess.h \
284 src/extensions/QIRichTextLabel.h \
285 src/extensions/QIRichToolButton.h \
286 src/extensions/QISplitter.h \
287 src/extensions/QIStatusBar.h \
288 src/extensions/QIStatusBarIndicator.h \
289 src/extensions/QIStyledItemDelegate.h \
290 src/extensions/QITabWidget.h \
291 src/extensions/QITableView.h \
292 src/extensions/QIToolButton.h \
293 src/extensions/QITreeView.h \
294 src/extensions/QITreeWidget.h \
295 src/extensions/QIWidgetValidator.h \
296 src/extensions/QIAdvancedToolBar.h \
297 src/extensions/graphics/QIGraphicsView.h \
298 src/extensions/graphics/QIGraphicsWidget.h \
299 src/extradata/UIExtraDataDefs.h \
300 src/extradata/UIExtraDataManager.h \
301 src/globals/UIActionPool.h \
302 src/globals/UIAnimationFramework.h \
303 src/globals/UIMainEventListener.h \
304 src/globals/UIMessageCenter.h \
305 src/globals/UIModalWindowManager.h \
306 src/globals/UIPopupCenter.h \
307 src/globals/UIShortcutPool.h \
308 src/globals/UIThreadPool.h \
309 src/globals/VBoxGlobal.h \
310 src/globals/VBoxUtils.h \
311 src/medium/UIMediumEnumerator.h \
312 src/medium/UIMediumManager.h \
313 src/runtime/UIActionPoolRuntime.h \
314 src/runtime/UIAddDiskEncryptionPasswordDialog.h \
315 src/runtime/UIConsoleEventHandler.h \
316 src/runtime/UIFrameBuffer.h \
317 src/runtime/UIIndicatorsPool.h \
318 src/runtime/UIKeyboardHandler.h \
319 src/runtime/UIMachine.h \
320 src/runtime/UIMachineLogic.h \
321 src/runtime/UIMachineWindow.h \
322 src/runtime/UIMachineView.h \
323 src/runtime/UIMenuBarEditorWindow.h \
324 src/runtime/UIMouseHandler.h \
325 src/runtime/UIMultiScreenLayout.h \
326 src/runtime/UISession.h \
327 src/runtime/UISlidingToolBar.h \
328 src/runtime/UIStatusBarEditorWindow.h \
329 src/runtime/UIVMCloseDialog.h \
330 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
331 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
332 src/runtime/fullscreen/UIMachineViewFullscreen.h \
333 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
334 src/runtime/normal/UIKeyboardHandlerNormal.h \
335 src/runtime/normal/UIMachineLogicNormal.h \
336 src/runtime/normal/UIMachineViewNormal.h \
337 src/runtime/normal/UIMachineWindowNormal.h \
338 src/runtime/scale/UIKeyboardHandlerScale.h \
339 src/runtime/scale/UIMachineLogicScale.h \
340 src/runtime/scale/UIMachineViewScale.h \
341 src/runtime/scale/UIMachineWindowScale.h \
342 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
343 src/runtime/seamless/UIMachineLogicSeamless.h \
344 src/runtime/seamless/UIMachineViewSeamless.h \
345 src/runtime/seamless/UIMachineWindowSeamless.h \
346 src/selector/UIActionPoolSelector.h \
347 src/selector/UIVMDesktop.h \
348 src/selector/UIVMItem.h \
349 src/selector/UIVirtualBoxEventHandler.h \
350 src/selector/UISelectorWindow.h \
351 src/selector/VBoxSnapshotsWgt.h \
352 src/selector/graphics/chooser/UIGChooser.h \
353 src/selector/graphics/chooser/UIGChooserModel.h \
354 src/selector/graphics/chooser/UIGChooserView.h \
355 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
356 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
357 src/selector/graphics/chooser/UIGChooserItem.h \
358 src/selector/graphics/chooser/UIGChooserItemGroup.h \
359 src/selector/graphics/chooser/UIGChooserItemMachine.h \
360 src/selector/graphics/details/UIGDetails.h \
361 src/selector/graphics/details/UIGDetailsModel.h \
362 src/selector/graphics/details/UIGDetailsView.h \
363 src/selector/graphics/details/UIGDetailsItem.h \
364 src/selector/graphics/details/UIGDetailsGroup.h \
365 src/selector/graphics/details/UIGDetailsSet.h \
366 src/selector/graphics/details/UIGDetailsElement.h \
367 src/selector/graphics/details/UIGDetailsElements.h \
368 src/selector/graphics/details/UIGMachinePreview.h \
369 src/settings/UISettingsDialog.h \
370 src/settings/UISettingsDialogSpecific.h \
371 src/settings/UISettingsPage.h \
372 src/settings/UISettingsSerializer.h \
373 src/settings/VBoxSettingsSelector.h \
374 src/settings/global/UIGlobalSettingsExtension.h \
375 src/settings/global/UIGlobalSettingsGeneral.h \
376 src/settings/global/UIGlobalSettingsInput.h \
377 src/settings/global/UIGlobalSettingsLanguage.h \
378 src/settings/global/UIGlobalSettingsDisplay.h \
379 src/settings/global/UIGlobalSettingsNetwork.h \
380 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
381 src/settings/global/UIGlobalSettingsNetworkDetailsHost.h \
382 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
383 src/settings/machine/UIMachineSettingsAudio.h \
384 src/settings/machine/UIMachineSettingsDisplay.h \
385 src/settings/machine/UIMachineSettingsGeneral.h \
386 src/settings/machine/UIMachineSettingsInterface.h \
387 src/settings/machine/UIMachineSettingsNetwork.h \
388 src/settings/machine/UIMachineSettingsParallel.h \
389 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
390 src/settings/machine/UIMachineSettingsSF.h \
391 src/settings/machine/UIMachineSettingsSFDetails.h \
392 src/settings/machine/UIMachineSettingsSerial.h \
393 src/settings/machine/UIMachineSettingsStorage.h \
394 src/settings/machine/UIMachineSettingsSystem.h \
395 src/settings/machine/UIMachineSettingsUSB.h \
396 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
397 src/widgets/UIApplianceEditorWidget.h \
398 src/widgets/UIApplianceExportEditorWidget.h \
399 src/widgets/UIApplianceImportEditorWidget.h \
400 src/widgets/UIBar.h \
401 src/widgets/UIBootTable.h \
402 src/widgets/UIHostComboEditor.h \
403 src/widgets/UIHotKeyEditor.h \
404 src/widgets/UILineTextEdit.h \
405 src/widgets/UIMenuBar.h \
406 src/widgets/UIPopupBox.h \
407 src/widgets/UIPopupPane.h \
408 src/widgets/UIPopupPaneTextPane.h \
409 src/widgets/UIPopupPaneButtonPane.h \
410 src/widgets/UIPopupStack.h \
411 src/widgets/UIPopupStackViewport.h \
412 src/widgets/UIPortForwardingTable.h \
413 src/widgets/UIProgressDialog.h \
414 src/widgets/UISpacerWidgets.h \
415 src/widgets/UISpecialControls.h \
416 src/widgets/UIToolBar.h \
417 src/widgets/VBoxFilePathSelectorWidget.h \
418 src/widgets/VBoxMediaComboBox.h \
419 src/widgets/UIMiniToolBar.h \
420 src/widgets/VBoxOSTypeSelectorButton.h \
421 src/widgets/UINameAndSystemEditor.h \
422 src/widgets/UIWarningPane.h \
423 src/widgets/UIFilmContainer.h \
424 src/widgets/graphics/UIGraphicsButton.h \
425 src/widgets/graphics/UIGraphicsRotatorButton.h \
426 src/widgets/graphics/UIGraphicsZoomButton.h \
427 src/widgets/graphics/UIGraphicsToolBar.h \
428 src/widgets/graphics/UIGraphicsTextPane.h \
429 src/wizards/UIWizard.h \
430 src/wizards/UIWizardPage.h \
431 src/wizards/newvm/UIWizardNewVM.h \
432 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
433 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
434 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
435 src/wizards/newvm/UIWizardNewVMPageExpert.h \
436 src/wizards/newvd/UIWizardNewVD.h \
437 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
438 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
439 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
440 src/wizards/newvd/UIWizardNewVDPageExpert.h \
441 src/wizards/clonevm/UIWizardCloneVM.h \
442 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
443 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
444 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
445 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
446 src/wizards/clonevd/UIWizardCloneVD.h \
447 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
448 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
449 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
450 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
451 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
452 src/wizards/exportappliance/UIWizardExportApp.h \
453 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
454 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
455 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
456 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
457 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
458 src/wizards/importappliance/UIWizardImportApp.h \
459 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
460 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
461 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
462 src/wizards/firstrun/UIWizardFirstRun.h \
463 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
464
465ifdef VBOX_GUI_WITH_NETWORK_MANAGER
466 VirtualBox_QT_MOCHDRS += \
467 src/net/UINetworkManager.h \
468 src/net/UINetworkManagerDialog.h \
469 src/net/UINetworkManagerIndicator.h \
470 src/net/UINetworkRequest.h \
471 src/net/UINetworkRequestWidget.h \
472 src/net/UINetworkReply.h \
473 src/net/UINetworkCustomer.h \
474 src/net/UIUpdateManager.h \
475 src/net/UIDownloader.h \
476 src/net/UIDownloaderAdditions.h \
477 src/net/UIDownloaderExtensionPack.h \
478 src/net/UIDownloaderUserManual.h \
479 src/settings/global/UIGlobalSettingsProxy.h \
480 src/settings/global/UIGlobalSettingsUpdate.h
481endif
482
483ifdef VBOX_WITH_DRAG_AND_DROP
484 VirtualBox_QT_MOCHDRS += \
485 src/runtime/UIDnDHandler.h
486 ifdef VBOX_WITH_DRAG_AND_DROP_GH
487 VirtualBox_QT_MOCHDRS += \
488 src/runtime/UIDnDMIMEData.h
489 endif
490endif
491
492VirtualBox_QT_MOCHDRS.darwin += \
493 src/platform/darwin/UIWindowMenuManager.h
494
495# Sources containing local definitions of classes that use the Q_OBJECT macro.
496VirtualBox_QT_MOCSRCS = \
497 src/UIVMLogViewer.cpp \
498 src/extensions/QIArrowSplitter.cpp \
499 src/extensions/QISplitter.cpp \
500 src/extensions/QIAdvancedToolBar.cpp \
501 src/extradata/UIExtraDataManager.cpp \
502 src/globals/UIActionPool.cpp \
503 src/globals/UIThreadPool.cpp \
504 src/medium/UIMediumEnumerator.cpp \
505 src/medium/UIMediumManager.cpp \
506 src/runtime/UIActionPoolRuntime.cpp \
507 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
508 src/runtime/UIFrameBuffer.cpp \
509 src/runtime/UIIndicatorsPool.cpp \
510 src/runtime/UIStatusBarEditorWindow.cpp \
511 src/selector/UIActionPoolSelector.cpp \
512 src/selector/UIVMDesktop.cpp \
513 src/settings/machine/UIMachineSettingsStorage.cpp \
514 src/settings/machine/UIMachineSettingsUSB.cpp \
515 src/widgets/UIHotKeyEditor.cpp \
516 src/widgets/UIMiniToolBar.cpp \
517 src/widgets/UIPortForwardingTable.cpp \
518 src/wizards/importappliance/UIWizardImportApp.cpp
519
520ifdef VBOX_GUI_WITH_NETWORK_MANAGER
521 VirtualBox_QT_MOCSRCS += \
522 src/net/UINetworkReply.cpp \
523 src/net/UIUpdateManager.cpp
524endif
525
526VirtualBox_QT_MOCSRCS.darwin += \
527 src/platform/darwin/UIWindowMenuManager.cpp
528VirtualBox_QT_MOCSRCS.win += \
529 src/extensions/QIFileDialog.cpp
530
531ifdef VBOX_WITH_XPCOM
532 VirtualBox_QT_MOCSRCS += \
533 src/globals/COMDefs.cpp
534endif
535
536VirtualBox_SOURCES = \
537 src/main.cpp \
538 src/UIMediumTypeChangeDialog.cpp \
539 src/VBoxAboutDlg.cpp \
540 src/VBoxGlobalSettings.cpp \
541 src/VBoxLicenseViewer.cpp \
542 src/VBoxSnapshotDetailsDlg.cpp \
543 src/VBoxTakeSnapshotDlg.cpp \
544 src/UIVMInfoDialog.cpp \
545 src/UIVMLogViewer.cpp \
546 src/converter/UIConverter.cpp \
547 src/converter/UIConverterBackendCOM.cpp \
548 src/converter/UIConverterBackendGlobal.cpp \
549 src/extensions/QIAdvancedSlider.cpp \
550 src/extensions/QIArrowButtonPress.cpp \
551 src/extensions/QIArrowButtonSwitch.cpp \
552 src/extensions/QIArrowSplitter.cpp \
553 src/extensions/QIDialog.cpp \
554 src/extensions/QIDialogButtonBox.cpp \
555 src/extensions/QIFileDialog.cpp \
556 src/extensions/QILabel.cpp \
557 src/extensions/QILabelSeparator.cpp \
558 src/extensions/QILineEdit.cpp \
559 src/extensions/QIListView.cpp \
560 src/extensions/QIMainDialog.cpp \
561 src/extensions/QIMenu.cpp \
562 src/extensions/QIMessageBox.cpp \
563 src/extensions/QIProcess.cpp \
564 src/extensions/QIRichTextLabel.cpp \
565 src/extensions/QIRichToolButton.cpp \
566 src/extensions/QISplitter.cpp \
567 src/extensions/QIStatusBar.cpp \
568 src/extensions/QIStatusBarIndicator.cpp \
569 src/extensions/QITableView.cpp \
570 src/extensions/QITreeView.cpp \
571 src/extensions/QITreeWidget.cpp \
572 src/extensions/QIWidgetValidator.cpp \
573 src/extensions/QIAdvancedToolBar.cpp \
574 src/extensions/graphics/QIGraphicsView.cpp \
575 src/extensions/graphics/QIGraphicsWidget.cpp \
576 src/extradata/UIExtraDataDefs.cpp \
577 src/extradata/UIExtraDataManager.cpp \
578 src/globals/UIDefs.cpp \
579 src/globals/COMDefs.cpp \
580 src/globals/UIActionPool.cpp \
581 src/globals/UIAnimationFramework.cpp \
582 src/globals/UIIconPool.cpp \
583 src/globals/UIImageTools.cpp \
584 src/globals/UIMainEventListener.cpp \
585 src/globals/UIMessageCenter.cpp \
586 src/globals/UIModalWindowManager.cpp \
587 src/globals/UIPopupCenter.cpp \
588 src/globals/UIShortcutPool.cpp \
589 src/globals/UIThreadPool.cpp \
590 src/globals/VBoxGlobal.cpp \
591 src/medium/UIMediumDefs.cpp \
592 src/medium/UIMedium.cpp \
593 src/medium/UIMediumEnumerator.cpp \
594 src/medium/UIMediumManager.cpp \
595 src/objects/UIRichTextString.cpp \
596 src/runtime/UIActionPoolRuntime.cpp \
597 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
598 src/runtime/UIConsoleEventHandler.cpp \
599 src/runtime/UIFrameBuffer.cpp \
600 src/runtime/UIIndicatorsPool.cpp \
601 src/runtime/UIKeyboardHandler.cpp \
602 src/runtime/UIMachine.cpp \
603 src/runtime/UIMachineLogic.cpp \
604 src/runtime/UIMachineView.cpp \
605 src/runtime/UIMachineWindow.cpp \
606 src/runtime/UIMenuBarEditorWindow.cpp \
607 src/runtime/UIMouseHandler.cpp \
608 src/runtime/UIMultiScreenLayout.cpp \
609 src/runtime/UISession.cpp \
610 src/runtime/UISlidingToolBar.cpp \
611 src/runtime/UIStatusBarEditorWindow.cpp \
612 src/runtime/UIVMCloseDialog.cpp \
613 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
614 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
615 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
616 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
617 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
618 src/runtime/normal/UIMachineLogicNormal.cpp \
619 src/runtime/normal/UIMachineViewNormal.cpp \
620 src/runtime/normal/UIMachineWindowNormal.cpp \
621 src/runtime/scale/UIKeyboardHandlerScale.cpp \
622 src/runtime/scale/UIMachineLogicScale.cpp \
623 src/runtime/scale/UIMachineViewScale.cpp \
624 src/runtime/scale/UIMachineWindowScale.cpp \
625 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
626 src/runtime/seamless/UIMachineLogicSeamless.cpp \
627 src/runtime/seamless/UIMachineViewSeamless.cpp \
628 src/runtime/seamless/UIMachineWindowSeamless.cpp \
629 src/selector/UIActionPoolSelector.cpp \
630 src/selector/UIVMDesktop.cpp \
631 src/selector/UIVMItem.cpp \
632 src/selector/UIVirtualBoxEventHandler.cpp \
633 src/selector/UISelectorWindow.cpp \
634 src/selector/graphics/chooser/UIGChooser.cpp \
635 src/selector/graphics/chooser/UIGChooserModel.cpp \
636 src/selector/graphics/chooser/UIGChooserView.cpp \
637 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
638 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
639 src/selector/graphics/chooser/UIGChooserItem.cpp \
640 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
641 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
642 src/selector/graphics/details/UIGDetails.cpp \
643 src/selector/graphics/details/UIGDetailsModel.cpp \
644 src/selector/graphics/details/UIGDetailsView.cpp \
645 src/selector/graphics/details/UIGDetailsItem.cpp \
646 src/selector/graphics/details/UIGDetailsGroup.cpp \
647 src/selector/graphics/details/UIGDetailsSet.cpp \
648 src/selector/graphics/details/UIGDetailsElement.cpp \
649 src/selector/graphics/details/UIGDetailsElements.cpp \
650 src/selector/graphics/details/UIGMachinePreview.cpp \
651 src/selector/VBoxSnapshotsWgt.cpp \
652 src/settings/UISettingsDefs.cpp \
653 src/settings/UISettingsDialog.cpp \
654 src/settings/UISettingsDialogSpecific.cpp \
655 src/settings/UISettingsPage.cpp \
656 src/settings/UISettingsSerializer.cpp \
657 src/settings/VBoxSettingsSelector.cpp \
658 src/settings/global/UIGlobalSettingsExtension.cpp \
659 src/settings/global/UIGlobalSettingsGeneral.cpp \
660 src/settings/global/UIGlobalSettingsInput.cpp \
661 src/settings/global/UIGlobalSettingsLanguage.cpp \
662 src/settings/global/UIGlobalSettingsDisplay.cpp \
663 src/settings/global/UIGlobalSettingsNetwork.cpp \
664 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
665 src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp \
666 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
667 src/settings/machine/UIMachineSettingsAudio.cpp \
668 src/settings/machine/UIMachineSettingsDisplay.cpp \
669 src/settings/machine/UIMachineSettingsGeneral.cpp \
670 src/settings/machine/UIMachineSettingsInterface.cpp \
671 src/settings/machine/UIMachineSettingsNetwork.cpp \
672 src/settings/machine/UIMachineSettingsParallel.cpp \
673 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
674 src/settings/machine/UIMachineSettingsSF.cpp \
675 src/settings/machine/UIMachineSettingsSFDetails.cpp \
676 src/settings/machine/UIMachineSettingsSerial.cpp \
677 src/settings/machine/UIMachineSettingsStorage.cpp \
678 src/settings/machine/UIMachineSettingsSystem.cpp \
679 src/settings/machine/UIMachineSettingsUSB.cpp \
680 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
681 src/widgets/UIApplianceEditorWidget.cpp \
682 src/widgets/UIApplianceExportEditorWidget.cpp \
683 src/widgets/UIApplianceImportEditorWidget.cpp \
684 src/widgets/UIBar.cpp \
685 src/widgets/UIBootTable.cpp \
686 src/widgets/UIHostComboEditor.cpp \
687 src/widgets/UIHotKeyEditor.cpp \
688 src/widgets/UILineTextEdit.cpp \
689 src/widgets/UIMenuBar.cpp \
690 src/widgets/UIPopupBox.cpp \
691 src/widgets/UIPopupPane.cpp \
692 src/widgets/UIPopupPaneTextPane.cpp \
693 src/widgets/UIPopupPaneButtonPane.cpp \
694 src/widgets/UIPopupStack.cpp \
695 src/widgets/UIPopupStackViewport.cpp \
696 src/widgets/UIPortForwardingTable.cpp \
697 src/widgets/UIProgressDialog.cpp \
698 src/widgets/UISpecialControls.cpp \
699 src/widgets/UIToolBar.cpp \
700 src/widgets/VBoxFilePathSelectorWidget.cpp \
701 src/widgets/VBoxGuestRAMSlider.cpp \
702 src/widgets/VBoxMediaComboBox.cpp \
703 src/widgets/UIMiniToolBar.cpp \
704 src/widgets/VBoxOSTypeSelectorButton.cpp \
705 src/widgets/UINameAndSystemEditor.cpp \
706 src/widgets/UIWarningPane.cpp \
707 src/widgets/UIFilmContainer.cpp \
708 src/widgets/graphics/UIGraphicsButton.cpp \
709 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
710 src/widgets/graphics/UIGraphicsZoomButton.cpp \
711 src/widgets/graphics/UIGraphicsToolBar.cpp \
712 src/widgets/graphics/UIGraphicsTextPane.cpp \
713 src/wizards/UIWizard.cpp \
714 src/wizards/UIWizardPage.cpp \
715 src/wizards/newvm/UIWizardNewVM.cpp \
716 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
717 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
718 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
719 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
720 src/wizards/newvd/UIWizardNewVD.cpp \
721 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
722 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
723 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
724 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
725 src/wizards/clonevm/UIWizardCloneVM.cpp \
726 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
727 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
728 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
729 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
730 src/wizards/clonevd/UIWizardCloneVD.cpp \
731 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
732 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
733 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
734 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
735 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
736 src/wizards/exportappliance/UIWizardExportApp.cpp \
737 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
738 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
739 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
740 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
741 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
742 src/wizards/importappliance/UIWizardImportApp.cpp \
743 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
744 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
745 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
746 src/wizards/firstrun/UIWizardFirstRun.cpp \
747 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
748
749ifdef VBOX_GUI_WITH_NETWORK_MANAGER
750VirtualBox_SOURCES += \
751 src/net/UINetworkManager.cpp \
752 src/net/UINetworkManagerDialog.cpp \
753 src/net/UINetworkManagerIndicator.cpp \
754 src/net/UINetworkRequest.cpp \
755 src/net/UINetworkRequestWidget.cpp \
756 src/net/UINetworkReply.cpp \
757 src/net/UINetworkCustomer.cpp \
758 src/net/UIDownloader.cpp \
759 src/net/UIDownloaderAdditions.cpp \
760 src/net/UIDownloaderExtensionPack.cpp \
761 src/net/UIDownloaderUserManual.cpp \
762 src/net/UIUpdateDefs.cpp \
763 src/net/UIUpdateManager.cpp \
764 src/settings/global/UIGlobalSettingsProxy.cpp \
765 src/settings/global/UIGlobalSettingsUpdate.cpp
766endif
767
768VirtualBox_SOURCES.darwin += \
769 src/platform/darwin/UIAbstractDockIconPreview.cpp \
770 src/platform/darwin/UICocoaDockIconPreview.mm \
771 src/platform/darwin/UIWindowMenuManager.cpp \
772
773if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
774 VirtualBox_SOURCES += \
775 src/platform/x11/UIDesktopServices_x11.cpp \
776 src/platform/x11/VBoxX11Helper.cpp \
777 src/platform/x11/XKeyboard-new.cpp
778endif
779
780VirtualBox_SOURCES.win += \
781 src/platform/win/VirtualBox.rc \
782 src/platform/win/UIDesktopServices_win.cpp \
783 src/platform/win/VBoxUtils-win.cpp \
784 src/platform/win/WinKeyboard.cpp
785
786VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
787VirtualBox_SOURCES.darwin += \
788 src/platform/darwin/CocoaEventHelper.mm \
789 src/platform/darwin/DarwinKeyboard.cpp \
790 src/platform/darwin/UICocoaApplication.mm \
791 src/platform/darwin/UICocoaSpecialControls.mm \
792 src/platform/darwin/UIDesktopServices_darwin.cpp \
793 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
794 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
795 src/platform/darwin/VBoxUtils-darwin.cpp
796VirtualBox_QT_MOCHDRS.darwin += \
797 src/platform/darwin/UICocoaSpecialControls.h
798
799ifdef VBOX_WITH_ICHAT_THEATER
800 VirtualBox_SOURCES.darwin += \
801 src/platform/darwin/VBoxIChatTheaterWrapper.m
802endif
803
804if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
805 VirtualBox_SOURCES += \
806 src/VBoxFBOverlay.cpp \
807 src/VBoxGLSupportInfo.cpp
808endif
809
810#
811# Drag and drop support.
812#
813ifdef VBOX_WITH_DRAG_AND_DROP
814 VirtualBox_SOURCES += \
815 src/runtime/UIDnDHandler.cpp
816 ifdef VBOX_WITH_DRAG_AND_DROP_GH
817 VirtualBox_SOURCES += \
818 src/runtime/UIDnDMIMEData.cpp
819 VirtualBox_SOURCES.win += \
820 src/runtime/UIDnDDropSource_win.cpp \
821 src/runtime/UIDnDDataObject_win.cpp \
822 src/runtime/UIDnDEnumFormat_win.cpp
823 endif
824endif
825
826# The Qt modules we're using.
827# (The include directory and lib/framework for each module will be added by the Qt4 unit.)
828VirtualBox_QT_MODULES = Core Gui Network
829if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
830 VirtualBox_QT_MODULES += OpenGL
831endif
832
833# Pull in the ui files
834$(eval VirtualBox_SOURCES += $(FORMS))
835
836# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
837VirtualBox_SOURCES += VirtualBox1.qrc
838VirtualBox1.qrc_RCCFLAGS = -name BASIC1
839VirtualBox_SOURCES += VirtualBox2.qrc
840VirtualBox2.qrc_RCCFLAGS = -name BASIC2
841VirtualBox_SOURCES += VirtualBox1_hidpi.qrc
842VirtualBox1_hidpi.qrc_RCCFLAGS = -name BASIC1_HIDPI
843VirtualBox_SOURCES += VirtualBox2_hidpi.qrc
844VirtualBox2_hidpi.qrc_RCCFLAGS = -name BASIC2_HIDPI
845ifeq ($(KBUILD_TARGET),darwin)
846 VirtualBox_SOURCES += VirtualBoxMac.qrc
847 VirtualBoxMac.qrc_RCCFLAGS = -name MAC
848else
849 VirtualBox_SOURCES += VirtualBoxOther.qrc
850 VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
851endif
852VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
853$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
854if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
855 VirtualBox_SOURCES += VirtualBoxShaders.qrc
856 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
857endif
858
859# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
860VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
861 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
862# Compress the translation units.
863VirtualBox_LRCFLAGS = -silent
864# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
865VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
866
867
868## @todo how to detect what tool is used?
869## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
870# more generic -Wno-extra
871# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
872ifdef VBOX_WITH_XPCOM
873 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
874endif
875
876
877#
878# Generate the COM wrappers.
879#
880includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
881VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
882VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
883VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
884VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
885
886## @todo kmk doesn't remake optional outputs when they are missing...
887$$(VirtualBox_0_OUTDIR)/include/COMWrappers \
888+ $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
889+| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
890, $(VirtualBox_VBOX_COMWRAPPERS) \
891, $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
892 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
893): \
894 $(VBOX_XIDL_FILE) \
895 $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
896 $(VBOX_FILESPLIT) \
897 | $$(dir $$@)
898 $(call MSG_GENERATE,VirtualBox,$<,$@)
899 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
900 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
901 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
902 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
903 $(APPEND) "$@"
904
905# alias for generating the COM Wrappers file.
906testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
907
908
909#
910# Generate qrc file with branded icons.
911#
912VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
913VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
914$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
915 $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
916 $(PATH_ROOT)/Config.kmk \
917 | $$(dir $$@)
918 $(call MSG_GENERATE,VirtualBox,$<,$@)
919 $(QUIET)$(SED) \
920 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
921 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
922 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
923 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
924 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
925 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
926 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
927 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
928 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
929 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
930 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
931 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
932 --output $@ \
933 $<
934
935
936#
937# Precompiled header - non-functional atm.
938#
939ifdef VBOX_WITH_PRECOMPILED_HEADERS
940 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
941 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
942 if1of ($(KBUILD_TARGET),win)
943 VirtualBox_CXXFLAGS += -Yuprecomp.h -Fp$$(VirtualBoxPch_0_OUTDIR)/src/precomp.pch
944 VirtualBox_INTERMEDIATES += $(VirtualBoxPch_0_OUTDIR)/src/precomp.pch
945 else
946 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
947 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
948 $(VirtualBox_SOURCES) \
949 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
950 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
951 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
952endif
953
954 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
955 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
956 $(APPEND) -t $(out)
957 endef
958
959 MISCBINS += VirtualBoxPch
960 VirtualBoxPch_EXTENDS = VirtualBox
961 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
962 VirtualBoxPch_INSTTYPE = none
963 VirtualBoxPch_NAME = VirtualBoxPch
964 if1of ($(KBUILD_TARGET),win)
965 VirtualBoxPch_INTERMEDIATES = $(filter-out %.pch, $(VirtualBox_INTERMEDIATES))
966 VirtualBoxPch_SOURCES = src/precomp.cpp
967 VirtualBoxPch_CXXFLAGS = $(filter-out -Yu%, $(VirtualBox_CXXFLAGS)) -Ycprecomp.h -Yd -FR\tmp\foo.sbr
968 $$(VirtualBoxPch_0_OUTDIR)/src/precomp.pch: $$(VirtualBoxPch_0_OUTDIR)/src/precomp.obj
969 else
970 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
971 VirtualBoxPch_SOURCES = src/precomp.h
972 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
973 VirtualBoxPch_CXXOBJSUFF = .h.gch
974 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
975 endif
976 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
977 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
978 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
979 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
980 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
981 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
982 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
983
984endif
985
986ifeq ($(KBUILD_TARGET),win)
987#
988# On Windows we'll have to generate/edit part of the resource file.
989# The IDI_ICON1 name is Qt specific.
990#
991src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
992src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
993src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
994
995$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
996 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
997
998endif # win
999
1000
1001ifeq ($(KBUILD_TARGET),darwin)
1002#
1003# Create directories for each approved language or the application
1004# menu won't be translated.
1005#
1006INSTALLS += VirtualBox.lproj
1007VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1008VirtualBox.lproj_MODE = 755
1009VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1010
1011#
1012# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1013# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1014#
1015INSTALLS += VirtualBox.app
1016VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1017VirtualBox.app_MODE = 644
1018VirtualBox.app_SOURCES = \
1019 src/platform/darwin/PkgInfo \
1020 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1021 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1022 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1023 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1024 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1025 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1026 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1027 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1028 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1029 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1030 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1031
1032$$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1033 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1034 $(QUIET)$(RM) -f $@
1035 $(QUIET)$(SED) \
1036 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1037 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1038 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1039 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1040 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1041 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1042 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1043 $< > $@
1044
1045INSTALLS += VirtualBoxVM.app
1046VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1047VirtualBoxVM.app_MODE = 644
1048VirtualBoxVM.app_SOURCES = \
1049 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1050 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1051 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1052VirtualBoxVM.app_SYMLINKS = \
1053 MacOS=>../../../MacOS/
1054
1055$$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1056 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1057 $(QUIET)$(RM) -f $@
1058 $(QUIET)$(SED) \
1059 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1060 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1061 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1062 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1063 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1064 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1065 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1066 --output $@ $<
1067
1068PROGRAMS += vmstarter
1069vmstarter_TEMPLATE = VBOXR3EXE
1070vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1071vmstarter_LDFLAGS += -framework AppKit
1072vmstarter_INST = $(INST_BIN)vmstarter
1073
1074INSTALLS += vmstarter.app
1075vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1076vmstarter.app_MODE = 644
1077vmstarter.app_SOURCES = \
1078 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1079 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1080 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1081vmstarter.app_SYMLINKS = \
1082 MacOS=>../../../MacOS \
1083
1084$$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1085 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1086 $(QUIET)$(RM) -f $@
1087 $(QUIET)$(SED) \
1088 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1089 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1090 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1091 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1092 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1093 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1094 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1095 --output $@ $<
1096endif # darwin
1097
1098#
1099# App for testing GL support
1100#
1101if defined(VBOX_WITH_VIDEOHWACCEL)
1102 if1of ($(KBUILD_TARGET), win linux freebsd)
1103 LIBRARIES += VBoxOGL2D
1104 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
1105 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1106 VBoxOGL2D_QT_MODULES += OpenGL
1107 VBoxOGL2D_SOURCES = \
1108 src/VBoxGLSupportInfo.cpp
1109 VBoxOGL2D_INCS = include
1110 endif
1111endif
1112
1113#
1114# Testcase for the darwin keyboard routines.
1115#
1116ifdef VBOX_WITH_TESTCASES
1117PROGRAMS.darwin += tstDarwinKeyboard
1118tstDarwinKeyboard_NAME = tstDarwinKeyboard
1119tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1120tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1121tstDarwinKeyboard_INCS = include
1122tstDarwinKeyboard_SOURCES = \
1123 src/platform/darwin/tstDarwinKeyboard.cpp \
1124 src/platform/darwin/DarwinKeyboard.cpp
1125tstDarwinKeyboard_SOURCES.amd64 = \
1126 src/platform/darwin/CocoaEventHelper.mm
1127tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1128tstDarwinKeyboard_LIBS = \
1129 $(LIB_RUNTIME)
1130endif
1131
1132
1133# Unset everything that was loaded from VBoxUI.pro.
1134TEMPLATE := $(SAVED_TEMPLATE)
1135SAVED_TEMPLATE :=
1136LANGUAGE :=
1137FORMS :=
1138TRANSLATIONS :=
1139IMAGES :=
1140
1141
1142#
1143# Doxygen documentation.
1144#
1145QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1146BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1147OTHER_CLEAN += \
1148 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1149 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1150
1151# Generate the Doxyfile
1152$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1153 $(PATH_SUB_CURRENT)/Doxyfile \
1154 $(PATH_SUB_CURRENT)/Makefile.kmk \
1155 | $$(dir $$@)
1156 $(RM) -f $@ [email protected] [email protected]
1157 $(CP) -f $< [email protected]
1158 $(APPEND) [email protected]
1159 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1160 $(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1161 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1162 $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1163 $(APPEND) [email protected]
1164 $(APPEND) [email protected] "INPUT = $(dir $<)"
1165 $(APPEND) [email protected]
1166 $(MV) -f [email protected] $@
1167
1168# Do the actual job.
1169$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) | $(QTGUI_DOXYFILE_OUTPUT)/
1170 $(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1171 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1172 $(APPEND) $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1173
1174# aliases
1175docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1176if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1177docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1178endif
1179
1180
1181
1182# Commit the magic.
1183# (note: before custom rules that make usage of generated variables!).
1184include $(FILE_KBUILD_SUB_FOOTER)
1185
1186#
1187# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1188#
1189# NOTE: This target is intended to be run only by the GUI maintainer shortly
1190# before a new product release. VirtualBox_xx_YY.ts is a template for new
1191# languages and should never be actually translated or installed.
1192#
1193# Use the checknls target for checking again common mistakes done by the
1194# translators.
1195#
1196# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1197# lupdate call
1198#
1199#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1200checknls::
1201 # Check for missing :/ in image paths
1202 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1203
1204updatenls:: makeallnls nls/VirtualBox_en.ts
1205
1206makeallnls:: \
1207 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1208 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1209 $(call MSG_L1,lupdate all languages (nls/*.ts))
1210 $(QUIET)$(TOOL_QT4_LUPDATE) \
1211 $^ \
1212 -ts \
1213 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1214 nls/VirtualBox_xx_YY.ts
1215
1216# Create the English translation file. This is something special cause it will
1217# contain the plural forms only.
1218nls/VirtualBox_en.ts: \
1219 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1220 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1221 $(call MSG_L1,lupdate $@)
1222 $(QUIET)$(TOOL_QT4_LUPDATE) \
1223 $^ \
1224 -ts \
1225 $@
1226 $(QUIET)$(SED) -n -i -e \
1227 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1228 $@
1229
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