VirtualBox

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

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

OS/2

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