VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk@ 93115

最後變更 在這個檔案從93115是 93115,由 vboxsync 提交於 3 年 前

scm --update-copyright-year

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 15.6 KB
 
1# $Id: Makefile.kmk 93115 2022-01-01 11:31:46Z vboxsync $
2## @file
3# Sub-Makefile for VBoxManage (the cli frontend).
4#
5
6#
7# Copyright (C) 2006-2022 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21include $(PATH_ROOT)/doc/manual/Config.kmk
22
23
24VBOX_COMMON_VBOXMANAGE_DEFS = \
25 $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \
26 $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST) \
27 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
28 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \
29 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \
30 $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \
31 $(if $(VBOX_WITH_HGCM), VBOX_WITH_HGCM) \
32 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \
33 $(if $(VBOX_WITH_NETFLT), VBOX_WITH_NETFLT) \
34 $(if $(VBOX_WITH_VMNET), VBOX_WITH_VMNET) \
35 $(if $(VBOX_WITH_CLOUD_NET), VBOX_WITH_CLOUD_NET) \
36 $(if $(VBOX_WITH_LIBCURL), VBOX_WITH_PROXY_INFO) \
37 $(if $(VBOX_WITH_AUDIO_OSS), VBOX_WITH_AUDIO_OSS) \
38 $(if $(VBOX_WITH_AUDIO_ALSA), VBOX_WITH_AUDIO_ALSA) \
39 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
40 $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \
41 $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \
42 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL) \
43 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
44 $(if $(VBOX_WITH_VIRTIO_NET_1_0),VBOX_WITH_VIRTIO_NET_1_0) \
45 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER) \
46 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH) \
47 $(if $(VBOX_WITH_RECORDING),VBOX_WITH_RECORDING) \
48 $(if $(VBOX_WITH_AUDIO_RECORDING),VBOX_WITH_AUDIO_RECORDING) \
49 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE) \
50 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBOX_WITH_SHARED_CLIPBOARD) \
51 $(if $(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS),VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS) \
52 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD) \
53 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL) \
54 $(if $(VBOX_WITH_VMSVGA),VBOX_WITH_VMSVGA) \
55 $(if $(VBOX_WITH_MAIN_NLS),VBOX_WITH_MAIN_NLS) \
56 $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM)
57
58
59ifdef VBOX_WITH_DOCS
60 PROGRAMS += VBoxManageHelp
61endif
62VBoxManageHelp_TEMPLATE = VBoxAdvBldProg
63VBoxManageHelp_DEFS += \
64 VBOX_ONLY_DOCS \
65 $(VBOX_COMMON_VBOXMANAGE_DEFS)
66VBoxManageHelp_SOURCES = \
67 VBoxManage.cpp \
68 VBoxManageHelp.cpp \
69 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
70 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp)
71
72
73ifndef VBOX_ONLY_DOCS
74 PROGRAMS += VBoxManage
75 VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE
76 VBoxManage_DEFS += $(VBOX_COMMON_VBOXMANAGE_DEFS)
77 VBoxManage_DEFS.win = _WIN32_WINNT=0x0500
78 VBoxManage_INCS = \
79 $(VBoxManage_0_OUTDIR) \
80 ../Common
81 VBoxManage_INTERMEDIATES = \
82 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h
83 VBoxManage_SOURCES = \
84 VBoxManage.cpp \
85 VBoxManageUtils.cpp \
86 VBoxInternalManage.cpp \
87 VBoxManageAppliance.cpp \
88 VBoxManageBandwidthControl.cpp \
89 VBoxManageControlVM.cpp \
90 VBoxManageDebugVM.cpp \
91 VBoxManageDHCPServer.cpp \
92 VBoxManageDisk.cpp \
93 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrl.cpp) \
94 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxManageGuestCtrlListener.cpp) \
95 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \
96 VBoxManageHelp.cpp \
97 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp \
98 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
99 VBoxManageHostonly.cpp \
100 VBoxManageInfo.cpp \
101 VBoxManageList.cpp \
102 VBoxManageMetrics.cpp \
103 VBoxManageMisc.cpp \
104 VBoxManageModifyVM.cpp \
105 VBoxManageModifyNvram.cpp \
106 VBoxManageSnapshot.cpp \
107 VBoxManageStorageController.cpp \
108 VBoxManageUpdateCheck.cpp \
109 VBoxManageUSB.cpp \
110 $(if $(VBOX_WITH_NAT_SERVICE),VBoxManageNATNetwork.cpp,) \
111 $(if $(VBOX_WITH_NAT_SERVICE),../../NetworkServices/NetLib/VBoxNetPortForwardString.cpp,) \
112 VBoxManageCloud.cpp \
113 VBoxManageCloudMachine.cpp \
114 ../Common/PasswordInput.cpp
115 VBoxManage_SOURCES.win = \
116 VBoxManage.rc
117 VBoxManage_LIBS += $(LIB_DDU)
118
119ifdef VBOX_WITH_VBOXMANAGE_NLS
120 VBOX_PATH_VBOXMANAGE_SRC := $(PATH_SUB_CURRENT)
121 include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
122
123 VBoxManage_DEFS += VBOX_WITH_VBOXMANAGE_NLS
124 VBoxManage_INCS += \
125 $(PATH_ROOT)/src/VBox/Main/include
126 VBoxManage_SOURCES += \
127 $(PATH_ROOT)/src/VBox/Main/src-all/VirtualBoxTranslator.cpp \
128 $(PATH_ROOT)/src/VBox/Main/src-all/QMTranslatorImpl.cpp \
129 $(PATH_ROOT)/src/VBox/Main/src-all/GlobalStatusConversion.cpp \
130
131# $(addsuffix /VBoxManageBuiltInHelp.cpp,$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES)))
132#VBoxManage_INTERMEDIATES += \
133# $(addsuffix /VBoxManageBuiltInHelp.h,$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES)))
134
135# define qt5 tools for translation
136 USES += qt5
137
138 PROGRAMS += VBoxManageNls
139 VBoxManageNls_TEMPLATE = VBoxNLS
140 VBoxManageNls_QT_TRANSLATIONS = $(addsuffix .ts,$(addprefix $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_,$(VBOX_APPROVED_VBOXMANAGE_LANGUAGES)))
141 VBoxManageNls_VBOX_ALL_NLS_SOURCES = $(wildcard \
142 $(VBOX_PATH_VBOXMANAGE_SRC)/*.h\
143 $(VBOX_PATH_VBOXMANAGE_SRC)/*.cpp )
144
145 updatenls:: makeallnls $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_en.ts
146
147 makeallnls:: $(VBoxManageNls_VBOX_ALL_NLS_SOURCES)
148 $(call MSG_L1,lupdate all languages (nls/*.ts))
149 $(QUIET)$(TOOL_QT5_LUPDATE) \
150 $^ \
151 -ts \
152 $(filter-out nls/VBoxManageNls_en.ts, $(VBoxManageNls_QT_TRANSLATIONS)) \
153 $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_xx_YY.ts
154
155# fake-main-nls:
156# $(foreach file, $(VBoxManageNls_QT_TRANSLATIONS) \
157# ,$(NLTAB)$(SED) -i \
158# -e '/<source>.*<\/source>/h' \
159# -e '/<source>.*<\/source>/p' \
160# -e '/<translation type="unfinished"><\/translation>/{' \
161# -e 'x' \
162# -e 's/<source>\(.*\)<\/source>/<translation type="unfinished">$(notdir $(file)): \1<\/translation>/' \
163# -e '}' \
164# $(file) )
165
166
167# Create the English translation file. This is something special cause it will
168# contain the plural forms only.
169 $(VBOX_PATH_VBOXMANAGE_SRC)/nls/VBoxManageNls_en.ts: $(VBoxManageNls_VBOX_ALL_NLS_SOURCES)
170 $(call MSG_L1,lupdate $@)
171 $(QUIET)$(TOOL_QT5_LUPDATE) \
172 $^ \
173 -ts \
174 "$@"
175 $(QUIET)$(SED) -n -i \
176 -e '/<context>/,/<\/context>/!p' \
177 -e '/<context>/h' \
178 -e '/<name>/H' \
179 -e '/<message numerus="yes">/,/<\/message>/H' \
180 -e '/<\/context>/{H;x;/<message/p}' \
181 "$@"
182
183endif # VBOX_WITH_VBOXMANAGE_NLS
184
185
186 # VBoxNetPortForwardString.h
187 VBoxManageNATNetwork.cpp_INCS += ../../NetworkServices/NetLib/
188
189endif # VBOX_ONLY_DOCS
190
191ifneq ($(KBUILD_TARGET),win)
192 # Workaround for buggy gcc-4.3 compilers, see
193 #
194 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36474
195 #
196 # Some later revisions of version 4.3.1 are known to work so we assume
197 # that version 4.3.2 or later has this bug definitely fixed.
198 VBoxManage_CXXFLAGS.release += \
199 $(if $(VBOX_GCC_VERSION_CXX),$(if-expr $(VBOX_GCC_VERSION_CXX) < 40300 || $(VBOX_GCC_VERSION_CXX) > 40301,,--param max-fields-for-field-sensitive=0),)
200 VBoxManageHelp_CXXFLAGS.release = $(VBoxManage_CXXFLAGS.release)
201endif
202
203
204#
205# VBoxManage built-in help from XML refentry in doc/manual/en_US/.
206#
207$(call KB_FN_DO_PASS0_ON_TARGET,VBoxManage)
208
209## @todo r=klaus the VBoxManage manpage handling currently cannot deal with
210# man_VBoxManage.xml and that's not just removing the - in the patterns. The
211# common options (and the included overview of the command) need to be handled
212# specially to be useful in VBoxManage.
213
214VBoxManage_CLEAN += \
215 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
216 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp.ts \
217 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp \
218 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp.ts \
219 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h \
220 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h.ts \
221 $(addprefix $(VBoxManage_0_OUTDIR)/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)))
222
223# Preprocess the xml files, applying remarks.
224$(foreach file,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
225, $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(VBoxManage_0_OUTDIR),$(file), \
226 $(VBOX_PATH_MANUAL_SRC)/en_US/$(file),replace-xrefs))
227
228
229##
230# Emits rules for generating cpp files from man pages.
231#
232# $(evalcall2 def_vbox_man_generate_cpp_help)
233# @param 1 Folder with preprocessed man_VBoxManage_* files
234# @param 2 language code.
235define def_vbox_man_generate_cpp_help
236ifneq ($(2),en_US)
237VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2) = $(VBOX_PATH_MANUAL_SRC)/$(2)/docbook-refentry-to-C-help.xsl
238else
239VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2) = $(VBOX_DOCBOOK_REFENTRY_TO_C_HELP)
240endif
241$$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(2).cpp.ts \
242+| $$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(2).cpp: \
243 $$(VBOX_DOCBOOK_REFENTRY_TO_C_HELP_$(2)) \
244 $$(VBOX_DOCBOOK_REFENTRY_TO_C_HELP) \
245 $$(addprefix $(1)/,$$(filter man_VBoxManage-%,$$(VBOX_MANUAL_XML_REFENTRY_FILES))) \
246 $$(VBOX_XML_CATALOG) $$(VBOX_XML_CATALOG_DOCBOOK) $$(MAKEFILE) | $$$$(dir $$$$@)
247 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(filter %.xml,$$^),$$(patsubst %.ts,%,$$@))
248 $$(QUIET)$$(APPEND) -tn "$$@" \
249 '/* Autogenerated by $$<, do not edit! */' \
250 '' \
251 '#include "VBoxManageBuiltInHelp.h"' \
252 '' \
253 'RT_C_DECLS_BEGIN' \
254 '/* make next variables visible outside the module */' \
255 'extern PCRTMSGREFENTRY g_apHelpEntries_$(2)[];' \
256 'extern const uint32_t g_cHelpEntries_$(2);' \
257 'RT_C_DECLS_END' \
258 '' \
259 $$(foreach refentry,$$(filter %.xml,$$^) \
260 ,$$(NLTAB)$$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$$@") \
261 --path '$(VBOX_PATH_MANUAL_SRC)/$(2) $(VBOX_PATH_MANUAL_SRC)/en_US' $$< $$(refentry))
262 $$(QUIET)$$(APPEND) -n "$$@" \
263 '' \
264 'PCRTMSGREFENTRY g_apHelpEntries_$(2)[] =' \
265 '{'
266 $$(foreach refentry,$$(filter %.xml,$$^) \
267 ,$$(NLTAB)$$(QUIET)$$(APPEND) -n "$$@" \
268 ' &g_$$(subst -,_,$$(tolower $$(patsubst man_%,%,$$(notdir $$(basename $$(refentry)))))),')
269 $$(QUIET)$$(APPEND) -n "$$@" \
270 '};' \
271 '' \
272 'const uint32_t g_cHelpEntries_$(2) = RT_ELEMENTS(g_apHelpEntries_$(2));' \
273 ''
274 $$(QUIET)$$(CP) --changed -- "$$@" "$$(patsubst %.ts,%,$$@)"
275endef
276# The above APPEND stuff trigger some kind of problem on some boxes when not split up...
277# update: Fixed in SVN (strcpy -> memmove in new_job(), job.c - r2591). Just need to rebuild all platforms.
278
279# Generate the .cpp file.
280$(evalcall2 def_vbox_man_generate_cpp_help, $(VBoxManage_0_OUTDIR),en_US)
281
282
283# generate built-in for the english only
284$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp.ts \
285+| $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.cpp: \
286 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_en_US.cpp \
287 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES), $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(lang).cpp ) \
288 $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h
289 $(QUIET)$(APPEND) -tn "$@" \
290 '/* Autogenerated, do not edit! */' \
291 '' \
292 '#include "VBoxManageBuiltInHelp.h"' \
293 '' \
294 'RT_C_DECLS_BEGIN' \
295 '' \
296 'extern PCRTMSGREFENTRY g_apHelpEntries_en_US[];' \
297 'extern const uint32_t g_cHelpEntries_en_US;'
298ifdef VBOX_WITH_VBOXMANAGE_NLS
299 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
300 ,$(NLTAB)$(QUIET)$(APPEND) -n "$@" \
301 '' \
302 'extern PCRTMSGREFENTRY g_apHelpEntries_$(lang)[];' \
303 'extern const uint32_t g_cHelpEntries_$(lang);')
304endif
305 $(QUIET)$(APPEND) -n "$@" \
306 '' \
307 'RT_C_DECLS_END' \
308 '' \
309 'HELP_LANG_ENTRY_T const g_aHelpLangEntries[] = ' \
310 '{' \
311 ' { "en_US", 5, &g_apHelpEntries_en_US[0], &g_cHelpEntries_en_US },'
312ifdef VBOX_WITH_VBOXMANAGE_NLS
313 $(foreach lang,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
314 ,$(NLTAB)$(QUIET)$(APPEND) "$@" ' { "$(lang)", $(length $(lang)), &g_apHelpEntries_$(lang)[0], &g_cHelpEntries_$(lang) },' )
315endif
316 $(QUIET)$(APPEND) -n "$@" \
317 '};' \
318 '' \
319 'uint32_t const g_cHelpLangEntries = RT_ELEMENTS(g_aHelpLangEntries);' \
320 '' \
321 'PCHELP_LANG_ENTRY_T volatile g_pHelpLangEntry = &g_aHelpLangEntries[0];'\
322 ''
323 $(QUIET)$(CP) --changed -- "$@" "$(patsubst %.ts,%,$@)"
324
325
326$(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h.ts \
327+| $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp.h: \
328 $(VBOX_DOCBOOK_REFENTRY_TO_H_HELP) \
329 $(addprefix $(VBoxManage_0_OUTDIR)/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES))) \
330 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE) | $$(dir $$@)
331 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(filter %.xml,$^),$(patsubst %.ts,%,$@))
332 $(QUIET)$(APPEND) -tn "$@" \
333 '/* Autogenerated by $<, do not edit! */' \
334 '' \
335 '#ifndef ___VBoxManageBuiltInHelp_h___' \
336 '#define ___VBoxManageBuiltInHelp_h___' \
337 '' \
338 '#include <iprt/message.h>' \
339 '' \
340 'RT_C_DECLS_BEGIN' \
341 '' \
342 'typedef enum HELP_CMD_VBOXMANAGE' \
343 '{' \
344 ' HELP_CMD_VBOXMANAGE_INVALID = 0,'
345 $(foreach refentry,$(filter %.xml,$^) \
346 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
347 --stringparam 'g_sMode' 'cmd' $< $(refentry))
348 $(QUIET)$(APPEND) -n "$@" \
349 ' HELP_CMD_VBOXMANAGE_END' \
350 '} HELP_CMD_VBOXMANAGE;'
351 $(foreach refentry,$(filter %.xml,$^) \
352 ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
353 --stringparam 'g_sMode' 'subcmd' $< $(refentry))
354 $(QUIET)$(APPEND) -n "$@" \
355 '' \
356 'typedef struct HELP_LANG_ENTRY_T' \
357 '{' \
358 ' const char *pszLang;' \
359 ' size_t cchLang;' \
360 ' PCRTMSGREFENTRY *papHelpEntries;' \
361 ' uint32_t const *pcHelpEntries;' \
362 '} HELP_LANG_ENTRY_T;' \
363 'typedef HELP_LANG_ENTRY_T const *PCHELP_LANG_ENTRY_T;' \
364 '' \
365 'extern HELP_LANG_ENTRY_T const g_aHelpLangEntries[];' \
366 'extern const uint32_t g_cHelpLangEntries;' \
367 '' \
368 'extern PCHELP_LANG_ENTRY_T volatile g_pHelpLangEntry;' \
369 '' \
370 'RT_C_DECLS_END' \
371 '' \
372 '#endif' \
373 ''
374 $(QUIET)$(CP) --changed -- "$@" "$(patsubst %.ts,%,$@)"
375
376ifdef VBOX_WITH_VBOXMANAGE_NLS
377 VBoxManage_BLDDIRS += \
378 $(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))
379
380 VBoxManage_SOURCES += \
381 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
382 , $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_$(lang).cpp)
383
384 VBoxManage_CLEAN += \
385 $(addsuffix .cpp,$(addprefix $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))) \
386 $(addsuffix .cpp.ts,$(addprefix $(VBoxManage_0_OUTDIR)/VBoxManageBuiltInHelp_,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))) \
387 $(foreach file, $(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
388 , $(addsuffix /$(file),$(addprefix $(VBoxManage_0_OUTDIR)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))))
389
390 # Preprocess the xml files, applying remarks.
391 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
392 , $(foreach file,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES)) \
393 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(VBoxManage_0_OUTDIR)/$(lang),$(file) \
394 ,$(VBOX_PATH_MANUAL_SRC)/$(lang)/$(file),replace-xrefs,$(lang))))
395
396 # Generate the .cpp file.
397 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
398 , $(evalcall2 def_vbox_man_generate_cpp_help,$(VBoxManage_0_OUTDIR)/$(lang),$(lang)))
399
400 # Ensure $(lang) subfolder in the $(VBOX_PATH_MANUAL_OUTBASE) is created (for section names file)
401 BLDDIRS += $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/,$(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES))
402
403 # Generate sections names file for $(lang)
404 $(foreach lang, $(VBOX_APPROVED_VBOXMANAGE_DOCBOOK_LANGUAGES) \
405 , $(evalcall2 def_vbox_xref_to_text,$(lang)))
406
407endif
408
409include $(FILE_KBUILD_SUB_FOOTER)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette