VirtualBox

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

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

2130: Improve Shared Folders UI:

Shared Folders Dialog improvements done:

  1. Dialog made modal (all the title buttons made like in non-modal VDM).
  2. [Help]....[Ok][Cancel] dialog's button configuration.
  3. Permanent shared folder could be created during VM session runtime (through the discussed check-box).
  4. Edit action opens on list-view's item double-click.

Note: Also all the GUI_ constants from the different *.cpp files moved into VBoxDefs.cpp

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