1 | # $Id: Makefile.kmk 10916 2008-07-28 14:46:54Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Qt GUI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/header.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Globals.
|
---|
27 | #
|
---|
28 | VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
|
---|
29 |
|
---|
30 | VBOX_WITH_REGISTRATION := 1
|
---|
31 |
|
---|
32 | # Ask the user to register at Sun. If this setting is disabled the user can
|
---|
33 | # still register using the menu if desired.
|
---|
34 | VBOX_WITH_REGISTRATION_REQUEST := 1
|
---|
35 |
|
---|
36 | # Show the update notifier dialog during startup. If this setting is disabled
|
---|
37 | # the user can still update using the menu if desired.
|
---|
38 | VBOX_WITH_UPDATE_REQUEST := 1
|
---|
39 |
|
---|
40 |
|
---|
41 | # Disable the debugger for now, this is another story.
|
---|
42 | VBOX_WITH_DEBUGGER_GUI :=
|
---|
43 | DEFS := $(filter-out VBOX_WITH_DEBUGGER_GUI,$(DEFS))
|
---|
44 |
|
---|
45 | # Guess VBOX_WITH_QT4_SUN
|
---|
46 | ifndef VBOX_WITH_QT4_SUN
|
---|
47 | ifndef VBOX_OSE
|
---|
48 | if1of ($(KBUILD_TARGET), darwin solaris win)
|
---|
49 | VBOX_WITH_QT4_SUN := 1
|
---|
50 | endif
|
---|
51 | endif
|
---|
52 | endif
|
---|
53 |
|
---|
54 | #
|
---|
55 | # Handmade configuration of qt4 - very annoying, this needs to
|
---|
56 | # be cleaned up properly later some time (not important now).
|
---|
57 | #
|
---|
58 | ifeq ($(VBOX_PATH_QT4),)
|
---|
59 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
60 | VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
|
---|
61 | ifeq ($(VBOX_PATH_QT4),)
|
---|
62 | ifneq ($(wildcard /Library/Frameworks/QtCore.framework),)
|
---|
63 | # Using the global installation (for OSE).
|
---|
64 | VBOX_PATH_QT4 ?= /usr
|
---|
65 | VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks
|
---|
66 | endif
|
---|
67 | endif
|
---|
68 | else if1of ($(KBUILD_TARGET),win)
|
---|
69 | VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
|
---|
70 | else if1of ($(KBUILD_TARGET),solaris)
|
---|
71 | VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
|
---|
72 | ifneq ($(VBOX_PATH_QT4),)
|
---|
73 | VBOX_WITH_QT4_SUN = 1
|
---|
74 | endif
|
---|
75 | endif
|
---|
76 | endif
|
---|
77 | ifeq ($(VBOX_PATH_QT4),)
|
---|
78 | if1of ($(USERNAME), bird)
|
---|
79 | # gentoo (64-bit)
|
---|
80 | VBOX_PATH_QT4 ?= /usr
|
---|
81 | VBOX_PATH_QT4_LIB ?= /usr/lib/qt4
|
---|
82 | endif
|
---|
83 | endif
|
---|
84 | VBOX_PATH_QT4 ?= /usr
|
---|
85 | VBOX_PATH_QT4_LIB ?= $(VBOX_PATH_QT4)/lib
|
---|
86 |
|
---|
87 | # Hack LD_LIBRARY_PATH for stuff in tools.
|
---|
88 | ifdef VBOX_WITH_QT4_SUN
|
---|
89 | if1of ($(KBUILD_TARGET), linux)
|
---|
90 | export LD_LIBRARY_PATH := $(VBOX_PATH_QT4_LIB):$(LD_LIBRARY_PATH)
|
---|
91 | endif
|
---|
92 | endif
|
---|
93 |
|
---|
94 |
|
---|
95 | ifdef VBOX_WITH_QT4_SUN
|
---|
96 | #
|
---|
97 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
98 | #
|
---|
99 | ## @todo move to the root Makefile.kmk, and remove qt4-bin from INSTALLS below.
|
---|
100 | INSTALLS += qt4-bin
|
---|
101 | qt4-bin_MODE = 644
|
---|
102 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
103 | qt4-bin_INST = $(INST_VIRTUALBOX)Contents/Frameworks/
|
---|
104 | qt4-bin_SOURCES = \
|
---|
105 | $(VBOX_PATH_QT4)/Frameworks/QtCore.framework/Versions/4/QtCore=>QtCore.framework/Versions/4/QtCore \
|
---|
106 | $(VBOX_PATH_QT4)/Frameworks/QtGui.framework/Versions/4/QtGui=>QtGui.framework/Versions/4/QtGui
|
---|
107 | else ifeq ($(KBUILD_TARGET),win)
|
---|
108 | qt4-bin_INST = $(INST_BIN)
|
---|
109 | qt4-bin_SOURCES = \
|
---|
110 | $(VBOX_PATH_QT4_LIB)/VBoxQtCore4.dll \
|
---|
111 | $(VBOX_PATH_QT4_LIB)/VBoxQtGui4.dll
|
---|
112 | else
|
---|
113 | qt4-bin_INST = $(INST_BIN)
|
---|
114 | qt4-bin_SOURCES = \
|
---|
115 | $(VBOX_PATH_QT4_LIB)/libVBoxQtCore.so.4 \
|
---|
116 | $(VBOX_PATH_QT4_LIB)/libVBoxQtGui.so.4
|
---|
117 | endif
|
---|
118 | endif # VBOX_WITH_QT4_SUN
|
---|
119 |
|
---|
120 |
|
---|
121 | # Template copy from the qt3 stuff. Appended a "4" on the
|
---|
122 | # relevant places.
|
---|
123 |
|
---|
124 | #
|
---|
125 | # Template for building Qt GUI executables.
|
---|
126 | #
|
---|
127 |
|
---|
128 | TEMPLATE_VBOXQT4GUIEXE = VBox Qt4 GUI Executable
|
---|
129 | USES += qt4
|
---|
130 | TEMPLATE_VBOXQT4GUIEXE_USES = qt4
|
---|
131 | TEMPLATE_VBOXQT4GUIEXE_QTTOOL = QT4
|
---|
132 | TEMPLATE_VBOXQT4GUIEXE_MOCTOOL = QT4
|
---|
133 | TEMPLATE_VBOXQT4GUIEXE_UICTOOL = QT4
|
---|
134 | TEMPLATE_VBOXQT4GUIEXE_RCCTOOL = QT4
|
---|
135 | TEMPLATE_VBOXQT4GUIEXE_LRCTOOL = QT4
|
---|
136 | TEMPLATE_VBOXQT4GUIEXE_SDKS = QT4
|
---|
137 | ifdef VBOX_WITH_QT4_SUN
|
---|
138 | ifneq ($(KBUILD_TARGET),darwin) ## @todo The next darwin build should also make use the prefix just to make things more uniform.
|
---|
139 | TEMPLATE_VBOXQT4GUIEXE_QT_PREFIX = VBox
|
---|
140 | endif
|
---|
141 | endif
|
---|
142 | TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS)
|
---|
143 | TEMPLATE_VBOXQT4GUIEXE_INCS = \
|
---|
144 | $(VBOX_PATH_SDK)/include
|
---|
145 |
|
---|
146 | ifeq ($(KBUILD_TARGET),win)
|
---|
147 | TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_VCC_TOOL)
|
---|
148 | TEMPLATE_VBOXQT4GUIEXE_DEFS += \
|
---|
149 | _WIN32_WINNT=0x0500 UNICODE _UNICODE \
|
---|
150 | QT_DLL _CRT_SECURE_NO_DEPRECATE \
|
---|
151 | $(QMAKE_PRL_DEFINES)
|
---|
152 | ## @todo VCC70 flags?
|
---|
153 | ifdef VBOX_USE_VCC80
|
---|
154 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
|
---|
155 | -nologo -Zm200 -W3 -MD -Zi -EHsc -Zc:wchar_t-
|
---|
156 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -RTCsu
|
---|
157 | else
|
---|
158 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
|
---|
159 | -nologo -Zm200 -W3 -MD -Zi -GX
|
---|
160 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -GZ
|
---|
161 | endif
|
---|
162 | TEMPLATE_VBOXQT4GUIEXE_INCS += \
|
---|
163 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC)
|
---|
164 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS = \
|
---|
165 | /NOD /NOLOGO /INCREMENTAL:NO /MAPINFO:EXPORTS /DEBUG \
|
---|
166 | /DELAYLOAD:oleaut32.dll
|
---|
167 | TEMPLATE_VBOXQT4GUIEXE_SDKS += WINPSDK
|
---|
168 | TEMPLATE_VBOXQT4GUIEXE_LIBS = \
|
---|
169 | $(VBOX_LIBS_QT4) \
|
---|
170 | $(LIB_RUNTIME) \
|
---|
171 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \
|
---|
172 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \
|
---|
173 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \
|
---|
174 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \
|
---|
175 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
|
---|
176 | TEMPLATE_VBOXQT4GUIEXE_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS)
|
---|
177 |
|
---|
178 | else # the gcc guys:
|
---|
179 | TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_GCC_TOOL)
|
---|
180 | TEMPLATE_VBOXQT4GUIEXE_DEFS.linux = _REENTRANT
|
---|
181 |
|
---|
182 | TEMPLATE_VBOXQT4GUIEXE_DEFS.solaris = _REENTRANT
|
---|
183 |
|
---|
184 | TEMPLATE_VBOXQT4GUIEXE_INCS += \
|
---|
185 | $(LIB_SDL_INC)
|
---|
186 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \
|
---|
187 | -pipe -Wall -W -frtti -fno-exceptions -Wno-non-virtual-dtor \
|
---|
188 | -Wno-long-long -fshort-wchar -fno-strict-aliasing \
|
---|
189 | $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden)
|
---|
190 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.x86 = -m32
|
---|
191 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.amd64 = -m64
|
---|
192 | TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.linux = -pthread
|
---|
193 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.x86 = -m32
|
---|
194 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.amd64 = -m64
|
---|
195 | TEMPLATE_VBOXQT4GUIEXE_LIBS = \
|
---|
196 | $(VBOX_LIBS_QT4) \
|
---|
197 | $(LIB_SDL) \
|
---|
198 | $(LIB_RUNTIME) \
|
---|
199 | $(LIB_REM) \
|
---|
200 | $(LIB_VMM)
|
---|
201 |
|
---|
202 | ifeq ($(KBUILD_TARGET),linux)
|
---|
203 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(VBOX_LD_as_needed)
|
---|
204 | TEMPLATE_VBOXQT4GUIEXE_LIBS += \
|
---|
205 | $(VBOX_XCURSOR_LIBS)
|
---|
206 | TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \
|
---|
207 | $(VBOX_LIBPATH_X11)
|
---|
208 | else ifeq ($(KBUILD_TARGET),darwin)
|
---|
209 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += -framework Carbon -framework QuickTime -bind_at_load
|
---|
210 | TEMPLATE_VBOXQT4GUIEXE_LIBS +=
|
---|
211 | TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
|
---|
212 | else
|
---|
213 | TEMPLATE_VBOXQT4GUIEXE_INCS += \
|
---|
214 | $(VBOX_XCURSOR_INCS)
|
---|
215 | TEMPLATE_VBOXQT4GUIEXE_LIBS += \
|
---|
216 | $(VBOX_XCURSOR_LIBS) \
|
---|
217 | Xext \
|
---|
218 | X11 \
|
---|
219 | m \
|
---|
220 | $(LIB_PTHREAD)
|
---|
221 | TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \
|
---|
222 | $(VBOX_LIBPATH_X11)
|
---|
223 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
224 | TEMPLATE_VBOXQT4GUIEXE_INCS += \
|
---|
225 | /usr/include \
|
---|
226 | /usr/X11R6/include \
|
---|
227 | /usr/local/include
|
---|
228 | endif
|
---|
229 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
230 | TEMPLATE_VBOXQT4GUIEXE_LIBS += \
|
---|
231 | rt socket nsl
|
---|
232 | endif
|
---|
233 | ifdef VBOX_WITH_ORIGIN
|
---|
234 | # Assume the Qt shared objects are in the same directory as the executable, on Solaris too.
|
---|
235 | TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)'
|
---|
236 | endif
|
---|
237 | endif
|
---|
238 |
|
---|
239 | endif
|
---|
240 |
|
---|
241 | # Add COM/XPCOM stuff
|
---|
242 | TEMPLATE_VBOXQT4GUIEXE_LIBS += \
|
---|
243 | $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB)
|
---|
244 | ifdef VBOX_WITH_XPCOM
|
---|
245 | ## @todo may be worth creating the VBOX_XPCOM SDK def, or just a SDK_VBOXXPCOM.
|
---|
246 | TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM
|
---|
247 | TEMPLATE_VBOXQT4GUIEXE_INCS += \
|
---|
248 | $(VBOX_XPCOM_INCS)
|
---|
249 | TEMPLATE_VBOXQT4GUIEXE_LIBS += \
|
---|
250 | $(LIB_XPCOM)
|
---|
251 | endif
|
---|
252 |
|
---|
253 | #
|
---|
254 | # Template for building Qt GUI components.
|
---|
255 | #
|
---|
256 | TEMPLATE_VBOXQT4GUI = VBox Qt GUI Components
|
---|
257 | TEMPLATE_VBOXQT4GUI_EXTENDS = VBOXQTGUIEXE
|
---|
258 | TEMPLATE_VBOXQT4GUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQT4GUIEXE_LIBS))
|
---|
259 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
260 | TEMPLATE_VBOXQT4GUI_LDFLAGS = $(filter-out -framework Carbon -framework QuickTime -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS))
|
---|
261 | endif
|
---|
262 | ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),)
|
---|
263 | ifneq ($(KBUILD_TARGET),win)
|
---|
264 | TEMPLATE_VBOXQT4GUI_DEFS = PIC $(TEMPLATE_VBOXQT4GUIEXE_DEFS)
|
---|
265 | TEMPLATE_VBOXQT4GUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CFLAGS)
|
---|
266 | TEMPLATE_VBOXQT4GUI_CXXFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS)
|
---|
267 | TEMPLATE_VBOXQT4GUI_LDFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS)
|
---|
268 | endif
|
---|
269 | endif
|
---|
270 |
|
---|
271 |
|
---|
272 | #
|
---|
273 | # The targets.
|
---|
274 | #
|
---|
275 | PROGRAMS += VirtualBox4
|
---|
276 | ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
277 | DLLS += VBoxKeyboard
|
---|
278 | ## @todo convert to install target.
|
---|
279 | OTHERS += $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
280 | CLEAN += $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
281 | endif
|
---|
282 | INSTALLS += VirtualBox4.nls
|
---|
283 |
|
---|
284 |
|
---|
285 | #
|
---|
286 | # VBoxKeyboard - keyboard library for X11.
|
---|
287 | #
|
---|
288 | VBoxKeyboard_TEMPLATE = VBOXR3
|
---|
289 | VBoxKeyboard_SOURCES = \
|
---|
290 | src/linux/keyboard-new.c
|
---|
291 | VBoxKeyboard_LIBS = X11
|
---|
292 | VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
|
---|
293 |
|
---|
294 |
|
---|
295 | #
|
---|
296 | # vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
|
---|
297 | # redistributed with usable sources.
|
---|
298 | #
|
---|
299 | # This rule will link create a temporary symlink to src/linux/ and tar
|
---|
300 | # up the selected files into a tarball that is installed into the
|
---|
301 | # bin directory (probably belongs in /usr/shared/somewhere really,
|
---|
302 | # but wtf, it's not like we're even trying to be FHS compliant).
|
---|
303 | #
|
---|
304 | ## @todo this should be tar'ed down into the output directory and installed using an install target.
|
---|
305 | $(PATH_BIN)/vboxkeyboard.tar.gz: \
|
---|
306 | $(VBoxKeyboard_SOURCES) \
|
---|
307 | src/linux/COPYING.LIB \
|
---|
308 | src/linux/keyboard.h \
|
---|
309 | src/linux/keyboard-layouts.h \
|
---|
310 | src/linux/keyboard-list.h \
|
---|
311 | src/linux/keyboard-tables.h \
|
---|
312 | src/linux/keyboard-types.h \
|
---|
313 | src/linux/Makefile
|
---|
314 | $(call MSG_TOOL,tar/gzip,,$@)
|
---|
315 | $(QUIET2)$(RM) -f $(PATH_TARGET)/vboxkeyboard $@
|
---|
316 | $(QUIET)$(LN_SYMLINK) $(VBOX_VIRTUALBOX4_SRC)/src/linux/ $(PATH_TARGET)/vboxkeyboard
|
---|
317 | $(QUIET)cd $(PATH_TARGET) \
|
---|
318 | && tar -chvf - $(addprefix vboxkeyboard/,$(notdir $^)) \
|
---|
319 | | gzip - > $@
|
---|
320 | $(QUIET2)$(RM) -f $(PATH_TARGET)/vboxkeyboard
|
---|
321 |
|
---|
322 |
|
---|
323 | #
|
---|
324 | # Include Qt project file, we'll use FORMS and TRANSLATIONS in
|
---|
325 | # the VirtualBox4 setup below.
|
---|
326 | #
|
---|
327 | SAVED_TEMPLATE := $(TEMPLATE)
|
---|
328 | include $(PATH_SUB_CURRENT)/VBoxUI.pro
|
---|
329 |
|
---|
330 |
|
---|
331 | #
|
---|
332 | # VirtualBox4 - The GUI program.
|
---|
333 | #
|
---|
334 | VirtualBox4_TEMPLATE = VBOXQT4GUIEXE
|
---|
335 | VirtualBox4_NAME = VirtualBox
|
---|
336 | VirtualBox4_SDKS.win = WINPSDK DXSDK
|
---|
337 | ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(KBUILD_TARGET)),) # X11 + os2 ## @todo solaris
|
---|
338 | VirtualBox4_SDKS += LIBSDL
|
---|
339 | endif
|
---|
340 |
|
---|
341 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
342 | # For the launch trick we need different inode numbers.
|
---|
343 | VirtualBox4_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
344 |
|
---|
345 | # For testing iChat Theater stuff change the sdk path (HACK ALERT!)
|
---|
346 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
347 | VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
|
---|
348 | endif
|
---|
349 | endif # darwin
|
---|
350 |
|
---|
351 | VirtualBox4_DEFS = VBOX_GUI_SEPARATE_VM_PROCESS
|
---|
352 | VirtualBox4_DEFS.debug = VBOX_GUI_DEBUG VBOX_CHECK_STATE # QT_FATAL_ASSERT
|
---|
353 | VirtualBox4_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
|
---|
354 | VirtualBox4_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
355 | VirtualBox4_DEFS.linux = VBOX_GUI_USE_SDL
|
---|
356 | VirtualBox4_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
357 | VirtualBox4_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
|
---|
358 | VirtualBox4_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
|
---|
359 | VirtualBox4_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
|
---|
360 | VirtualBox4_DEFS.win.amd64 = VBOX_WITHOUT_QHTTP
|
---|
361 | #ifndef VBOX_OSE
|
---|
362 | ## @todo VBOX_WITH_HACKED_QT doesn't apply to Qt4, so why is this still here?
|
---|
363 | VirtualBox4_DEFS.darwin += VBOX_WITH_HACKED_QT
|
---|
364 | #endif
|
---|
365 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
366 | VirtualBox4_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
367 | endif
|
---|
368 | ifneq ($(KBUILD_TYPE),release)
|
---|
369 | # non-release builds has some extra features.
|
---|
370 | VirtualBox4_DEFS.win += VBOX_GUI_USE_DDRAW
|
---|
371 | VirtualBox4_DEFS.linux += VBOX_GUI_USE_QIMAGE
|
---|
372 | endif
|
---|
373 | ifdef VBOX_WITH_REGISTRATION
|
---|
374 | VirtualBox4_DEFS += VBOX_WITH_REGISTRATION
|
---|
375 | endif
|
---|
376 | ifdef VBOX_WITH_REGISTRATION_REQUEST
|
---|
377 | VirtualBox4_DEFS += VBOX_WITH_REGISTRATION_REQUEST
|
---|
378 | endif
|
---|
379 | ifdef VBOX_WITH_UPDATE_REQUEST
|
---|
380 | VirtualBox4_DEFS += VBOX_WITH_UPDATE_REQUEST
|
---|
381 | endif
|
---|
382 | ifdef VBOX_WITH_ALSA
|
---|
383 | VirtualBox4_DEFS += VBOX_WITH_ALSA
|
---|
384 | endif
|
---|
385 | ifdef VBOX_WITH_PULSE
|
---|
386 | VirtualBox4_DEFS += VBOX_WITH_PULSE
|
---|
387 | endif
|
---|
388 | ifdef VBOX_WITH_E1000
|
---|
389 | VirtualBox4_DEFS += VBOX_WITH_E1000
|
---|
390 | endif
|
---|
391 | ifdef VBOX_OSE
|
---|
392 | VirtualBox4_DEFS += VBOX_OSE
|
---|
393 | endif
|
---|
394 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
395 | VirtualBox4_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
396 | endif
|
---|
397 |
|
---|
398 | VirtualBox4_INCS = \
|
---|
399 | ./include \
|
---|
400 | $(PATH_VirtualBox4)/include
|
---|
401 |
|
---|
402 | ifeq ($(KBUILD_TYPE),release)
|
---|
403 | VirtualBox4_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
404 | else
|
---|
405 | VirtualBox4_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
|
---|
406 | ifeq ($(USERNAME),dmik)
|
---|
407 | VirtualBox4_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
408 | else
|
---|
409 | VirtualBox4_LDFLAGS.win += /SUBSYSTEM:console
|
---|
410 | endif
|
---|
411 | endif
|
---|
412 | # r=bird: what is -lz doing here? it belongs in LIBS
|
---|
413 | VirtualBox4_LDFLAGS.darwin = -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -lz
|
---|
414 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
415 | VirtualBox4_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
416 | endif
|
---|
417 | VirtualBox4_LIBS.win = \
|
---|
418 | $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
|
---|
419 | $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
|
---|
420 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
421 | ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
422 | VirtualBox4_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
423 | endif
|
---|
424 |
|
---|
425 | ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too.
|
---|
426 | ifeq ($(KBUILD_TARGET),win)
|
---|
427 | VirtualBox4_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB)
|
---|
428 | else
|
---|
429 | VirtualBox4_LIBS += $(PATH_DLL)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
430 | endif
|
---|
431 | endif
|
---|
432 |
|
---|
433 |
|
---|
434 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
435 | VirtualBox4_QT_MOCHDRS = \
|
---|
436 | include/QIWidgetValidator.h \
|
---|
437 | include/QIHotKeyEdit.h \
|
---|
438 | include/QIStatusBar.h \
|
---|
439 | include/QIStateIndicator.h \
|
---|
440 | include/QIMessageBox.h \
|
---|
441 | include/QILabel.h \
|
---|
442 | include/QILabel_p.h \
|
---|
443 | include/QILabelSeparator.h \
|
---|
444 | include/QIAbstractWizard.h \
|
---|
445 | include/QIListView.h \
|
---|
446 | include/QITreeWidget.h \
|
---|
447 | include/QIMainDialog.h \
|
---|
448 | include/QIHelpButton.h \
|
---|
449 | include/QIDialog.h \
|
---|
450 | include/VBoxFilePathSelectorWidget.h \
|
---|
451 | include/VBoxUtils.h \
|
---|
452 | include/VBoxGlobalSettings.h \
|
---|
453 | include/VBoxGlobal.h \
|
---|
454 | include/VBoxVMListView.h \
|
---|
455 | include/VBoxMediaComboBox.h \
|
---|
456 | include/VBoxSelectorWnd.h \
|
---|
457 | include/VBoxConsoleWnd.h \
|
---|
458 | include/VBoxConsoleView.h \
|
---|
459 | include/VBoxProblemReporter.h \
|
---|
460 | include/VBoxDownloaderWgt.h \
|
---|
461 | include/VBoxNetworkFramework.h \
|
---|
462 | include/VBoxAboutDlg.h \
|
---|
463 | include/VBoxCloseVMDlg.h \
|
---|
464 | include/VBoxNewVMWzd.h \
|
---|
465 | include/VBoxNewHDWzd.h \
|
---|
466 | include/VBoxVMFirstRunWzd.h \
|
---|
467 | include/VBoxRegistrationDlg.h \
|
---|
468 | include/VBoxUpdateDlg.h \
|
---|
469 | include/VBoxSnapshotDetailsDlg.h \
|
---|
470 | include/VBoxVMInformationDlg.h \
|
---|
471 | include/VBoxTakeSnapshotDlg.h \
|
---|
472 | include/VBoxSnapshotsWgt.h \
|
---|
473 | include/VBoxVMLogViewer.h \
|
---|
474 | include/VBoxDiskImageManagerDlg.h \
|
---|
475 | include/VBoxSettingsUtils.h \
|
---|
476 | include/VBoxVMSettingsGeneral.h \
|
---|
477 | include/VBoxVMSettingsHD.h \
|
---|
478 | include/VBoxVMSettingsCD.h \
|
---|
479 | include/VBoxVMSettingsFD.h \
|
---|
480 | include/VBoxVMSettingsAudio.h \
|
---|
481 | include/VBoxVMSettingsNetwork.h \
|
---|
482 | include/VBoxVMSettingsSerial.h \
|
---|
483 | include/VBoxVMSettingsParallel.h \
|
---|
484 | include/VBoxVMSettingsUSB.h \
|
---|
485 | include/VBoxVMSettingsUSBFilterDetails.h \
|
---|
486 | include/VBoxVMSettingsSF.h \
|
---|
487 | include/VBoxVMSettingsSFDetails.h \
|
---|
488 | include/VBoxVMSettingsVRDP.h \
|
---|
489 | include/VBoxGLSettingsGeneral.h \
|
---|
490 | include/VBoxGLSettingsInput.h \
|
---|
491 | include/VBoxGLSettingsUpdate.h \
|
---|
492 | include/VBoxGLSettingsLanguage.h \
|
---|
493 | include/VBoxSettingsDialog.h \
|
---|
494 | include/VBoxSettingsDialogSpecific.h \
|
---|
495 | include/VBoxSettingsPage.h \
|
---|
496 | include/VBoxSettingsSelector.h
|
---|
497 |
|
---|
498 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
499 | VirtualBox4_QT_MOCSRCS = \
|
---|
500 | src/VBoxSelectorWnd.cpp
|
---|
501 | ifdef VBOX_WITH_XPCOM
|
---|
502 | VirtualBox4_QT_MOCSRCS += \
|
---|
503 | src/COMDefs.cpp
|
---|
504 | endif
|
---|
505 |
|
---|
506 | VirtualBox4_SOURCES = \
|
---|
507 | src/main.cpp \
|
---|
508 | src/COMDefs.cpp \
|
---|
509 | src/QIWidgetValidator.cpp \
|
---|
510 | src/QIHotKeyEdit.cpp \
|
---|
511 | src/QIStateIndicator.cpp \
|
---|
512 | src/QIStatusBar.cpp \
|
---|
513 | src/QIMessageBox.cpp \
|
---|
514 | src/QILabel.cpp \
|
---|
515 | src/QILabelSeparator.cpp \
|
---|
516 | src/QIAbstractWizard.cpp \
|
---|
517 | src/QIDialog.cpp \
|
---|
518 | src/QIDialogButtonBox.cpp \
|
---|
519 | src/QIListView.cpp \
|
---|
520 | src/QITreeWidget.cpp \
|
---|
521 | src/QIMainDialog.cpp \
|
---|
522 | src/QILineEdit.cpp \
|
---|
523 | src/QIHelpButton.cpp \
|
---|
524 | src/VBoxFilePathSelectorWidget.cpp \
|
---|
525 | src/VBoxDefs.cpp \
|
---|
526 | src/VBoxGlobalSettings.cpp \
|
---|
527 | src/VBoxGlobal.cpp \
|
---|
528 | src/VBoxMediaComboBox.cpp \
|
---|
529 | src/VBoxProblemReporter.cpp \
|
---|
530 | src/VBoxSelectorWnd.cpp \
|
---|
531 | src/VBoxConsoleView.cpp \
|
---|
532 | src/VBoxConsoleWnd.cpp \
|
---|
533 | src/VBoxDownloaderWgt.cpp \
|
---|
534 | src/VBoxVMListView.cpp \
|
---|
535 | src/VBoxFrameBuffer.cpp \
|
---|
536 | src/HappyHttp.cpp \
|
---|
537 | src/VBoxNetworkFramework.cpp \
|
---|
538 | src/VBoxAboutDlg.cpp \
|
---|
539 | src/VBoxCloseVMDlg.cpp \
|
---|
540 | src/VBoxNewVMWzd.cpp \
|
---|
541 | src/VBoxNewHDWzd.cpp \
|
---|
542 | src/VBoxVMFirstRunWzd.cpp \
|
---|
543 | src/VBoxRegistrationDlg.cpp \
|
---|
544 | src/VBoxUpdateDlg.cpp \
|
---|
545 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
546 | src/VBoxVMInformationDlg.cpp \
|
---|
547 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
548 | src/VBoxSnapshotsWgt.cpp \
|
---|
549 | src/VBoxVMLogViewer.cpp \
|
---|
550 | src/VBoxDiskImageManagerDlg.cpp \
|
---|
551 | src/VBoxVMSettingsGeneral.cpp \
|
---|
552 | src/VBoxVMSettingsHD.cpp \
|
---|
553 | src/VBoxVMSettingsCD.cpp \
|
---|
554 | src/VBoxVMSettingsFD.cpp \
|
---|
555 | src/VBoxVMSettingsAudio.cpp \
|
---|
556 | src/VBoxVMSettingsNetwork.cpp \
|
---|
557 | src/VBoxVMSettingsSerial.cpp \
|
---|
558 | src/VBoxVMSettingsParallel.cpp \
|
---|
559 | src/VBoxVMSettingsUSB.cpp \
|
---|
560 | src/VBoxVMSettingsUSBFilterDetails.cpp \
|
---|
561 | src/VBoxVMSettingsSF.cpp \
|
---|
562 | src/VBoxVMSettingsSFDetails.cpp \
|
---|
563 | src/VBoxVMSettingsVRDP.cpp \
|
---|
564 | src/VBoxGLSettingsGeneral.cpp \
|
---|
565 | src/VBoxGLSettingsInput.cpp \
|
---|
566 | src/VBoxGLSettingsUpdate.cpp \
|
---|
567 | src/VBoxGLSettingsLanguage.cpp \
|
---|
568 | src/VBoxSettingsDialog.cpp \
|
---|
569 | src/VBoxSettingsDialogSpecific.cpp \
|
---|
570 | src/VBoxSettingsSelector.cpp
|
---|
571 |
|
---|
572 | ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
|
---|
573 | ifndef VBOX_OSE
|
---|
574 | VirtualBox4_QT_MOCHDRS += \
|
---|
575 | include/VBoxLicenseViewer.h
|
---|
576 | VirtualBox4_SOURCES += \
|
---|
577 | src/VBoxLicenseViewer.cpp
|
---|
578 | endif
|
---|
579 | VirtualBox4_SOURCES += \
|
---|
580 | src/linux/XKeyboard-new.cpp
|
---|
581 | endif
|
---|
582 |
|
---|
583 | VirtualBox4_SOURCES.win += \
|
---|
584 | src/VBoxFBDDRAW.cpp \
|
---|
585 | $(PATH_TARGET)/VirtualBox4.rc
|
---|
586 |
|
---|
587 | VirtualBox4_SOURCES.darwin = \
|
---|
588 | src/darwin/DarwinKeyboard.cpp \
|
---|
589 | src/darwin/DarwinCursor.cpp \
|
---|
590 | src/darwin/VBoxUtils-darwin.cpp \
|
---|
591 | src/VBoxFBQuartz2D.cpp
|
---|
592 | # src/darwin/VBoxAquaStyle.cpp
|
---|
593 |
|
---|
594 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
595 | VirtualBox4_SOURCES.darwin += \
|
---|
596 | src/darwin/VBoxIChatTheaterWrapper.m
|
---|
597 | endif
|
---|
598 |
|
---|
599 | # The Qt modules we're using.
|
---|
600 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
601 | VirtualBox4_QT_MODULES = Core Gui
|
---|
602 |
|
---|
603 | # Import QDesigner UI sources and translations from VBoxUI.pro.
|
---|
604 | # Note that the OSE about dialog is always required by lupdate/lrelease.
|
---|
605 | ifndef VBOX_WITH_REGISTRATION
|
---|
606 | FORMS := $(filter-out ui/VBoxRegistrationDlg.ui,$(FORMS))
|
---|
607 | endif
|
---|
608 | VirtualBox4_SOURCES := \
|
---|
609 | $(VirtualBox4_SOURCES) \
|
---|
610 | $(FORMS) \
|
---|
611 | ui/VBoxAboutDlg.ui
|
---|
612 |
|
---|
613 | # Resource files with some OSE differences.
|
---|
614 | VirtualBox4_SOURCES += VirtualBox.qrc
|
---|
615 | ifdef VBOX_OSE
|
---|
616 | VirtualBox4_SOURCES += VirtualBox_OSE.qrc
|
---|
617 | else
|
---|
618 | VirtualBox4_SOURCES += VirtualBox_NonOSE.qrc
|
---|
619 | VirtualBox4_SOURCES += src/VBoxAboutNonOSEDlg.cpp
|
---|
620 | VirtualBox4_QT_MOCHDRS += include/VBoxAboutNonOSEDlg.h
|
---|
621 | endif
|
---|
622 | VirtualBox_OSE.qrc_RCCFLAGS = -name OSE
|
---|
623 | VirtualBox_NonOSE.qrc_RCCFLAGS = -name NonOSE
|
---|
624 |
|
---|
625 |
|
---|
626 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
627 | VirtualBox4_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
628 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
629 | # Compress the translation units.
|
---|
630 | VirtualBox4_LRCFLAGS = -compress
|
---|
631 | # Where to install the translations (a separate install target, VirtualBox4-nls-inst is created).
|
---|
632 | VirtualBox4_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
633 |
|
---|
634 |
|
---|
635 |
|
---|
636 | # Some flag hacks (should go away).
|
---|
637 | ifneq ($(KBUILD_TARGET),win)
|
---|
638 | src/HappyHttp.cpp_CXXFLAGS += -fexceptions
|
---|
639 | src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions
|
---|
640 | src/VBoxNetworkFramework.cpp_CXXFLAGS += -fexceptions
|
---|
641 | endif
|
---|
642 | src/HappyHttp.cpp_CXXFLAGS.linux += -O2
|
---|
643 |
|
---|
644 | ## @todo how to detect what tool is used?
|
---|
645 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
646 | # more generic -Wno-extra
|
---|
647 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
648 | ifdef VBOX_WITH_XPCOM
|
---|
649 | src/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
650 | endif
|
---|
651 |
|
---|
652 |
|
---|
653 |
|
---|
654 | #
|
---|
655 | # On Windows we'll have to generate/edit the resource file.
|
---|
656 | # The IDI_ICON1 name is Qt specific.
|
---|
657 | #
|
---|
658 | $(PATH_TARGET)/VirtualBox4.rc: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_WINDOWS_ICON_FILE) | $$(call DIRDEP,$$(@D))
|
---|
659 | $(RM) -f $@
|
---|
660 | $(APPEND) $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
661 |
|
---|
662 | VirtualBox4_CLEAN.win += $(PATH_TARGET)/VirtualBox4.rc
|
---|
663 |
|
---|
664 |
|
---|
665 | #
|
---|
666 | # Other stuff.
|
---|
667 | #
|
---|
668 | VBOX_WRAPPERS_FILE4 = $(PATH_VirtualBox4)/include/COMWrappers.h
|
---|
669 | VirtualBox4_BLDDIRS += $(PATH_VirtualBox4)/include/
|
---|
670 | VirtualBox4_INTERMEDIATES = $(VBOX_WRAPPERS_FILE4)
|
---|
671 |
|
---|
672 | VBOX_WRAPPERS_INC_FILE4 = include/COMDefs.h
|
---|
673 | VBOX_WRAPPERS_TEMPLATE4 = include/COMWrappers.xsl
|
---|
674 | VBOX_WRAPPERS_XIDLFILE4 = ../../Main/idl/VirtualBox.xidl
|
---|
675 |
|
---|
676 |
|
---|
677 |
|
---|
678 | # generated files we need to clean manually
|
---|
679 | OTHER_CLEAN = \
|
---|
680 | $(VirtualBox4_GENSRCS) \
|
---|
681 | $(VirtualBox4_GENHDRS) \
|
---|
682 | $(VBOX_WRAPPERS_FILE4) \
|
---|
683 | $(PATH_BIN)/vboxkeyboard.tar.gz
|
---|
684 |
|
---|
685 |
|
---|
686 | #
|
---|
687 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
688 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
689 | #
|
---|
690 | INSTALLS.darwin += VirtualBox.app
|
---|
691 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
692 | VirtualBox.app_MODE = 644
|
---|
693 | VirtualBox.app_SOURCES = \
|
---|
694 | src/darwin/PkgInfo \
|
---|
695 | $(PATH_TARGET)/Info.plist \
|
---|
696 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
|
---|
697 |
|
---|
698 | $(PATH_TARGET)/Info.plist: src/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
|
---|
699 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
700 | $(QUIET)$(RM) -f $@
|
---|
701 | $(QUIET)$(SED) \
|
---|
702 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
703 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
704 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
705 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
706 | $< > $@
|
---|
707 |
|
---|
708 | INSTALLS.darwin += VirtualBoxVM.app
|
---|
709 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
710 | VirtualBoxVM.app_MODE = 644
|
---|
711 | VirtualBoxVM.app_SOURCES = \
|
---|
712 | src/darwin/VM-PkgInfo=>PkgInfo \
|
---|
713 | $(PATH_TARGET)/VM-Info.plist=>Info.plist \
|
---|
714 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
|
---|
715 | VirtualBoxVM.app_SYMLINKS = \
|
---|
716 | MacOS=>../../../MacOS/
|
---|
717 |
|
---|
718 | $(PATH_TARGET)/VM-Info.plist: src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
|
---|
719 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
720 | $(QUIET)$(RM) -f $@
|
---|
721 | $(QUIET)$(SED) \
|
---|
722 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
723 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
724 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
725 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
726 | --output $@ $<
|
---|
727 |
|
---|
728 | #
|
---|
729 | # Testcase for the darwin keyboard routines.
|
---|
730 | #
|
---|
731 | ifdef VBOX_WITH_TESTCASES
|
---|
732 | PROGRAMS.darwin += tstDarwinKeyboard4
|
---|
733 | tstDarwinKeyboard4_NAME = tstDarwinKeyboard
|
---|
734 | tstDarwinKeyboard4_TEMPLATE = VBOXR3TSTEXE
|
---|
735 | tstDarwinKeyboard4_INCS = include
|
---|
736 | tstDarwinKeyboard4_SOURCES = \
|
---|
737 | src/darwin/tstDarwinKeyboard.cpp \
|
---|
738 | src/darwin/DarwinKeyboard.cpp
|
---|
739 | tstDarwinKeyboard4_LDFLAGS = -framework IOKit -framework Carbon
|
---|
740 | tstDarwinKeyboard4_LIBS = \
|
---|
741 | $(LIB_RUNTIME)
|
---|
742 | endif
|
---|
743 |
|
---|
744 |
|
---|
745 | #
|
---|
746 | # Install the license file. Belongs in the root makefile really.
|
---|
747 | #
|
---|
748 | # Note: I'm doing this right here because the GUI will _not_ run
|
---|
749 | # without that file which might be annoying for developers!
|
---|
750 | #
|
---|
751 | ifndef VBOX_OSE
|
---|
752 | ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),)
|
---|
753 | $(VBOX_LICENSE_BIN): $(VBOX_LICENSE_SRC)
|
---|
754 | $(call MSG_GENERATE,,$@)
|
---|
755 | $(QUIET)$(CP) $< $@
|
---|
756 |
|
---|
757 | $(PATH_BIN)/VirtualBox: $(VBOX_LICENSE_BIN)
|
---|
758 | endif
|
---|
759 | endif
|
---|
760 |
|
---|
761 |
|
---|
762 |
|
---|
763 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
764 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
765 | SAVED_TEMPLATE :=
|
---|
766 | LANGUAGE :=
|
---|
767 | FORMS :=
|
---|
768 | TRANSLATIONS :=
|
---|
769 | IMAGES :=
|
---|
770 |
|
---|
771 |
|
---|
772 | # Commit the magic.
|
---|
773 | # (note: before custom rules that make usage of generated variables!).
|
---|
774 | include $(KBUILD_PATH)/footer.kmk
|
---|
775 |
|
---|
776 |
|
---|
777 | #
|
---|
778 | # Generate the COM wrappers.
|
---|
779 | #
|
---|
780 | $(VBOX_WRAPPERS_INC_FILE4): $(VBOX_WRAPPERS_FILE4)
|
---|
781 |
|
---|
782 | $(VBOX_WRAPPERS_FILE4): $(VBOX_WRAPPERS_XIDLFILE4) $(VBOX_WRAPPERS_TEMPLATE4) | $(call DIRDEP,$(PATH_VirtualBox4)/include/)
|
---|
783 | $(call MSG_TOOL,xsltproc,VirtualBox4,$<,$@)
|
---|
784 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_WRAPPERS_TEMPLATE4) $<
|
---|
785 |
|
---|
786 | # alias for generating the COM Wrappers file.
|
---|
787 | testwrappers:: $(VBOX_WRAPPERS_FILE4)
|
---|
788 |
|
---|
789 |
|
---|
790 | #
|
---|
791 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
792 | #
|
---|
793 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
794 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
795 | # languages and should never be actually translated or installed.
|
---|
796 | #
|
---|
797 | updatenls:: \
|
---|
798 | $(filter-out %.qrc,$(VirtualBox4_SOURCES)) \
|
---|
799 | $(wildcard include/*.h)
|
---|
800 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
801 | $(QUIET)$(TOOL_QT4_LUPDATE) \
|
---|
802 | $^ \
|
---|
803 | -ts \
|
---|
804 | $(filter-out nls/qt_%.ts,$(VirtualBox4_QT_TRANSLATIONS)) \
|
---|
805 | nls/VirtualBox_xx_YY.ts
|
---|
806 |
|
---|
807 |
|
---|
808 |
|
---|