VirtualBox

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

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

FE/Qt: Dropped refresh timer rendering mode.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 30.1 KB
Line 
1# $Id: Makefile.kmk 7610 2008-03-27 22:48:00Z 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
277VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxSharedFoldersSettings.ui,$(VirtualBox_QT_UISRCS3))
278VirtualBox_QT_UISRCS4 += ui/VBoxSharedFoldersSettings.ui
279
280VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxSnapshotDetailsDlg.ui,$(VirtualBox_QT_UISRCS3))
281VirtualBox_QT_UISRCS4 += ui/VBoxSnapshotDetailsDlg.ui
282
283
284#
285# The targets.
286#
287PROGRAMS = VirtualBox
288ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(BUILD_TARGET)),) # X11
289DLLS = VBoxKeyboard
290OTHERS = $(PATH_BIN)/vboxkeyboard.tar.gz
291endif
292INSTALLS = VirtualBox.nls
293
294ifeq ($(BUILD_TARGET),os2)
295 DLLS += VBoxHlp
296 ifneq ($(strip $(VBOX_DLL_QT)),)
297 INSTALLS += qt.dll
298 qt.dll_INST = $(INST_BIN)
299 qt.dll_SOURCES += \
300 $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
301 endif
302endif
303
304
305#
306# VBoxHlp - helper DLL for OS/2.
307#
308VBoxHlp_ASTOOL = NASM
309VBoxHlp_ASFLAGS = -f obj
310VBoxHlp_DEFS = IN_RING3 IN_VBOXHLP
311VBoxHlp_CXXFLAGS = -fno-exceptions
312VBoxHlp_LDFLAGS = -nostdlib -los2
313VBoxHlp_LDFLAGS += -Zlinker option -Zlinker manyautodata
314VBoxHlp_SOURCES = \
315 src/os2/VBoxHlp.asm \
316 src/os2/VBoxHlp.cpp
317
318
319#
320# VBoxKeyboard - keyboard library for X11.
321#
322VBoxKeyboard_TEMPLATE = VBOXR3
323VBoxKeyboard_SOURCES = \
324 src/linux/keyboard-new.c
325VBoxKeyboard_TARSOURCES = \
326 $(VBoxKeyboard_SOURCES) \
327 src/linux/COPYING.LIB \
328 src/linux/keyboard.h \
329 src/linux/keyboard-layouts.h \
330 src/linux/keyboard-list.h \
331 src/linux/keyboard-tables.h \
332 src/linux/Makefile
333VBoxKeyboard_LIBS = X11
334VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
335
336
337#
338# vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
339# redistributed with usable sources.
340#
341SOURCE_DIRECTORY = vboxkeyboard
342DIRECTORY_PREFIX = src/linux/
343
344$(PATH_TARGET)/$(SOURCE_DIRECTORY):
345 $(MKDIR) -p $(@D)
346 $(LN_SYMLINK) $(abspath $(PATH_CURRENT))/$(DIRECTORY_PREFIX) $@
347
348$(PATH_BIN)/vboxkeyboard.tar.gz: $(VBoxKeyboard_TARSOURCES) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
349 $(call MSG_TOOL,tar/gzip,,$@)
350 $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(subst $(DIRECTORY_PREFIX),,$(VBoxKeyboard_TARSOURCES))) | gzip - > $@
351
352
353#
354# VirtualBox - The GUI program.
355#
356VirtualBox_TEMPLATE = VBOXQT4GUIEXE
357VirtualBox_NAME = VirtualBox4
358VirtualBox_SDKS.win = WINPSDK DXSDK
359#ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$(BUILD_TARGET)),) - later
360ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(BUILD_TARGET)),) # X11 + os2
361VirtualBox_SDKS += LIBSDL
362endif
363
364ifeq ($(BUILD_TARGET),darwin)
365# For the launch trick we need different inode numbers.
366VirtualBox_INST = $(INST_BIN)VirtualBox4 $(INST_BIN)VirtualBoxVM4
367
368 # For testing iChat Theater stuff change
369 # the sdk path
370 ifdef VBOX_WITH_ICHAT_THEATER
371 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
372 endif
373
374endif
375
376ifndef VBOX_OSE
377ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # linux only, yea, right.
378# Note: I'm doing this right here because the GUI will _not_ run
379# without that file which might be annoying for developers!
380$(VBOX_LICENSE_BIN): $(VBOX_LICENSE_SRC)
381 $(call MSG_GENERATE,,$@)
382 $(QUIET)$(CP) $< $@
383
384$(PATH_BIN)/VirtualBox: $(VBOX_LICENSE_BIN)
385endif
386endif
387
388# Each nls/VirtualBox_xx_YY.ts file must have a qt_xx_YY.ts counterpart
389VirtualBox_QT_TRANSLATIONS_QT := \
390 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts,\
391 $(filter nls/VirtualBox_%.ts,$(VirtualBox_QT_TRANSLATIONS)))
392
393# QDesigner UI sources are imported from VBoxUI.pro as VirtualBox_QT_UISRC
394
395# Headers containing definitions of classes that use the Q_OBJECT macro
396VirtualBox_QT_MOCHDRS = \
397 include/QIWidgetValidator.h \
398 include/QIHotKeyEdit.h \
399 include/QIStatusBar.h \
400 include/QIStateIndicator.h \
401 include/QIMessageBox.h \
402 include/QIRichLabel.h \
403 include/QIAbstractWizard.h \
404 include/VBoxGlobalSettings.h \
405 include/VBoxUtils.h \
406 include/VBoxGlobal.h \
407 include/VBoxVMListBox.h \
408 include/VBoxMediaComboBox.h \
409 include/VBoxSelectorWnd.h \
410 include/VBoxConsoleWnd.h \
411 include/VBoxConsoleView.h \
412 include/VBoxProblemReporter.h \
413 include/VBoxDownloaderWgt.h \
414 include/VBoxNetworkFramework.h \
415 include/VBoxAboutDlg.h \
416 include/VBoxCloseVMDlg.h \
417 include/VBoxNewVMWzd.h \
418 include/VBoxNewHDWzd.h \
419 include/VBoxVMFirstRunWzd.h \
420 include/VBoxRegistrationDlg.h \
421 include/VBoxSharedFoldersSettings.h \
422 include/VBoxSnapshotDetailsDlg.h
423
424# Sources containing local definitions of classes that use the Q_OBJECT macro
425VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp
426ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
427VirtualBox_QT_MOCSRCS += src/VBoxGlobal.cpp
428endif
429ifdef VBOX_WITH_XPCOM
430VirtualBox_QT_MOCSRCS += src/COMDefs.cpp
431endif
432
433# UI headers (ui.h) containing local definitions of classes that use the Q_OBJECT macro
434VirtualBox_QT_MOCUIHDRS = \
435 ui/VBoxVMSettingsDlg.ui.h \
436 ui/VBoxVMLogViewer.ui.h
437
438
439# All generated sources. Note: this list MUST be in sync with Qt source
440# generation rules defined somewhere below!
441VirtualBox_GENSRCS = \
442 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCHDRS))), $(PATH_VirtualBox)/moc/moc_$(moc).cpp) \
443 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS3))), $(PATH_VirtualBox)/ui/$(ui).cpp $(PATH_VirtualBox)/moc/moc_$(ui).cpp) \
444 $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
445
446# All generated headers. Note: this list MUST be in sync with Qt source
447# generation rules defined somewhere below!
448VirtualBox_GENHDRS = \
449 $(foreach mocui,$(notdir $(basename $(VirtualBox_QT_MOCUIHDRS))), $(PATH_VirtualBox)/moc/$(mocui).moc) \
450 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCSRCS))), $(PATH_VirtualBox)/moc/$(moc).moc) \
451 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS3))), $(PATH_VirtualBox)/ui/$(ui).h) \
452 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS4))), $(PATH_VirtualBox)/ui/$(ui).gen.h)
453
454# All existing .ui.h files for known .ui sources
455VirtualBox_QT_UIHDRS = \
456 $(wildcard $(addsuffix .h,$(VirtualBox_QT_UISRCS3)))
457
458# All header files
459VirtualBox_HEADERS = \
460 $(wildcard include/*.h) \
461 $(VirtualBox_GENHDRS) \
462 $(VirtualBox_QT_UIHDRS)
463
464
465VirtualBox_SOURCES = \
466 $(VirtualBox_GENSRCS) \
467 src/main.cpp \
468 src/COMDefs.cpp \
469 src/QIWidgetValidator.cpp \
470 src/QIHotKeyEdit.cpp \
471 src/QIStateIndicator.cpp \
472 src/QIStatusBar.cpp \
473 src/QIMessageBox.cpp \
474 src/QIRichLabel.cpp \
475 src/QIAbstractWizard.cpp \
476 src/VBoxDefs.cpp \
477 src/VBoxGlobalSettings.cpp \
478 src/VBoxGlobal.cpp \
479 src/VBoxMediaComboBox.cpp \
480 src/VBoxProblemReporter.cpp \
481 src/VBoxSelectorWnd.cpp \
482 src/VBoxConsoleView.cpp \
483 src/VBoxConsoleWnd.cpp \
484 src/VBoxDownloaderWgt.cpp \
485 src/VBoxVMListBox.cpp \
486 src/VBoxFrameBuffer.cpp \
487 src/HappyHttp.cpp \
488 src/VBoxNetworkFramework.cpp \
489 src/VBoxAboutDlg.cpp \
490 src/VBoxCloseVMDlg.cpp \
491 src/VBoxNewVMWzd.cpp \
492 src/VBoxNewHDWzd.cpp \
493 src/VBoxVMFirstRunWzd.cpp \
494 src/VBoxRegistrationDlg.cpp \
495 src/VBoxSharedFoldersSettings.cpp \
496 src/VBoxSnapshotDetailsDlg.cpp
497
498ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
499VirtualBox_SOURCES += \
500 src/linux/XKeyboard-new.cpp
501endif
502
503VirtualBox_SOURCES.win += \
504 src/win32/VirtualBox.rc
505
506VirtualBox_SOURCES.win += \
507 src/VBoxFBDDRAW.cpp
508
509VirtualBox_SOURCES.darwin = \
510 src/darwin/DarwinKeyboard.cpp \
511 src/darwin/DarwinCursor.cpp \
512 src/darwin/VBoxUtils-darwin.cpp \
513 src/VBoxFBQuartz2D.cpp
514# src/darwin/VBoxAquaStyle.cpp \
515
516ifdef VBOX_WITH_ICHAT_THEATER
517 VirtualBox_SOURCES.darwin += \
518 src/darwin/VBoxIChatTheaterWrapper.m
519endif
520
521ifneq ($(BUILD_TARGET),win)
522src/HappyHttp.cpp_CXXFLAGS += -fexceptions
523src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions
524src/VBoxNetworkFramework.cpp_CXXFLAGS += -fexceptions
525endif
526src/HappyHttp.cpp_CXXFLAGS.linux += -O2
527
528## @todo how to detect what tool is used?
529## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
530# more generic -Wno-extra
531ifdef VBOX_WITH_XPCOM
532src/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
533endif
534
535VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS
536VirtualBox_DEFS.debug = VBOX_GUI_DEBUG VBOX_CHECK_STATE # QT_FATAL_ASSERT
537VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
538VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
539VirtualBox_DEFS.linux = VBOX_GUI_USE_SDL
540VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
541VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
542VirtualBox_DEFS.os2 = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL QT_DLL
543VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
544VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
545VirtualBox_DEFS.win.amd64 = VBOX_WITHOUT_QHTTP
546#ifndef VBOX_OSE
547 VirtualBox_DEFS.darwin += VBOX_WITH_HACKED_QT
548#endif
549ifdef VBOX_WITH_ICHAT_THEATER
550 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
551endif
552ifneq ($(BUILD_TYPE),release)
553 # non-release builds has some extra features.
554 VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
555 VirtualBox_DEFS.linux += VBOX_GUI_USE_QIMAGE
556endif
557ifdef VBOX_WITH_REGISTRATION
558 VirtualBox_DEFS += VBOX_WITH_REGISTRATION
559endif
560ifdef VBOX_WITH_REGISTRATION_REQUEST
561 VirtualBox_DEFS += VBOX_WITH_REGISTRATION_REQUEST
562endif
563ifdef VBOX_WITH_ALSA
564 VirtualBox_DEFS += VBOX_WITH_ALSA
565endif
566ifdef VBOX_WITH_PULSE
567 VirtualBox_DEFS += VBOX_WITH_PULSE
568endif
569ifdef VBOX_OSE
570 VirtualBox_DEFS += VBOX_OSE
571endif
572ifdef VBOX_WITH_DEBUGGER_GUI
573 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
574endif
575
576VirtualBox_INCS = \
577 ./include \
578 $(PATH_VirtualBox)/ui \
579 $(PATH_VirtualBox)/moc \
580 $(PATH_VirtualBox)/include \
581
582
583ifeq ($(BUILD_TYPE),release)
584 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
585else
586 VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
587 ifeq ($(USERNAME),dmik)
588 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
589 else
590 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
591 endif
592endif
593VirtualBox_LDFLAGS.os2 = -Zlinker /PM:PM -Zno-fork
594VirtualBox_LDFLAGS.darwin = -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -lz
595ifdef VBOX_WITH_ICHAT_THEATER
596 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
597endif
598VirtualBox_LIBS.win = \
599 $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
600 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
601 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
602VirtualBox_LIBS.os2 += $(PATH_DLL)/VBoxHlp$(VBOX_SUFF_DLL)
603ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
604VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
605endif
606
607
608ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too.
609 ifeq ($(BUILD_TARGET),win)
610 VirtualBox_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB)
611 else
612 VirtualBox_LIBS += $(PATH_DLL)/VBoxDbg$(VBOX_SUFF_DLL)
613 endif
614endif
615
616WRAPPERSFILE = $(PATH_VirtualBox)/include/COMWrappers.h
617WRAPPERSINCFILE = include/COMDefs.h
618WRAPPERSTEMPLATE = include/COMWrappers.xsl
619XIDLFILE = ../../Main/idl/VirtualBox.xidl
620
621
622# generated files we need to clean manually
623OTHER_CLEAN = \
624 $(VirtualBox_GENSRCS) \
625 $(VirtualBox_GENHDRS) \
626 $(WRAPPERSFILE) \
627 $(PATH_BIN)/vboxkeyboard.tar.gz
628
629
630#
631# On Mac OS X (darwin) we need to install icon resources and compusory bundle contents.
632#
633INSTALLS.darwin += VirtualBox.app
634VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
635VirtualBox.app_MODE = 644
636VirtualBox.app_SOURCES = \
637 src/darwin/PkgInfo \
638 $(PATH_TARGET)/Info.plist \
639 images/VirtualBox.icns=>Resources/virtualbox.icns
640
641$(PATH_TARGET)/Info.plist: src/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
642 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
643 $(QUIET)$(RM) -f $@
644 $(QUIET)$(SED) \
645 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
646 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
647 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
648 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
649 $< > $@
650
651INSTALLS.darwin += VirtualBoxVM.app
652VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
653VirtualBoxVM.app_MODE = 644
654VirtualBoxVM.app_SOURCES = \
655 src/darwin/VM-PkgInfo=>PkgInfo \
656 $(PATH_TARGET)/VM-Info.plist=>Info.plist \
657 images/VirtualBox.icns=>Resources/virtualbox.icns
658VirtualBoxVM.app_SYMLINKS = \
659 MacOS=>../../../MacOS/
660
661$(PATH_TARGET)/VM-Info.plist: src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
662 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
663 $(QUIET)$(RM) -f $@
664 $(QUIET)$(SED) \
665 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
666 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
667 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
668 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
669 --output $@ $<
670
671#
672# Translation installation
673#
674VirtualBox.nls_INST = $(INST_BIN)nls/
675VirtualBox.nls_SOURCES = $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS)))
676VirtualBox.nls_SOURCES += $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS_QT)))
677VirtualBox.nls_MODE = 644
678
679
680#
681# Testcase for the darwin keyboard routines.
682#
683ifdef VBOX_WITH_TESTCASES
684PROGRAMS.darwin += tstDarwinKeyboard
685tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
686tstDarwinKeyboard_INCS = include
687tstDarwinKeyboard_SOURCES = \
688 src/darwin/tstDarwinKeyboard.cpp \
689 src/darwin/DarwinKeyboard.cpp
690tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon
691tstDarwinKeyboard_LIBS = \
692 $(LIB_RUNTIME)
693endif
694
695
696
697# Commit the magic.
698# (note: before custom rules that make usage of generated variables!).
699include $(PATH_KBUILD)/footer.kmk
700
701
702
703#
704# Qt source file generation rules
705#
706
707## @todo move QT source generation macros to kBuild
708
709## Generate a rule to create a MOC source file from a header containing
710# classes that use the Q_OBJECT macro.
711# @param $mochdr header file with Q_OBJECT
712define def_qt_gen_src_moc
713
714$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(mochdr))).cpp)
715
716$(target)_GENSRCS_REAL += $(mocsrc)
717
718$(mocsrc): $(mochdr)
719 $$(call MSG_TOOL,moc,$(target),$(mochdr),$$@)
720 $$(QUIET)$$(MKDIR) -p $$(@D)
721 $$(QUIET)$$(VBOX_MOC4) \
722 $(addprefix -D,$($(target)_DEFS)) \
723 $(addprefix -I,$($(target)_INCS)) \
724 $(mochdr) -o $$@
725
726endef
727
728## Generate a rule to create a MOC include file from a source containing
729# local classes that use the Q_OBJECT macro. This include is then included
730# by that source, so it must be generated before the source gets compiled.
731# @param $mocsrc source file with Q_OBJECT
732define def_qt_gen_inc_moc
733
734$(eval mocobj := $(PATH_$(target)_$(mocsrc))/$(notdir $(basename $(mocsrc)))$(VBOX_SUFF_OBJ))
735$(eval mocinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocsrc))).moc)
736
737$(target)_GENHDRS_REAL += $(mocinc)
738
739$(mocobj): $(mocinc)
740
741.NOTPARALLEL: $(mocinc)
742$(mocinc): $(mocsrc)
743 $$(call MSG_TOOL,moc,$(target),$(mocsrc),$$@)
744 $$(QUIET)$$(MKDIR) -p $$(@D)
745 $$(QUIET)$$(VBOX_MOC4) \
746 $(addprefix -D,$($(target)_DEFS)) \
747 $(addprefix -I,$($(target)_INCS)) \
748 -i $(mocsrc) -o $$@
749
750endef
751
752## Generate a rule to create a MOC include file from a UI header (ui.h) containing
753# local classes that use the Q_OBJECT macro. This include is then included
754# by that header, so it must be generated before the UI source gets compiled.
755# @param $mocuihdr UI header file with Q_OBJECT
756define def_qt_gen_inc_mocuihdr
757
758$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(basename $(mocuihdr)))).cpp)
759$(eval uiobj := $(PATH_$(target)_$$(uisrc))/$(notdir $(basename $$(uisrc)))$(VBOX_SUFF_OBJ))
760$(eval mocuiinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocuihdr))).moc)
761
762$(target)_GENHDRS_REAL += $(mocuiinc)
763
764.NOTPARALLEL: $(mocuiinc)
765$(uisrc): $(mocuiinc)
766$(mocuiinc): $(mocuihdr)
767 $$(call MSG_TOOL,moc,$(target),$(mocuihdr),$$@)
768 $$(QUIET)$$(MKDIR) -p $$(@D)
769 $$(QUIET)$$(VBOX_MOC4) \
770 $(addprefix -D,$($(target)_DEFS)) \
771 $(addprefix -I,$($(target)_INCS)) \
772 -i $(mocuihdr) -o $$@
773
774endef
775
776## Generate a rule to create a header and source files from an UI3
777# definition source (.ui).
778# @param $uifile UI definintion source file
779define def_qt_gen_src_ui3
780
781$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).cpp)
782$(eval uihdr := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).h)
783$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(uifile))).cpp)
784
785$(target)_GENSRCS_REAL += $(uisrc) $(mocsrc)
786$(target)_GENHDRS_REAL += $(uihdr)
787
788.NOTPARALLEL: $(uihdr)
789$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
790 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
791 $$(QUIET)$$(VBOX_UIC3) $(uifile) -o $$@
792
793$(uisrc): $(uihdr) $(uifile) $(wildcard $(uifile).h) | $$(call DIRDEP,$(dir $(uisrc)))
794 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
795 $$(QUIET)$$(VBOX_UIC3) -impl $(uihdr) $(uifile) -o $$@
796
797#$$(QUIET)$$(VBOX_UIC3) $(uifile) -i $(uihdr) -o $$@
798
799$(mocsrc): $(uihdr) | $$(call DIRDEP,$(dir $(mocsrc)))
800 $$(call MSG_TOOL,moc,$(target),$(uihdr),$$@)
801 $$(QUIET)$$(VBOX_MOC4) \
802 $(addprefix -D,$($(target)_DEFS)) \
803 $(addprefix -I,$($(target)_INCS)) \
804 $(uihdr) -o $$@
805
806endef
807
808## Generate a rule to create a header file from an UI4
809# definition source (.ui).
810# @param $uifile UI definintion source file
811define def_qt_gen_src_ui4
812
813$(eval uihdr := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).gen.h)
814
815$(target)_GENHDRS_REAL += $(uihdr)
816
817.NOTPARALLEL: $(uihdr)
818$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
819 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
820 $$(QUIET)$$(VBOX_UIC4) $(uifile) -o $$@
821
822# we assume that the generated header is at least included by
823# the normal header with the same name
824include/$(notdir $(basename $(uifile))).h: $(uihdr)
825
826endef
827
828## Generate a rule to create a .qm file from a NLS translation
829# source (.ts).
830# @param $tsfile Translation source file
831define def_qt_gen_nls
832
833$(eval qmfile := $(PATH_$(target))/nls/$(notdir $(basename $(tsfile))).qm)
834
835OTHER_CLEAN += $(qmfile)
836
837# Note that we use -nocompress in lrelease to avoid stripping comments and
838# other information from .qm files. If we don't do that, we get .qm files two
839# times smaller, but QTranslator::findMessage() will start searching for
840# translations in all existing contexts in case if it cannot find it in the
841# original context (which is of course not acceptable, no matter if it's a
842# special Qt "feature" or just a bug).
843
844$(qmfile): $(tsfile) | $$(call DIRDEP,$(dir $(qmfile)))
845 $$(call MSG_TOOLS,lrelease,$(target),$(tsfile),$$@)
846 $$(QUIET)$$(VBOX_LRELEASE4) -nocompress $(tsfile) -qm $$@
847
848endef
849
850## Generate rules for generating the Qt source for a target.
851# @param $target Target name.
852define def_qt_gen_src
853
854# moc srcs from hdrs with Q_OBJECT
855$(foreach mochdr,$($(target)_QT_MOCHDRS),$(eval $(def_qt_gen_src_moc)))
856# moc includes from srcs with Q_OBJECT
857$(foreach mocsrc,$($(target)_QT_MOCSRCS),$(eval $(def_qt_gen_inc_moc)))
858# moc includes from UI headers with Q_OBJECT
859$(foreach mocuihdr,$($(target)_QT_MOCUIHDRS),$(eval $(def_qt_gen_inc_mocuihdr)))
860# UI3 sources
861$(foreach uifile,$($(target)_QT_UISRCS3),$(eval $(def_qt_gen_src_ui3)))
862# UI4 sources
863$(foreach uifile,$($(target)_QT_UISRCS4),$(eval $(def_qt_gen_src_ui4)))
864# NLS files
865$(foreach tsfile,$($(target)_QT_TRANSLATIONS),$(eval $(def_qt_gen_nls)))
866$(foreach tsfile,$($(target)_QT_TRANSLATIONS_QT),$(eval $(def_qt_gen_nls)))
867# dirs
868$$(call DIRDEP,$(PATH_$(target))/ui/) \
869$$(call DIRDEP,$(PATH_$(target))/moc/) \
870$$(call DIRDEP,$(PATH_$(target))/nls/):
871 $$(call MSG_MKDIR,$$@)
872 $$(QUIET)$$(MKDIR) -p $$@
873
874endef
875
876# Generate Qt source rules.
877$(foreach target,VirtualBox,$(eval $(def_qt_gen_src)))
878
879
880# Generate COM Wrappers
881.NOTPARALLEL: $(WRAPPERSFILE) $(WRAPPERSINCFILE)
882
883$(WRAPPERSINCFILE): $(WRAPPERSFILE)
884
885$(WRAPPERSFILE): $(XIDLFILE) $(WRAPPERSTEMPLATE) | $(call DIRDEP,$(PATH_VirtualBox)/include/)
886 $(call MSG_TOOL,xsltproc,VirtualBox,$<,$@)
887 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(WRAPPERSTEMPLATE) $<
888
889$(call DIRDEP,$(PATH_VirtualBox)/include/):
890 $(call MSG_MKDIR,$@)
891 $(QUIET)$(MKDIR) -p $@
892
893# this is actually necessary only for Win32 target with disabled dependencies
894define def_wrapper_deps
895$(src): $(WRAPPERSFILE) $(WRAPPERSINCFILE)
896endef
897
898$(foreach src,$(VirtualBox_SOURCES),$(eval $(def_wrapper_deps)))
899
900# grep the images out of the resource file for dependency tracking
901VirtualBox_QT_IMAGES = $(shell $(SED) '/images/!d;{s/^.*\(images\/.*\)<.*$$/\1/}' VirtualBox.qrc)
902
903$(PATH_VirtualBox)/ui/vbox_image_collection.cpp: VirtualBox.qrc $(VirtualBox_QT_IMAGES)
904 $(call MSG_TOOL,rcc,VirtualBox,$<,$@)
905 $(QUIET)$(VBOX_RCC4) -o $@ $<
906
907VirtualBox_GENSRCS += $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
908
909#
910# Hand made dependencies go here.
911# Basically, here are dependencies for generated UI source files that
912# include generated headers in turn.
913#
914
915# Make all generated UI sources dependent on all generated headers (since they
916# may include them). This is safer than indifidual dependencies above but
917# currently disabled, because will cause all UI sources to be rebuilt one a
918# single one changes.
919#$(patsubst %,$(PATH_VirtualBox)/ui/%.cpp,$(notdir $(basename $(VirtualBox_QT_UISRCS3)))) : $(VirtualBox_GENHDRS)
920
921
922#
923# Custom targets
924#
925
926# Update all known NLS translation (.ts) files in the nls/ subdirectory.
927# NOTE: This target is intened to be run only by the GUI maintainer shortly
928# before a new product release. VirtualBox_xx_YY.ts is a template for new
929# languages and should never be actually translated or installed.
930updatenls: $(VirtualBox_SOURCES) $(VirtualBox_HEADERS)
931 $(call MSG_L1,lupdate all languages (nls/*.ts))
932 $(QUIET)$(VBOX_LUPDATE4) $^ -ts $(VirtualBox_QT_TRANSLATIONS) nls/VirtualBox_xx_YY.ts
933
934
935#
936# Test targets
937#
938
939test:
940 @echo ====================
941 @echo $(VirtualBox_GENSRCS) | $(SED) -e "s/ /\n/g"
942 @echo --------------------
943 @echo $(VirtualBox_GENSRCS_REAL) | $(SED) -e "s/ /\n/g"
944 @echo ====================
945 @echo $(VirtualBox_GENHDRS) | $(SED) -e "s/ /\n/g"
946 @echo --------------------
947 @echo $(VirtualBox_GENHDRS_REAL) | $(SED) -e "s/ /\n/g"
948 @echo ====================
949
950test2:
951 @echo $(OTHER_CLEAN) | $(SED) -e "s/ /\n/g"
952
953test3:
954 @echo $(VirtualBox_HEADERS) | $(SED) -e "s/ /\n/g"
955
956testwrappers: $(WRAPPERSFILE)
957
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette