VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk@ 7487

Last change on this file since 7487 was 7487, checked in by vboxsync, 17 years ago

Some minor fixes for QIAbstractWizard class.
VBoxRegistrationDlg ported to qt4 (except mouse-on-anchor signal - it requires porting QIRichLabel - later).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 29.8 KB
Line 
1# $Id: Makefile.kmk 7487 2008-03-18 17:17:30Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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
18# include qmake project file
19include VBoxUI.pro
20
21# Import QDesigner UI sources
22VirtualBox_QT_UISRCS3 := $(FORMS)
23# Import translation sources
24VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS)
25
26# reset things to avoid possible conflicts with kBuild
27TEMPLATE :=
28LANGUAGE :=
29FORMS :=
30TRANSLATIONS :=
31IMAGES :=
32
33VBOX_WITH_REGISTRATION := 1
34VBOX_WITH_REGISTRATION_REQUEST := 1
35
36DEPTH = ../../../..
37include $(PATH_KBUILD)/header.kmk
38
39# Disable the debugger for now, this is another story.
40VBOX_WITH_DEBUGGER_GUI :=
41DEFS := $(filter-out VBOX_WITH_DEBUGGER_GUI,$(DEFS))
42
43#
44# Handmade configuration of qt4 - very annoying, this needs to
45# be cleaned up properly later some time (not important now).
46#
47ifndef VBOX_PATH_QT4
48 if1of ($(USERNAME), bird)
49 # gentoo (64-bit)
50 VBOX_PATH_QT4 ?= /usr
51 VBOX_PATH_QT4_BIN ?= /usr/bin
52 VBOX_PATH_QT4_INCLUDE ?= /usr/include/qt4
53 VBOX_PATH_QT4_LIB ?= /usr/lib/qt4
54 VBOX_PATH_QT4_LIB64 ?= /usr/lib/qt4
55 VBOX_PATH_QT4_SHARE ?= /usr/share/qt4
56 endif
57endif
58VBOX_PATH_QT4 ?= /usr
59VBOX_PATH_QT4_BIN ?= $(VBOX_PATH_QT4)/bin
60VBOX_PATH_QT4_INCLUDE ?= $(VBOX_PATH_QT4)/include
61VBOX_PATH_QT4_LIB ?= $(VBOX_PATH_QT4)/lib
62VBOX_PATH_QT4_LIB64 ?= $(VBOX_PATH_QT4)/lib64
63VBOX_PATH_QT4_SHARE ?= $(VBOX_PATH_QT4)
64
65VBOX_MODULE_QT4 = QtCore QtGui QtNetwork Qt3Support
66VBOX_DEFS_QT4 = QT_CORE_LIB QT_GUI_LIB QT_NETWORK_LIB QT_QT3SUPPORT_LIB
67
68ifeq ($(BUILD_TARGET),darwin)
69 VBOX_MODULE_QT4 += QtSql QtXml
70 VBOX_DEFS_QT4 = QT_SQL_LIB QT_XML_LIB
71 VBOX_INCS_QT4 = $(foreach mod, $(VBOX_MODULE_QT4), $(join $(join /Library/Frameworks/, $(mod)), .framework/Headers))
72 VBOX_LIBS_QT4 =
73else
74 VBOX_INCS_QT4 = \
75 $(VBOX_PATH_QT4_SHARE)/mkspecs/linux-g++ \
76 $(addprefix $(VBOX_PATH_QT4_INCLUDE)/, $(VBOX_MODULE_QT4) Qt) \
77 $(VBOX_PATH_QT4_INCLUDE)
78 VBOX_LIBS_QT4 = $(VBOX_MODULE_QT4)
79endif
80
81# Warn about all what you know about porting qt3->qt4.
82# Disable this if you like to see something on your screen.
83#VBOX_DEFS_QT4 += QT3_SUPPORT_WARNINGS
84# Some default defs
85VBOX_DEFS_QT4 += QT3_SUPPORT QT_SHARED HAVE_CONFIG_H QT_NO_DEBUG
86
87VBOX_UIC3 ?= $(VBOX_PATH_QT4_BIN)/uic3
88VBOX_UIC4 ?= $(VBOX_PATH_QT4_BIN)/uic
89VBOX_MOC4 ?= $(VBOX_PATH_QT4_BIN)/moc
90VBOX_RCC4 ?= $(VBOX_PATH_QT4_BIN)/rcc
91VBOX_LUPDATE4 ?= $(VBOX_PATH_QT4_BIN)/lupdate
92VBOX_LRELEASE4 ?= $(VBOX_PATH_QT4_BIN)/lrelease
93
94# Template copy from the qt3 stuff. Appended a "4" on the
95# relevant places.
96
97#
98# Template for building Qt GUI executables.
99#
100
101TEMPLATE_VBOXQT4GUIEXE = VBox Qt4 GUI Executable
102TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT $(ARCH_BITS_DEFS) $(VBOX_DEFS_QT4)
103TEMPLATE_VBOXQT4GUIEXE_INCS = \
104 $(VBOX_PATH_SDK)/include \
105 $(VBOX_INCS_QT4)
106
107ifeq ($(BUILD_TARGET),win)
108 # drag in library configuration (we need QMAKE_PRL_DEFINES)
109 ifneq ($(LIB_QT_PRL),)
110 include $(LIB_QT_PRL)
111 endif
112 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_VCC_TOOL)
113 TEMPLATE_VBOXQT4GUIEXE_DEFS += \
114 _WIN32_WINNT=0x0500 UNICODE _UNICODE \
115 QT_DLL _CRT_SECURE_NO_DEPRECATE \
116 $(QMAKE_PRL_DEFINES)
117 ## @todo VCC70 flags?
118 ifdef VBOX_USE_VCC80
119 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
120 -nologo -Zm200 -W3 -MD -Zi -EHsc -Zc:wchar_t-
121 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -RTCsu
122 else
123 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
124 -nologo -Zm200 -W3 -MD -Zi -GX
125 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -GZ
126 endif
127 TEMPLATE_VBOXQT4GUIEXE_INCS += \
128 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC)
129 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS = \
130 /NOD /NOLOGO /INCREMENTAL:NO /MAPINFO:EXPORTS /DEBUG \
131 /DELAYLOAD:oleaut32.dll
132 TEMPLATE_VBOXQT4GUIEXE_SDKS = WINPSDK
133 TEMPLATE_VBOXQT4GUIEXE_LIBS = \
134 $(LIB_QT) \
135 $(LIB_QTMAIN) \
136 $(LIB_RUNTIME) \
137 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \
138 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \
139 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \
140 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \
141 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
142 TEMPLATE_VBOXQT4GUIEXE_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS)
143
144else # the gcc guys:
145 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_GCC_TOOL)
146 TEMPLATE_VBOXQT4GUIEXE_DEFS.linux = _REENTRANT
147
148 TEMPLATE_VBOXQT4GUIEXE_DEFS.solaris = _REENTRANT
149
150 TEMPLATE_VBOXQT4GUIEXE_INCS += \
151 $(LIB_SDL_INC)
152 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
153 -pipe -Wall -W -frtti -fno-exceptions -Wno-non-virtual-dtor \
154 -Wno-long-long -fshort-wchar -fno-strict-aliasing \
155 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden)
156 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.x86 = -m32
157 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.amd64 = -m64
158 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.linux = -pthread
159 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.x86 = -m32
160 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.amd64 = -m64
161 TEMPLATE_VBOXQT4GUIEXE_LIBS = \
162 $(VBOX_LIBS_QT4) \
163 $(LIB_SDL) \
164 $(LIB_RUNTIME) \
165 $(LIB_REM) \
166 $(LIB_VMM)
167
168 ifeq ($(BUILD_TARGET_ARCH),amd64)
169 TEMPLATE_VBOXQT4GUIEXE_LIBPATH = \
170 $(VBOX_PATH_QT4_LIB64) $(VBOX_PATH_QT4_LIB)
171 else
172 TEMPLATE_VBOXQT4GUIEXE_LIBPATH = \
173 $(VBOX_PATH_QT4_LIB)
174 endif
175
176 ifeq ($(BUILD_TARGET),linux)
177 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(VBOX_LD_as_needed)
178 else ifeq ($(BUILD_TARGET),darwin)
179 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(foreach mod, $(VBOX_MODULE_QT4), -framework $(mod)) \
180 -framework Carbon -framework QuickTime -bind_at_load
181 TEMPLATE_VBOXQT4GUIEXE_LIBS +=
182 TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
183 else ifeq ($(BUILD_TARGET),os2)
184 # drag in library configuration (we need QMAKE_PRL_DEFINES)
185 ifneq ($(LIB_QT_PRL),)
186 include $(LIB_QT_PRL)
187 endif
188 TEMPLATE_VBOXQT4GUIEXE_DEFS += $(QMAKE_PRL_DEFINES)
189 TEMPLATE_VBOXQT4GUIEXE_LIBS +=
190 TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
191 else
192 TEMPLATE_VBOXQT4GUIEXE_INCS += \
193 $(VBOX_XCURSOR_INCS)
194 TEMPLATE_VBOXQT4GUIEXE_LIBS += \
195 $(VBOX_XCURSOR_LIBS) \
196 Xext \
197 X11 \
198 m \
199 $(LIB_PTHREAD)
200 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \
201 $(VBOX_LIBPATH_X11)
202 ifeq ($(BUILD_TARGET),freebsd)
203 TEMPLATE_VBOXQT4GUIEXE_INCS += \
204 /usr/include \
205 /usr/X11R6/include \
206 /usr/local/include
207 endif
208 ifeq ($(BUILD_TARGET),solaris)
209 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '-R$$(VBOX_ORIGIN):$$(VBOX_ORIGIN)/qtgcc/lib'
210 TEMPLATE_VBOXQT4GUIEXE_LIBS += \
211 rt socket nsl
212 endif
213 endif
214
215endif
216
217# Add COM/XPCOM stuff
218TEMPLATE_VBOXQT4GUIEXE_LIBS += \
219 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB)
220ifdef VBOX_WITH_XPCOM
221 ## @todo may be worth creating the VBOX_XPCOM SDK def
222 TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM
223 TEMPLATE_VBOXQT4GUIEXE_INCS += \
224 $(VBOX_XPCOM_INCS)
225 TEMPLATE_VBOXQT4GUIEXE_LIBS += \
226 $(LIB_XPCOM)
227endif
228
229#
230# Template for building Qt GUI components.
231#
232TEMPLATE_VBOXQT4GUI = VBox Qt GUI Components
233TEMPLATE_VBOXQT4GUI_EXTENDS = VBOXQTGUIEXE
234TEMPLATE_VBOXQT4GUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQT4GUIEXE_LIBS))
235ifeq ($(BUILD_TARGET),darwin)
236 TEMPLATE_VBOXQT4GUI_LDFLAGS = $(filter-out -framework Carbon -framework QuickTime -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS))
237endif
238ifeq ($(filter-out solaris.x86 %.amd64,$(BUILD_TARGET).$(BUILD_TARGET_ARCH)),)
239 ifneq ($(BUILD_TARGET),win)
240 TEMPLATE_VBOXQT4GUI_DEFS = PIC $(TEMPLATE_VBOXQT4GUIEXE_DEFS)
241 TEMPLATE_VBOXQT4GUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CFLAGS)
242 TEMPLATE_VBOXQT4GUI_CXXFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS)
243 TEMPLATE_VBOXQT4GUI_LDFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS)
244 endif
245endif
246
247
248#
249# exclude inappropriate UI content
250#
251ifndef VBOX_WITH_REGISTRATION
252VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxRegistrationDlg.ui,$(VirtualBox_QT_UISRCS3))
253endif
254
255
256#
257# filter ported UI content
258#
259VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxAboutDlg.ui,$(VirtualBox_QT_UISRCS3))
260VirtualBox_QT_UISRCS4 += ui/VBoxAboutDlg.ui
261
262VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxCloseVMDlg.ui,$(VirtualBox_QT_UISRCS3))
263VirtualBox_QT_UISRCS4 += ui/VBoxCloseVMDlg.ui
264
265VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxNewVMWzd.ui,$(VirtualBox_QT_UISRCS3))
266VirtualBox_QT_UISRCS4 += ui/VBoxNewVMWzd.ui
267
268VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxNewHDWzd.ui,$(VirtualBox_QT_UISRCS3))
269VirtualBox_QT_UISRCS4 += ui/VBoxNewHDWzd.ui
270
271VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxVMFirstRunWzd.ui,$(VirtualBox_QT_UISRCS3))
272VirtualBox_QT_UISRCS4 += ui/VBoxVMFirstRunWzd.ui
273
274VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxRegistrationDlg.ui,$(VirtualBox_QT_UISRCS3))
275VirtualBox_QT_UISRCS4 += ui/VBoxRegistrationDlg.ui
276
277
278#
279# The targets.
280#
281PROGRAMS = VirtualBox
282ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(BUILD_TARGET)),) # X11
283DLLS = VBoxKeyboard
284OTHERS = $(PATH_BIN)/vboxkeyboard.tar.gz
285endif
286INSTALLS = VirtualBox.nls
287
288ifeq ($(BUILD_TARGET),os2)
289 DLLS += VBoxHlp
290 ifneq ($(strip $(VBOX_DLL_QT)),)
291 INSTALLS += qt.dll
292 qt.dll_INST = $(INST_BIN)
293 qt.dll_SOURCES += \
294 $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
295 endif
296endif
297
298
299#
300# VBoxHlp - helper DLL for OS/2.
301#
302VBoxHlp_ASTOOL = NASM
303VBoxHlp_ASFLAGS = -f obj
304VBoxHlp_DEFS = IN_RING3 IN_VBOXHLP
305VBoxHlp_CXXFLAGS = -fno-exceptions
306VBoxHlp_LDFLAGS = -nostdlib -los2
307VBoxHlp_LDFLAGS += -Zlinker option -Zlinker manyautodata
308VBoxHlp_SOURCES = \
309 src/os2/VBoxHlp.asm \
310 src/os2/VBoxHlp.cpp
311
312
313#
314# VBoxKeyboard - keyboard library for X11.
315#
316VBoxKeyboard_TEMPLATE = VBOXR3
317VBoxKeyboard_SOURCES = \
318 src/linux/keyboard-new.c
319VBoxKeyboard_TARSOURCES = \
320 $(VBoxKeyboard_SOURCES) \
321 src/linux/COPYING.LIB \
322 src/linux/keyboard.h \
323 src/linux/keyboard-layouts.h \
324 src/linux/keyboard-list.h \
325 src/linux/keyboard-tables.h \
326 src/linux/Makefile
327VBoxKeyboard_LIBS = X11
328VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
329
330
331#
332# vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
333# redistributed with usable sources.
334#
335SOURCE_DIRECTORY = vboxkeyboard
336DIRECTORY_PREFIX = src/linux/
337
338$(PATH_TARGET)/$(SOURCE_DIRECTORY):
339 $(MKDIR) -p $(@D)
340 $(LN_SYMLINK) $(abspath $(PATH_CURRENT))/$(DIRECTORY_PREFIX) $@
341
342$(PATH_BIN)/vboxkeyboard.tar.gz: $(VBoxKeyboard_TARSOURCES) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
343 $(call MSG_TOOL,tar/gzip,,$@)
344 $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(subst $(DIRECTORY_PREFIX),,$(VBoxKeyboard_TARSOURCES))) | gzip - > $@
345
346
347#
348# VirtualBox - The GUI program.
349#
350VirtualBox_TEMPLATE = VBOXQT4GUIEXE
351VirtualBox_NAME = VirtualBox4
352VirtualBox_SDKS.win = WINPSDK DXSDK
353#ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$(BUILD_TARGET)),) - later
354ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(BUILD_TARGET)),) # X11 + os2
355VirtualBox_SDKS += LIBSDL
356endif
357
358ifeq ($(BUILD_TARGET),darwin)
359# For the launch trick we need different inode numbers.
360VirtualBox_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
361
362 # For testing iChat Theater stuff change
363 # the sdk path
364 ifdef VBOX_WITH_ICHAT_THEATER
365 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
366 endif
367
368endif
369
370ifndef VBOX_OSE
371ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # linux only, yea, right.
372# Note: I'm doing this right here because the GUI will _not_ run
373# without that file which might be annoying for developers!
374$(VBOX_LICENSE_BIN): $(VBOX_LICENSE_SRC)
375 $(call MSG_GENERATE,,$@)
376 $(QUIET)$(CP) $< $@
377
378$(PATH_BIN)/VirtualBox: $(VBOX_LICENSE_BIN)
379endif
380endif
381
382# Each nls/VirtualBox_xx_YY.ts file must have a qt_xx_YY.ts counterpart
383VirtualBox_QT_TRANSLATIONS_QT := \
384 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts,\
385 $(filter nls/VirtualBox_%.ts,$(VirtualBox_QT_TRANSLATIONS)))
386
387# QDesigner UI sources are imported from VBoxUI.pro as VirtualBox_QT_UISRC
388
389# Headers containing definitions of classes that use the Q_OBJECT macro
390VirtualBox_QT_MOCHDRS = \
391 include/QIWidgetValidator.h \
392 include/QIHotKeyEdit.h \
393 include/QIStatusBar.h \
394 include/QIStateIndicator.h \
395 include/QIMessageBox.h \
396 include/QIRichLabel.h \
397 include/QIAbstractWizard.h \
398 include/VBoxGlobalSettings.h \
399 include/VBoxUtils.h \
400 include/VBoxGlobal.h \
401 include/VBoxVMListBox.h \
402 include/VBoxMediaComboBox.h \
403 include/VBoxSelectorWnd.h \
404 include/VBoxConsoleWnd.h \
405 include/VBoxConsoleView.h \
406 include/VBoxProblemReporter.h \
407 include/VBoxDownloaderWgt.h \
408 include/VBoxNetworkFramework.h \
409 include/VBoxAboutDlg.h \
410 include/VBoxCloseVMDlg.h \
411 include/VBoxNewVMWzd.h \
412 include/VBoxNewHDWzd.h \
413 include/VBoxVMFirstRunWzd.h \
414 include/VBoxRegistrationDlg.h
415
416# Sources containing local definitions of classes that use the Q_OBJECT macro
417VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp
418ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
419VirtualBox_QT_MOCSRCS += src/VBoxGlobal.cpp
420endif
421ifdef VBOX_WITH_XPCOM
422VirtualBox_QT_MOCSRCS += src/COMDefs.cpp
423endif
424
425# UI headers (ui.h) containing local definitions of classes that use the Q_OBJECT macro
426VirtualBox_QT_MOCUIHDRS = \
427 ui/VBoxVMSettingsDlg.ui.h \
428 ui/VBoxVMLogViewer.ui.h \
429 ui/VBoxSharedFoldersSettings.ui.h
430
431
432# All generated sources. Note: this list MUST be in sync with Qt source
433# generation rules defined somewhere below!
434VirtualBox_GENSRCS = \
435 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCHDRS))), $(PATH_VirtualBox)/moc/moc_$(moc).cpp) \
436 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS3))), $(PATH_VirtualBox)/ui/$(ui).cpp $(PATH_VirtualBox)/moc/moc_$(ui).cpp) \
437 $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
438
439# All generated headers. Note: this list MUST be in sync with Qt source
440# generation rules defined somewhere below!
441VirtualBox_GENHDRS = \
442 $(foreach mocui,$(notdir $(basename $(VirtualBox_QT_MOCUIHDRS))), $(PATH_VirtualBox)/moc/$(mocui).moc) \
443 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCSRCS))), $(PATH_VirtualBox)/moc/$(moc).moc) \
444 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS3))), $(PATH_VirtualBox)/ui/$(ui).h) \
445 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS4))), $(PATH_VirtualBox)/ui/$(ui).gen.h)
446
447# All existing .ui.h files for known .ui sources
448VirtualBox_QT_UIHDRS = \
449 $(wildcard $(addsuffix .h,$(VirtualBox_QT_UISRCS3)))
450
451# All header files
452VirtualBox_HEADERS = \
453 $(wildcard include/*.h) \
454 $(VirtualBox_GENHDRS) \
455 $(VirtualBox_QT_UIHDRS)
456
457
458VirtualBox_SOURCES = \
459 $(VirtualBox_GENSRCS) \
460 src/main.cpp \
461 src/COMDefs.cpp \
462 src/QIWidgetValidator.cpp \
463 src/QIHotKeyEdit.cpp \
464 src/QIStateIndicator.cpp \
465 src/QIStatusBar.cpp \
466 src/QIMessageBox.cpp \
467 src/QIRichLabel.cpp \
468 src/QIAbstractWizard.cpp \
469 src/VBoxDefs.cpp \
470 src/VBoxGlobalSettings.cpp \
471 src/VBoxGlobal.cpp \
472 src/VBoxMediaComboBox.cpp \
473 src/VBoxProblemReporter.cpp \
474 src/VBoxSelectorWnd.cpp \
475 src/VBoxConsoleView.cpp \
476 src/VBoxConsoleWnd.cpp \
477 src/VBoxDownloaderWgt.cpp \
478 src/VBoxVMListBox.cpp \
479 src/VBoxFrameBuffer.cpp \
480 src/HappyHttp.cpp \
481 src/VBoxNetworkFramework.cpp \
482 src/VBoxAboutDlg.cpp \
483 src/VBoxCloseVMDlg.cpp \
484 src/VBoxNewVMWzd.cpp \
485 src/VBoxNewHDWzd.cpp \
486 src/VBoxVMFirstRunWzd.cpp \
487 src/VBoxRegistrationDlg.cpp
488
489ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
490VirtualBox_SOURCES += \
491 src/linux/XKeyboard-new.cpp
492endif
493
494VirtualBox_SOURCES.win += \
495 src/win32/VirtualBox.rc
496
497VirtualBox_SOURCES.win += \
498 src/VBoxFBDDRAW.cpp
499
500VirtualBox_SOURCES.darwin = \
501 src/darwin/DarwinKeyboard.cpp \
502 src/darwin/DarwinCursor.cpp \
503 src/darwin/VBoxUtils-darwin.cpp \
504 src/VBoxFBQuartz2D.cpp
505# src/darwin/VBoxAquaStyle.cpp \
506
507ifdef VBOX_WITH_ICHAT_THEATER
508 VirtualBox_SOURCES.darwin += \
509 src/darwin/VBoxIChatTheaterWrapper.m
510endif
511
512ifneq ($(BUILD_TARGET),win)
513src/HappyHttp.cpp_CXXFLAGS += -fexceptions
514src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions
515src/VBoxNetworkFramework.cpp_CXXFLAGS += -fexceptions
516endif
517src/HappyHttp.cpp_CXXFLAGS.linux += -O2
518
519## @todo how to detect what tool is used?
520## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
521# more generic -Wno-extra
522ifdef VBOX_WITH_XPCOM
523src/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
524endif
525
526VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS
527VirtualBox_DEFS.debug = VBOX_GUI_DEBUG VBOX_CHECK_STATE # QT_FATAL_ASSERT
528VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
529VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
530VirtualBox_DEFS.linux = VBOX_GUI_USE_SDL
531VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
532VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
533VirtualBox_DEFS.os2 = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL QT_DLL
534VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
535VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
536VirtualBox_DEFS.win.amd64 = VBOX_WITHOUT_QHTTP
537#ifndef VBOX_OSE
538 VirtualBox_DEFS.darwin += VBOX_WITH_HACKED_QT
539#endif
540ifdef VBOX_WITH_ICHAT_THEATER
541 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
542endif
543ifneq ($(BUILD_TYPE),release)
544 # non-release builds has some extra features.
545 VirtualBox_DEFS += VBOX_GUI_USE_REFRESH_TIMER
546 VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
547 VirtualBox_DEFS.linux += VBOX_GUI_USE_QIMAGE
548endif
549ifdef VBOX_WITH_REGISTRATION
550 VirtualBox_DEFS += VBOX_WITH_REGISTRATION
551endif
552ifdef VBOX_WITH_REGISTRATION_REQUEST
553 VirtualBox_DEFS += VBOX_WITH_REGISTRATION_REQUEST
554endif
555ifdef VBOX_WITH_ALSA
556 VirtualBox_DEFS += VBOX_WITH_ALSA
557endif
558ifdef VBOX_WITH_PULSE
559 VirtualBox_DEFS += VBOX_WITH_PULSE
560endif
561ifdef VBOX_OSE
562 VirtualBox_DEFS += VBOX_OSE
563endif
564ifdef VBOX_WITH_DEBUGGER_GUI
565 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
566endif
567
568VirtualBox_INCS = \
569 ./include \
570 $(PATH_VirtualBox)/ui \
571 $(PATH_VirtualBox)/moc \
572 $(PATH_VirtualBox)/include \
573
574
575ifeq ($(BUILD_TYPE),release)
576 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
577else
578 VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
579 ifeq ($(USERNAME),dmik)
580 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
581 else
582 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
583 endif
584endif
585VirtualBox_LDFLAGS.os2 = -Zlinker /PM:PM -Zno-fork
586VirtualBox_LDFLAGS.darwin = -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -lz
587ifdef VBOX_WITH_ICHAT_THEATER
588 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
589endif
590VirtualBox_LIBS.win = \
591 $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
592 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
593 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
594VirtualBox_LIBS.os2 += $(PATH_DLL)/VBoxHlp$(VBOX_SUFF_DLL)
595ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
596VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
597endif
598
599
600ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too.
601 ifeq ($(BUILD_TARGET),win)
602 VirtualBox_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB)
603 else
604 VirtualBox_LIBS += $(PATH_DLL)/VBoxDbg$(VBOX_SUFF_DLL)
605 endif
606endif
607
608WRAPPERSFILE = $(PATH_VirtualBox)/include/COMWrappers.h
609WRAPPERSINCFILE = include/COMDefs.h
610WRAPPERSTEMPLATE = include/COMWrappers.xsl
611XIDLFILE = ../../Main/idl/VirtualBox.xidl
612
613
614# generated files we need to clean manually
615OTHER_CLEAN = \
616 $(VirtualBox_GENSRCS) \
617 $(VirtualBox_GENHDRS) \
618 $(WRAPPERSFILE) \
619 $(PATH_BIN)/vboxkeyboard.tar.gz
620
621
622#
623# On Mac OS X (darwin) we need to install icon resources and compusory bundle contents.
624#
625INSTALLS.darwin += VirtualBox.app
626VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
627VirtualBox.app_MODE = 644
628VirtualBox.app_SOURCES = \
629 src/darwin/PkgInfo \
630 $(PATH_TARGET)/Info.plist \
631 images/VirtualBox.icns=>Resources/virtualbox.icns
632
633$(PATH_TARGET)/Info.plist: src/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
634 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
635 $(QUIET)$(RM) -f $@
636 $(QUIET)$(SED) \
637 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
638 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
639 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
640 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
641 $< > $@
642
643INSTALLS.darwin += VirtualBoxVM.app
644VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
645VirtualBoxVM.app_MODE = 644
646VirtualBoxVM.app_SOURCES = \
647 src/darwin/VM-PkgInfo=>PkgInfo \
648 $(PATH_TARGET)/VM-Info.plist=>Info.plist \
649 images/VirtualBox.icns=>Resources/virtualbox.icns
650VirtualBoxVM.app_SYMLINKS = \
651 MacOS=>../../../MacOS/
652
653$(PATH_TARGET)/VM-Info.plist: src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
654 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
655 $(QUIET)$(RM) -f $@
656 $(QUIET)$(SED) \
657 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
658 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
659 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
660 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
661 --output $@ $<
662
663#
664# Translation installation
665#
666VirtualBox.nls_INST = $(INST_BIN)nls/
667VirtualBox.nls_SOURCES = $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS)))
668VirtualBox.nls_SOURCES += $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS_QT)))
669VirtualBox.nls_MODE = 644
670
671
672#
673# Testcase for the darwin keyboard routines.
674#
675ifdef VBOX_WITH_TESTCASES
676PROGRAMS.darwin += tstDarwinKeyboard
677tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
678tstDarwinKeyboard_INCS = include
679tstDarwinKeyboard_SOURCES = \
680 src/darwin/tstDarwinKeyboard.cpp \
681 src/darwin/DarwinKeyboard.cpp
682tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon
683tstDarwinKeyboard_LIBS = \
684 $(LIB_RUNTIME)
685endif
686
687
688
689# Commit the magic.
690# (note: before custom rules that make usage of generated variables!).
691include $(PATH_KBUILD)/footer.kmk
692
693
694
695#
696# Qt source file generation rules
697#
698
699## @todo move QT source generation macros to kBuild
700
701## Generate a rule to create a MOC source file from a header containing
702# classes that use the Q_OBJECT macro.
703# @param $mochdr header file with Q_OBJECT
704define def_qt_gen_src_moc
705
706$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(mochdr))).cpp)
707
708$(target)_GENSRCS_REAL += $(mocsrc)
709
710$(mocsrc): $(mochdr)
711 $$(call MSG_TOOL,moc,$(target),$(mochdr),$$@)
712 $$(QUIET)$$(MKDIR) -p $$(@D)
713 $$(QUIET)$$(VBOX_MOC4) \
714 $(addprefix -D,$($(target)_DEFS)) \
715 $(addprefix -I,$($(target)_INCS)) \
716 $(mochdr) -o $$@
717
718endef
719
720## Generate a rule to create a MOC include file from a source containing
721# local classes that use the Q_OBJECT macro. This include is then included
722# by that source, so it must be generated before the source gets compiled.
723# @param $mocsrc source file with Q_OBJECT
724define def_qt_gen_inc_moc
725
726$(eval mocobj := $(PATH_$(target)_$(mocsrc))/$(notdir $(basename $(mocsrc)))$(VBOX_SUFF_OBJ))
727$(eval mocinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocsrc))).moc)
728
729$(target)_GENHDRS_REAL += $(mocinc)
730
731$(mocobj): $(mocinc)
732
733.NOTPARALLEL: $(mocinc)
734$(mocinc): $(mocsrc)
735 $$(call MSG_TOOL,moc,$(target),$(mocsrc),$$@)
736 $$(QUIET)$$(MKDIR) -p $$(@D)
737 $$(QUIET)$$(VBOX_MOC4) \
738 $(addprefix -D,$($(target)_DEFS)) \
739 $(addprefix -I,$($(target)_INCS)) \
740 -i $(mocsrc) -o $$@
741
742endef
743
744## Generate a rule to create a MOC include file from a UI header (ui.h) containing
745# local classes that use the Q_OBJECT macro. This include is then included
746# by that header, so it must be generated before the UI source gets compiled.
747# @param $mocuihdr UI header file with Q_OBJECT
748define def_qt_gen_inc_mocuihdr
749
750$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(basename $(mocuihdr)))).cpp)
751$(eval uiobj := $(PATH_$(target)_$$(uisrc))/$(notdir $(basename $$(uisrc)))$(VBOX_SUFF_OBJ))
752$(eval mocuiinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocuihdr))).moc)
753
754$(target)_GENHDRS_REAL += $(mocuiinc)
755
756.NOTPARALLEL: $(mocuiinc)
757$(uisrc): $(mocuiinc)
758$(mocuiinc): $(mocuihdr)
759 $$(call MSG_TOOL,moc,$(target),$(mocuihdr),$$@)
760 $$(QUIET)$$(MKDIR) -p $$(@D)
761 $$(QUIET)$$(VBOX_MOC4) \
762 $(addprefix -D,$($(target)_DEFS)) \
763 $(addprefix -I,$($(target)_INCS)) \
764 -i $(mocuihdr) -o $$@
765
766endef
767
768## Generate a rule to create a header and source files from an UI3
769# definition source (.ui).
770# @param $uifile UI definintion source file
771define def_qt_gen_src_ui3
772
773$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).cpp)
774$(eval uihdr := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).h)
775$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(uifile))).cpp)
776
777$(target)_GENSRCS_REAL += $(uisrc) $(mocsrc)
778$(target)_GENHDRS_REAL += $(uihdr)
779
780.NOTPARALLEL: $(uihdr)
781$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
782 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
783 $$(QUIET)$$(VBOX_UIC3) $(uifile) -o $$@
784
785$(uisrc): $(uihdr) $(uifile) $(wildcard $(uifile).h) | $$(call DIRDEP,$(dir $(uisrc)))
786 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
787 $$(QUIET)$$(VBOX_UIC3) -impl $(uihdr) $(uifile) -o $$@
788
789#$$(QUIET)$$(VBOX_UIC3) $(uifile) -i $(uihdr) -o $$@
790
791$(mocsrc): $(uihdr) | $$(call DIRDEP,$(dir $(mocsrc)))
792 $$(call MSG_TOOL,moc,$(target),$(uihdr),$$@)
793 $$(QUIET)$$(VBOX_MOC4) \
794 $(addprefix -D,$($(target)_DEFS)) \
795 $(addprefix -I,$($(target)_INCS)) \
796 $(uihdr) -o $$@
797
798endef
799
800## Generate a rule to create a header file from an UI4
801# definition source (.ui).
802# @param $uifile UI definintion source file
803define def_qt_gen_src_ui4
804
805$(eval uihdr := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).gen.h)
806
807$(target)_GENHDRS_REAL += $(uihdr)
808
809.NOTPARALLEL: $(uihdr)
810$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
811 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
812 $$(QUIET)$$(VBOX_UIC4) $(uifile) -o $$@
813
814# we assume that the generated header is at least included by
815# the normal header with the same name
816include/$(notdir $(basename $(uifile))).h: $(uihdr)
817
818endef
819
820## Generate a rule to create a .qm file from a NLS translation
821# source (.ts).
822# @param $tsfile Translation source file
823define def_qt_gen_nls
824
825$(eval qmfile := $(PATH_$(target))/nls/$(notdir $(basename $(tsfile))).qm)
826
827OTHER_CLEAN += $(qmfile)
828
829# Note that we use -nocompress in lrelease to avoid stripping comments and
830# other information from .qm files. If we don't do that, we get .qm files two
831# times smaller, but QTranslator::findMessage() will start searching for
832# translations in all existing contexts in case if it cannot find it in the
833# original context (which is of course not acceptable, no matter if it's a
834# special Qt "feature" or just a bug).
835
836$(qmfile): $(tsfile) | $$(call DIRDEP,$(dir $(qmfile)))
837 $$(call MSG_TOOLS,lrelease,$(target),$(tsfile),$$@)
838 $$(QUIET)$$(VBOX_LRELEASE4) -nocompress $(tsfile) -qm $$@
839
840endef
841
842## Generate rules for generating the Qt source for a target.
843# @param $target Target name.
844define def_qt_gen_src
845
846# moc srcs from hdrs with Q_OBJECT
847$(foreach mochdr,$($(target)_QT_MOCHDRS),$(eval $(def_qt_gen_src_moc)))
848# moc includes from srcs with Q_OBJECT
849$(foreach mocsrc,$($(target)_QT_MOCSRCS),$(eval $(def_qt_gen_inc_moc)))
850# moc includes from UI headers with Q_OBJECT
851$(foreach mocuihdr,$($(target)_QT_MOCUIHDRS),$(eval $(def_qt_gen_inc_mocuihdr)))
852# UI3 sources
853$(foreach uifile,$($(target)_QT_UISRCS3),$(eval $(def_qt_gen_src_ui3)))
854# UI4 sources
855$(foreach uifile,$($(target)_QT_UISRCS4),$(eval $(def_qt_gen_src_ui4)))
856# NLS files
857$(foreach tsfile,$($(target)_QT_TRANSLATIONS),$(eval $(def_qt_gen_nls)))
858$(foreach tsfile,$($(target)_QT_TRANSLATIONS_QT),$(eval $(def_qt_gen_nls)))
859# dirs
860$$(call DIRDEP,$(PATH_$(target))/ui/) \
861$$(call DIRDEP,$(PATH_$(target))/moc/) \
862$$(call DIRDEP,$(PATH_$(target))/nls/):
863 $$(call MSG_MKDIR,$$@)
864 $$(QUIET)$$(MKDIR) -p $$@
865
866endef
867
868# Generate Qt source rules.
869$(foreach target,VirtualBox,$(eval $(def_qt_gen_src)))
870
871
872# Generate COM Wrappers
873.NOTPARALLEL: $(WRAPPERSFILE) $(WRAPPERSINCFILE)
874
875$(WRAPPERSINCFILE): $(WRAPPERSFILE)
876
877$(WRAPPERSFILE): $(XIDLFILE) $(WRAPPERSTEMPLATE) | $(call DIRDEP,$(PATH_VirtualBox)/include/)
878 $(call MSG_TOOL,xsltproc,VirtualBox,$<,$@)
879 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(WRAPPERSTEMPLATE) $<
880
881$(call DIRDEP,$(PATH_VirtualBox)/include/):
882 $(call MSG_MKDIR,$@)
883 $(QUIET)$(MKDIR) -p $@
884
885# this is actually necessary only for Win32 target with disabled dependencies
886define def_wrapper_deps
887$(src): $(WRAPPERSFILE) $(WRAPPERSINCFILE)
888endef
889
890$(foreach src,$(VirtualBox_SOURCES),$(eval $(def_wrapper_deps)))
891
892# grep the images out of the resource file for dependency tracking
893VirtualBox_QT_IMAGES = $(shell $(SED) '/images/!d;{s/^.*\(images\/.*\)<.*$$/\1/}' VirtualBox.qrc)
894
895$(PATH_VirtualBox)/ui/vbox_image_collection.cpp: VirtualBox.qrc $(VirtualBox_QT_IMAGES)
896 $(call MSG_TOOL,rcc,VirtualBox,$<,$@)
897 $(QUIET)$(VBOX_RCC4) -o $@ $<
898
899VirtualBox_GENSRCS += $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
900
901#
902# Hand made dependencies go here.
903# Basically, here are dependencies for generated UI source files that
904# include generated headers in turn.
905#
906
907# Make all generated UI sources dependent on all generated headers (since they
908# may include them). This is safer than indifidual dependencies above but
909# currently disabled, because will cause all UI sources to be rebuilt one a
910# single one changes.
911#$(patsubst %,$(PATH_VirtualBox)/ui/%.cpp,$(notdir $(basename $(VirtualBox_QT_UISRCS3)))) : $(VirtualBox_GENHDRS)
912
913
914#
915# Custom targets
916#
917
918# Update all known NLS translation (.ts) files in the nls/ subdirectory.
919# NOTE: This target is intened to be run only by the GUI maintainer shortly
920# before a new product release. VirtualBox_xx_YY.ts is a template for new
921# languages and should never be actually translated or installed.
922updatenls: $(VirtualBox_SOURCES) $(VirtualBox_HEADERS)
923 $(call MSG_L1,lupdate all languages (nls/*.ts))
924 $(QUIET)$(VBOX_LUPDATE4) $^ -ts $(VirtualBox_QT_TRANSLATIONS) nls/VirtualBox_xx_YY.ts
925
926
927#
928# Test targets
929#
930
931test:
932 @echo ====================
933 @echo $(VirtualBox_GENSRCS) | $(SED) -e "s/ /\n/g"
934 @echo --------------------
935 @echo $(VirtualBox_GENSRCS_REAL) | $(SED) -e "s/ /\n/g"
936 @echo ====================
937 @echo $(VirtualBox_GENHDRS) | $(SED) -e "s/ /\n/g"
938 @echo --------------------
939 @echo $(VirtualBox_GENHDRS_REAL) | $(SED) -e "s/ /\n/g"
940 @echo ====================
941
942test2:
943 @echo $(OTHER_CLEAN) | $(SED) -e "s/ /\n/g"
944
945test3:
946 @echo $(VirtualBox_HEADERS) | $(SED) -e "s/ /\n/g"
947
948testwrappers: $(WRAPPERSFILE)
949
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