VirtualBox

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

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

VBoxVMInformationDlg ported qt3=>qt4.

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