VirtualBox

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

Last change on this file since 4393 was 4393, checked in by vboxsync, 18 years ago

FE/Qt: respect VBOX_WITH_DEBUGGER_GUI config variable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 16.6 KB
Line 
1# $Id: Makefile.kmk 4393 2007-08-27 19:27:23Z 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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16
17# include qmake project file
18include VBoxUI.pro
19
20# Import QDesigner UI sources
21VirtualBox_QT_UISRCS := $(FORMS)
22# Import translation sources
23VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS)
24# Import images
25VirtualBox_QT_IMAGES := $(IMAGES)
26
27# reset things to avoid possible conflicts with kBuild
28TEMPLATE :=
29LANGUAGE :=
30FORMS :=
31TRANSLATIONS :=
32IMAGES :=
33
34DEPTH = ../../../..
35include $(PATH_KBUILD)/header.kmk
36
37PROGRAMS = VirtualBox
38DLLS.linux = VBoxKeyboard
39
40INSTALLS = VirtualBox.nls
41
42VBoxKeyboard_TEMPLATE = VBOXR3
43VBoxKeyboard_SOURCES = \
44 src/linux/keyboard.c
45
46VirtualBox_TEMPLATE = VBOXQTGUIEXE
47VirtualBox_SDKS.win = WINPSDK DXSDK
48VirtualBox_SDKS.linux = LIBSDL
49VirtualBox_SDKS.os2 = LIBSDL
50
51ifeq ($(BUILD_TARGET),darwin)
52# For the launch trick we need different inode numbers.
53VirtualBox_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
54endif
55
56# Each nls/VirtualBox_xx_YY.ts file must have a qt_xx_YY.ts counterpart
57VirtualBox_QT_TRANSLATIONS_QT := \
58 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts,\
59 $(filter nls/VirtualBox_%.ts,$(VirtualBox_QT_TRANSLATIONS)))
60
61# QDesigner UI sources are imported from VBoxUI.pro as VirtualBox_QT_UISRC
62
63# Headers containing definitions of classes that use the Q_OBJECT macro
64VirtualBox_QT_MOCHDRS = \
65 include/QIWidgetValidator.h \
66 include/QIHotKeyEdit.h \
67 include/QIStatusBar.h \
68 include/QIStateIndicator.h \
69 include/QIMessageBox.h \
70 include/QIRichLabel.h \
71 include/VBoxGlobalSettings.h \
72 include/VBoxUtils.h \
73 include/VBoxGlobal.h \
74 include/VBoxVMListBox.h \
75 include/VBoxMediaComboBox.h \
76 include/VBoxSelectorWnd.h \
77 include/VBoxConsoleWnd.h \
78 include/VBoxConsoleView.h \
79 include/VBoxProblemReporter.h \
80 include/VBoxDownloaderWgt.h
81
82# Sources containing local definitions of classes that use the Q_OBJECT macro
83VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp
84ifdef VBOX_WITH_XPCOM
85VirtualBox_QT_MOCSRCS += src/COMDefs.cpp
86endif
87
88# UI headers (ui.h) containing local definitions of classes that use the Q_OBJECT macro
89VirtualBox_QT_MOCUIHDRS = \
90 ui/VBoxVMSettingsDlg.ui.h \
91 ui/VBoxVMLogViewer.ui.h \
92 ui/VBoxSharedFoldersSettings.ui.h
93
94
95# All generated sources. Note: this list MUST be in sync with Qt source
96# generation rules defined somewhere below!
97VirtualBox_GENSRCS = \
98 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCHDRS))), $(PATH_VirtualBox)/moc/moc_$(moc).cpp) \
99 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS))), $(PATH_VirtualBox)/ui/$(ui).cpp $(PATH_VirtualBox)/moc/moc_$(ui).cpp) \
100 $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
101
102# All generated headers. Note: this list MUST be in sync with Qt source
103# generation rules defined somewhere below!
104VirtualBox_GENHDRS = \
105 $(foreach mocui,$(notdir $(basename $(VirtualBox_QT_MOCUIHDRS))), $(PATH_VirtualBox)/moc/$(mocui).moc) \
106 $(foreach moc,$(notdir $(basename $(VirtualBox_QT_MOCSRCS))), $(PATH_VirtualBox)/moc/$(moc).moc) \
107 $(foreach ui,$(notdir $(basename $(VirtualBox_QT_UISRCS))), $(PATH_VirtualBox)/ui/$(ui).h)
108
109# All existing .ui.h files for known .ui sources
110VirtualBox_QT_UIHDRS = \
111 $(wildcard $(addsuffix .h,$(VirtualBox_QT_UISRCS)))
112
113# All header files
114VirtualBox_HEADERS = \
115 $(wildcard include/*.h) \
116 $(VirtualBox_GENHDRS) \
117 $(VirtualBox_QT_UIHDRS)
118
119
120VirtualBox_SOURCES = \
121 $(VirtualBox_GENSRCS) \
122 src/main.cpp \
123 src/COMDefs.cpp \
124 src/QIWidgetValidator.cpp \
125 src/QIHotKeyEdit.cpp \
126 src/QIStateIndicator.cpp \
127 src/QIStatusBar.cpp \
128 src/QIMessageBox.cpp \
129 src/QIRichLabel.cpp \
130 src/VBoxDefs.cpp \
131 src/VBoxGlobalSettings.cpp \
132 src/VBoxGlobal.cpp \
133 src/VBoxMediaComboBox.cpp \
134 src/VBoxProblemReporter.cpp \
135 src/VBoxSelectorWnd.cpp \
136 src/VBoxConsoleView.cpp \
137 src/VBoxConsoleWnd.cpp \
138 src/VBoxDownloaderWgt.cpp \
139 src/VBoxVMListBox.cpp \
140 src/VBoxFrameBuffer.cpp
141
142VirtualBox_SOURCES.win += \
143 src/win32/VirtualBox.rc
144
145VirtualBox_SOURCES.win += \
146 src/VBoxFBDDRAW.cpp
147
148VirtualBox_SOURCES.linux = \
149 src/linux/XKeyboard.cpp
150
151VirtualBox_SOURCES.darwin = \
152 src/darwin/DarwinKeyboard.cpp \
153 src/darwin/DarwinCursor.cpp \
154 src/darwin/VBoxAquaStyle.cpp \
155 src/darwin/VBoxUtils-darwin.cpp
156
157## @todo how to detect what tool is used?
158## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
159# more generic -Wno-extra
160ifdef VBOX_WITH_XPCOM
161src/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
162endif
163
164VirtualBox_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS
165VirtualBox_DEFS.debug = VBOX_GUI_DEBUG VBOX_CHECK_STATE # QT_FATAL_ASSERT
166VirtualBox_DEFS.darwin = VBOX_GUI_USE_QIMAGE
167VirtualBox_DEFS.linux = VBOX_GUI_USE_SDL
168VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
169VirtualBox_DEFS.os2 = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL QT_DLL
170#ifndef VBOX_OSE
171 VirtualBox_DEFS.darwin += VBOX_WITH_HACKED_QT
172#endif
173ifneq ($(BUILD_TYPE),release)
174 # non-release builds has some extra features.
175 VirtualBox_DEFS += VBOX_GUI_USE_REFRESH_TIMER
176 VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
177 VirtualBox_DEFS.linux += VBOX_GUI_USE_QIMAGE
178endif
179ifdef VBOX_WITH_ALSA
180 VirtualBox_DEFS += VBOX_WITH_ALSA
181endif
182ifdef VBOX_OSE
183 VirtualBox_DEFS += VBOX_OSE
184endif
185ifdef VBOX_WITH_DEBUGGER_GUI
186 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
187endif
188
189VirtualBox_INCS = \
190 ./include \
191 $(PATH_VirtualBox)/ui \
192 $(PATH_VirtualBox)/moc \
193 $(PATH_VirtualBox)/include \
194
195
196ifeq ($(BUILD_TYPE),release)
197 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
198else
199 VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
200 ifeq ($(USERNAME),dmik)
201 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
202 else
203 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
204 endif
205endif
206VirtualBox_LDFLAGS.darwin = -framework IOKit
207VirtualBox_LIBS.win = \
208 $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
209 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
210 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
211VirtualBox_LIBS.linux = $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
212
213
214ifdef VBOX_WITH_DEBUGGER_GUI
215 ifeq ($(BUILD_TARGET),win)
216 VirtualBox_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB)
217 else
218 VirtualBox_LIBS += $(PATH_DLL)/VBoxDbg$(VBOX_SUFF_DLL)
219 endif
220endif
221
222WRAPPERSFILE = $(PATH_VirtualBox)/include/COMWrappers.h
223WRAPPERSINCFILE = include/COMDefs.h
224WRAPPERSTEMPLATE = include/COMWrappers.xsl
225XIDLFILE = ../../Main/idl/VirtualBox.xidl
226
227
228# generated files we need to clean manually
229OTHER_CLEAN = \
230 $(VirtualBox_GENSRCS) \
231 $(VirtualBox_GENHDRS) \
232 $(WRAPPERSFILE)
233
234
235#
236# On Mac OS X (darwin) we need to install icon resources and compusory bundle contents.
237#
238INSTALLS.darwin += VirtualBox.app
239VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
240VirtualBox.app_MODE = 644
241VirtualBox.app_SOURCES = \
242 src/darwin/PkgInfo \
243 $(PATH_TARGET)/Info.plist \
244 images/VirtualBox.icns=>Resources/virtualbox.icns
245
246$(PATH_TARGET)/Info.plist: src/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
247 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
248 $(QUIET)$(RM) -f $@
249 $(QUIET)$(SED) \
250 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
251 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
252 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
253 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
254 $< > $@
255
256INSTALLS.darwin += VirtualBoxVM.app
257VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
258VirtualBoxVM.app_MODE = 644
259VirtualBoxVM.app_SOURCES = \
260 src/darwin/VM-PkgInfo=>PkgInfo \
261 $(PATH_TARGET)/VM-Info.plist=>Info.plist \
262 images/VirtualBox.icns=>Resources/virtualbox.icns
263VirtualBoxVM.app_SYMLINKS = \
264 MacOS=>../../../MacOS/
265
266$(PATH_TARGET)/VM-Info.plist: src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
267 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
268 $(QUIET)$(RM) -f $@
269 $(QUIET)$(SED) \
270 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
271 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
272 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
273 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
274 $< > $@
275
276#
277# Translation installation
278#
279
280VirtualBox.nls_INST = $(INST_BIN)nls/
281VirtualBox.nls_SOURCES = $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS)))
282VirtualBox.nls_SOURCES += $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS_QT)))
283VirtualBox.nls_MODE = 644
284
285
286#
287# Testcase for the darwin keyboard routines.
288#
289ifdef VBOX_WITH_TESTCASES
290PROGRAMS.darwin += tstDarwinKeyboard
291tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
292tstDarwinKeyboard_INCS = include
293tstDarwinKeyboard_SOURCES = \
294 src/darwin/tstDarwinKeyboard.cpp \
295 src/darwin/DarwinKeyboard.cpp
296tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon
297tstDarwinKeyboard_LIBS = \
298 $(LIB_RUNTIME)
299endif
300
301
302
303# Commit the magic.
304# (note: before custom rules that make usage of generated variables!).
305include $(PATH_KBUILD)/footer.kmk
306
307
308
309#
310# Qt source file generation rules
311#
312
313## @todo move QT source generation macros to kBuild
314
315## Generate a rule to create a MOC source file from a header containing
316# classes that use the Q_OBJECT macro.
317# @param $mochdr header file with Q_OBJECT
318define def_qt_gen_src_moc
319
320$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(mochdr))).cpp)
321
322$(target)_GENSRCS_REAL += $(mocsrc)
323
324$(mocsrc): $(mochdr)
325 $$(call MSG_TOOL,moc,$(target),$(mochdr),$$@)
326 $$(QUIET)$$(MKDIR) -p $$(@D)
327 $$(QUIET)$$(VBOX_MOC) $(mochdr) -o $$@
328
329endef
330
331## Generate a rule to create a MOC include file from a source containing
332# local classes that use the Q_OBJECT macro. This include is then included
333# by that source, so it must be generated before the source gets compiled.
334# @param $mocsrc source file with Q_OBJECT
335define def_qt_gen_inc_moc
336
337$(eval mocobj := $(PATH_$(target)_$(mocsrc))/$(notdir $(basename $(mocsrc)))$(VBOX_SUFF_OBJ))
338$(eval mocinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocsrc))).moc)
339
340$(target)_GENHDRS_REAL += $(mocinc)
341
342$(mocobj): $(mocinc)
343
344.NOTPARALLEL: $(mocinc)
345$(mocinc): $(mocsrc)
346 $$(call MSG_TOOL,moc,$(target),$(mocsrc),$$@)
347 $$(QUIET)$$(MKDIR) -p $$(@D)
348 $$(QUIET)$$(VBOX_MOC) -i $(mocsrc) -o $$@
349
350endef
351
352## Generate a rule to create a MOC include file from a UI header (ui.h) containing
353# local classes that use the Q_OBJECT macro. This include is then included
354# by that header, so it must be generated before the UI source gets compiled.
355# @param $mocuihdr UI header file with Q_OBJECT
356define def_qt_gen_inc_mocuihdr
357
358$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(basename $(mocuihdr)))).cpp)
359$(eval uiobj := $(PATH_$(target)_$$(uisrc))/$(notdir $(basename $$(uisrc)))$(VBOX_SUFF_OBJ))
360$(eval mocuiinc := $(PATH_$(target))/moc/$(notdir $(basename $(mocuihdr))).moc)
361
362$(target)_GENHDRS_REAL += $(mocuiinc)
363
364.NOTPARALLEL: $(mocuiinc)
365$(uisrc): $(mocuiinc)
366$(mocuiinc): $(mocuihdr)
367 $$(call MSG_TOOL,moc,$(target),$(mocuihdr),$$@)
368 $$(QUIET)$$(MKDIR) -p $$(@D)
369 $$(QUIET)$$(VBOX_MOC) -i $(mocuihdr) -o $$@
370
371endef
372
373## Generate a rule to create a header and source files from an UI
374# definition source (.ui).
375# @param $uifile UI definintion source file
376define def_qt_gen_src_ui
377
378$(eval uisrc := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).cpp)
379$(eval uihdr := $(PATH_$(target))/ui/$(notdir $(basename $(uifile))).h)
380$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(uifile))).cpp)
381
382$(target)_GENSRCS_REAL += $(uisrc) $(mocsrc)
383$(target)_GENHDRS_REAL += $(uihdr)
384
385.NOTPARALLEL: $(uihdr)
386$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
387 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
388 $$(QUIET)$$(VBOX_UIC) $(uifile) -o $$@
389
390$(uisrc): $(uihdr) $(uifile) $(wildcard $(uifile).h) | $$(call DIRDEP,$(dir $(uisrc)))
391 $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
392 $$(QUIET)$$(VBOX_UIC) $(uifile) -i $(uihdr) -o $$@
393
394$(mocsrc): $(uihdr) | $$(call DIRDEP,$(dir $(mocsrc)))
395 $$(call MSG_TOOL,moc,$(target),$(uihdr),$$@)
396 $$(QUIET)$$(VBOX_MOC) $(uihdr) -o $$@
397
398endef
399
400## Generate a rule to create a .qm file from a NLS translation
401# source (.ts).
402# @param $tsfile Translation source file
403define def_qt_gen_nls
404
405$(eval qmfile := $(PATH_$(target))/nls/$(notdir $(basename $(tsfile))).qm)
406
407OTHER_CLEAN += $(qmfile)
408
409# Note that we use -nocompress in lrelease to avoid stripping comments and
410# other information from .qm files. If we don't do that, we get .qm files two
411# times smaller, but QTranslator::findMessage() will start searching for
412# translations in all existing contexts in case if it cannot find it in the
413# original context (which is of course not acceptable, no matter if it's a
414# special Qt "feature" or just a bug).
415
416$(qmfile): $(tsfile) | $$(call DIRDEP,$(dir $(qmfile)))
417 $$(call MSG_TOOLS,lrelease,$(target),$(tsfile),$$@)
418 $$(QUIET)$$(VBOX_LRELEASE) -nocompress $(tsfile) -qm $$@
419
420endef
421
422## Generate rules for generating the Qt source for a target.
423# @param $target Target name.
424define def_qt_gen_src
425
426# moc srcs from hdrs with Q_OBJECT
427$(foreach mochdr,$($(target)_QT_MOCHDRS),$(eval $(def_qt_gen_src_moc)))
428# moc includes from srcs with Q_OBJECT
429$(foreach mocsrc,$($(target)_QT_MOCSRCS),$(eval $(def_qt_gen_inc_moc)))
430# moc includes from UI headers with Q_OBJECT
431$(foreach mocuihdr,$($(target)_QT_MOCUIHDRS),$(eval $(def_qt_gen_inc_mocuihdr)))
432# UI sources
433$(foreach uifile,$($(target)_QT_UISRCS),$(eval $(def_qt_gen_src_ui)))
434# NLS files
435$(foreach tsfile,$($(target)_QT_TRANSLATIONS),$(eval $(def_qt_gen_nls)))
436$(foreach tsfile,$($(target)_QT_TRANSLATIONS_QT),$(eval $(def_qt_gen_nls)))
437# dirs
438$$(call DIRDEP,$(PATH_$(target))/ui/) \
439$$(call DIRDEP,$(PATH_$(target))/moc/) \
440$$(call DIRDEP,$(PATH_$(target))/nls/):
441 $$(call MSG_MKDIR,$$@)
442 $$(QUIET)$$(MKDIR) -p $$@
443
444endef
445
446# Generate Qt source rules.
447$(foreach target,VirtualBox,$(eval $(def_qt_gen_src)))
448
449
450# Generate COM Wrappers
451.NOTPARALLEL: $(WRAPPERSFILE) $(WRAPPERSINCFILE)
452
453$(WRAPPERSINCFILE): $(WRAPPERSFILE)
454
455$(WRAPPERSFILE): $(XIDLFILE) $(WRAPPERSTEMPLATE) | $(call DIRDEP,$(PATH_VirtualBox)/include/)
456 $(call MSG_TOOL,xsltproc,VirtualBox,$<,$@)
457 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(WRAPPERSTEMPLATE) $<
458
459$(call DIRDEP,$(PATH_VirtualBox)/include/):
460 $(call MSG_MKDIR,$@)
461 $(QUIET)$(MKDIR) -p $@
462
463# this is actually necessary only for Win32 target with disabled dependencies
464define def_wrapper_deps
465$(src): $(WRAPPERSFILE) $(WRAPPERSINCFILE)
466endef
467
468$(foreach src,$(VirtualBox_SOURCES),$(eval $(def_wrapper_deps)))
469
470# static images imported from VBoxUI.pro as VirtualBox_QT_IMAGES
471
472$(PATH_VirtualBox)/ui/vbox_image_collection.txt: VBoxUI.pro $(VirtualBox_QT_IMAGES)
473 @echo " \
474 $(VirtualBox_QT_IMAGES) \
475 " > $@
476
477$(PATH_VirtualBox)/ui/vbox_image_collection.cpp: $(PATH_VirtualBox)/ui/vbox_image_collection.txt
478 $(call MSG_TOOL,uic,VirtualBox,$<,$@)
479 $(QUIET)$(VBOX_UIC) -o $@ -embed VBoxGUI -f $<
480
481VirtualBox_GENSRCS += $(PATH_VirtualBox)/ui/vbox_image_collection.cpp
482OTHER_CLEAN += $(PATH_VirtualBox)/ui/vbox_image_collection.txt
483
484
485#
486# Hand made dependencies go here.
487# Basically, here are dependencies for generated UI source files that
488# include generated headers in turn.
489#
490
491$(PATH_VirtualBox)/ui/VBoxDiskImageManagerDlg.cpp: \
492 $(PATH_VirtualBox)/ui/VBoxNewHDWzd.h
493
494# Make all generated UI sources dependent on all generated headers (since they
495# may include them). This is safer than indifidual dependencies above but
496# currently disabled, because will cause all UI sources to be rebuilt one a
497# single one changes.
498#$(patsubst %,$(PATH_VirtualBox)/ui/%.cpp,$(notdir $(basename $(VirtualBox_QT_UISRCS)))) : $(VirtualBox_GENHDRS)
499
500
501#
502# Custom targets
503#
504
505# Update all known NLS translation (.ts) files in the nls/ subdirectory.
506# NOTE: This target is intened to be run only by the GUI maintainer shortly
507# before a new product release. VirtualBox_xx_YY.ts is a template for new
508# languages and should never be actually translated or installed.
509updatenls: $(VirtualBox_SOURCES) $(VirtualBox_HEADERS)
510 $(call MSG_L1,lupdate all languages (nls/*.ts))
511 $(QUIET)$(VBOX_LUPDATE) $^ -ts $(VirtualBox_QT_TRANSLATIONS) nls/VirtualBox_xx_YY.ts
512
513
514#
515# Test targets
516#
517
518test:
519 @echo ====================
520 @echo $(VirtualBox_GENSRCS) | $(SED) -e "s/ /\n/g"
521 @echo --------------------
522 @echo $(VirtualBox_GENSRCS_REAL) | $(SED) -e "s/ /\n/g"
523 @echo ====================
524 @echo $(VirtualBox_GENHDRS) | $(SED) -e "s/ /\n/g"
525 @echo --------------------
526 @echo $(VirtualBox_GENHDRS_REAL) | $(SED) -e "s/ /\n/g"
527 @echo ====================
528
529test2:
530 @echo $(OTHER_CLEAN) | $(SED) -e "s/ /\n/g"
531
532test3:
533 @echo $(VirtualBox_HEADERS) | $(SED) -e "s/ /\n/g"
534
535testwrappers: $(WRAPPERSFILE)
536
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