VirtualBox

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

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

FE/Qt: Enabled QIMAGE and SDL remdering modes on OS/2.

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