bump product version to 7.2.5.1
[LibreOffice.git] / solenv / gbuild / TargetLocations.mk
blob0df1cd2bb9d52c2e1949b42602208829941f7f96
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # outdir target pattern
22 # these are hard-coded to URE for now since there are so few of them...
23 gb_CliLibrary_get_target = $(INSTROOT)/$(LIBO_URE_LIB_FOLDER)/$(1)$(gb_CliLibrary_EXT)
24 gb_CliNativeLibrary_get_target = $(INSTROOT)/$(LIBO_URE_LIB_FOLDER)/$(1)$(gb_CliNativeLibrary_EXT)
25 gb_CliUnoApi_get_target = $(INSTROOT)/$(if $(filter cli_uretypes,$(1)),$(LIBO_URE_LIB_FOLDER),$(LIBO_LIB_FOLDER))/$(1)$(gb_CliUnoApi_EXT)
26 gb_PackagePart_get_destinations = \
27 $(INSTDIR) \
28 $(WORKDIR)/unittest \
30 # kind of lame but with just 3 of these why bother with registration etc.
31 gb_UnoApi_get_target = $(INSTROOT)/$(if $(filter udkapi,$(1)),$(LIBO_URE_MISC_FOLDER)/types,$(LIBO_ETC_FOLDER)/types/$(1)).rdb
32 gb_UnoApi_get_target_for_build = $(INSTROOT_FOR_BUILD)/$(if $(filter udkapi,$(1)),$(LIBO_URE_MISC_FOLDER)/types,$(LIBO_ETC_FOLDER)/types/$(1)).rdb
34 # workdir target patterns
36 gb_AutoInstall_get_target = $(WORKDIR)/AutoInstall/$(1)
37 gb_AllLangHelp_get_target = $(WORKDIR)/AllLangHelp/$(1)
38 gb_AllLangHelp_get_helpfiles_target = $(WORKDIR)/AllLangHelp/$(1).helpfiles
39 gb_AllLangPackage_get_target = $(WORKDIR)/AllLangPackage/$(1)
40 gb_AllLangMoTarget_get_target = $(WORKDIR)/AllLangMo/$(1)
41 gb_AsmObject_get_target = $(WORKDIR)/AsmObject/$(1).o
42 gb_AsmObject_get_dwo_target = $(WORKDIR)/AsmObject/$(1).dwo
43 gb_CObject_get_target = $(WORKDIR)/CObject/$(1).o
44 gb_CObject_get_dwo_target = $(WORKDIR)/CObject/$(1).dwo
45 gb_GenCObject_get_target = $(WORKDIR)/GenCObject/$(1).o
46 gb_GenCObject_get_dwo_target = $(WORKDIR)/GenCObject/$(1).dwo
47 gb_CliAssembly_get_target = $(WORKDIR)/CliAssembly/$(1).done
48 gb_CliAssemblyTarget_get_target = $(WORKDIR)/CliAssemblyTarget/$(1).done
49 gb_CliAssemblyTarget_get_assembly_target = $(WORKDIR)/CliAssemblyTarget/$(1)$(gb_CliAssemblyTarget_POLICYEXT)
50 gb_CliConfigTarget_get_target = $(WORKDIR)/CliConfigTarget/$(1).config
51 gb_CliNativeLibrary_get_preparation_target = $(WORKDIR)/CliNativeLibraryTarget/$(1).prepare
52 gb_CompilerTest_get_target = $(WORKDIR)/CompilerTest/$(1)
53 gb_ComponentTarget_get_target = $(WORKDIR)/ComponentTarget/$(1).component
54 gb_ComponentTarget_get_target_for_build = $(WORKDIR_FOR_BUILD)/ComponentTarget/$(1).component
55 gb_Configuration_get_preparation_target = $(WORKDIR)/Configuration/$(1).prepared
56 gb_CppunitTest_get_target = $(WORKDIR)/CppunitTest/$(1).test
57 gb_CustomPackage_get_target = $(WORKDIR)/CustomPackage/$(1).filelist
58 gb_CustomTarget_get_repo_target = $(WORKDIR)/CustomTarget/$(2)_$(1).done
59 gb_CustomTarget_get_target = $(WORKDIR)/CustomTarget/$(1).done
60 gb_CustomTarget_get_workdir = $(WORKDIR)/CustomTarget/$(1)
61 gb_DescriptionTranslateTarget_get_target = $(WORKDIR)/DescriptionTranslateTarget/$(1).xml
62 gb_Dictionary_get_target = $(WORKDIR)/Dictionary/$(1).done
63 gb_CxxObject_get_target = $(WORKDIR)/CxxObject/$(1).o
64 gb_CxxObject_get_dwo_target = $(WORKDIR)/CxxObject/$(1).dwo
65 gb_GenCxxObject_get_target = $(WORKDIR)/GenCxxObject/$(1).o
66 gb_GenCxxObject_get_dwo_target = $(WORKDIR)/GenCxxObject/$(1).dwo
67 gb_Executable_get_headers_target = $(WORKDIR)/Headers/Executable/$(1)
68 gb_Executable_get_runtime_target = $(WORKDIR_FOR_BUILD)/Executable/$(1).run
69 gb_Extension_get_target = $(WORKDIR)/Extension/$(1).oxt
70 gb_Extension_get_rootdir = $(WORKDIR)/Extension/$(1)/root
71 gb_Extension_get_workdir = $(WORKDIR)/Extension/$(1)
72 gb_ExtensionPackage_get_target = $(WORKDIR)/ExtensionPackage/$(1).filelist
73 gb_ExtensionPackage_get_preparation_target = $(WORKDIR)/ExtensionPackage/$(1).prepare
74 gb_ExtensionPackageSet_get_target = $(WORKDIR)/ExtensionPackage/$(1).set
75 gb_ExternalPackage_get_target = $(WORKDIR)/ExternalPackage/$(1)
76 gb_ExternalProject_get_statedir = $(WORKDIR)/ExternalProject/$(1)
77 gb_ExternalProject_get_preparation_target = $(WORKDIR)/ExternalProject/$(1).prepare
78 gb_ExternalProject_get_state_target = $(WORKDIR)/ExternalProject/$(1)/$(2)
79 gb_ExternalProject_get_target = $(WORKDIR)/ExternalProject/$(1).done
80 gb_ExternalProject_get_target_for_build = $(WORKDIR_FOR_BUILD)/ExternalProject/$(1).done
81 gb_Gallery_get_target = $(WORKDIR)/Gallery/$(1).done
82 gb_Gallery_get_workdir = $(WORKDIR)/Gallery/$(1)
83 gb_GeneratedPackage_get_target = $(WORKDIR)/GeneratedPackage/$(1).filelist
84 gb_GeneratedPackage_get_target_for_build = $(WORKDIR_FOR_BUILD)/GeneratedPackage/$(1).filelist
85 gb_HelpIndexTarget_get_target = $(WORKDIR)/HelpIndexTarget/$(1).done
86 gb_HelpJarTarget_get_target = $(WORKDIR)/HelpJarTarget/$(1).done
87 gb_HelpLinkTarget_get_preparation_target = $(WORKDIR)/HelpLinkTarget/$(1).prepare
88 gb_HelpLinkTarget_get_target = $(WORKDIR)/HelpLinkTarget/$(1).done
89 gb_HelpTarget_get_filelist = $(WORKDIR)/HelpTarget/$(1).filelist
90 gb_HelpTarget_get_linked_target = $(WORKDIR)/HelpTarget/$(1).translate
91 gb_HelpTarget_get_target = $(WORKDIR)/HelpTarget/$(1).zip
92 gb_HelpTarget_get_translation_target = $(call gb_HelpTarget_get_filelist,$(1))
93 gb_HelpTarget_get_workdir = $(WORKDIR)/HelpTarget/$(1)
94 gb_HelpTranslatePartTarget_get_target = $(WORKDIR)/HelpTranslatePartTarget/$(1)/done
95 gb_HelpTranslatePartTarget_get_translated_target = $(WORKDIR)/HelpTranslatePartTarget/$(1)/$(2).xhp
96 gb_HelpTranslatePartTarget_get_workdir = $(WORKDIR)/HelpTranslatePartTarget/$(1)
97 gb_HelpTranslateTarget_get_target = $(WORKDIR)/HelpTranslateTarget/$(1).done
98 gb_HelpTreeTarget_get_target = $(WORKDIR)/HelpTreeTarget/$(1).tree
99 gb_InstallModule_get_filelist = $(call gb_InstallModuleTarget_get_filelist,$(1))
100 gb_InstallModule_get_target = $(WORKDIR)/InstallModule/$(1).done
101 gb_InstallModuleTarget_get_external_target = $(WORKDIR)/InstallModuleTarget/$(1).external
102 gb_InstallModuleTarget_get_filelist = $(WORKDIR)/InstallModuleTarget/$(1).filelist
103 gb_InstallModuleTarget_get_target = $(WORKDIR)/InstallModuleTarget/$(1).filelist
104 gb_InstallScript_get_target = $(WORKDIR)/InstallScriptTarget/$(1)$(gb_InstallScript_EXT)
105 gb_InternalUnoApi_get_target = $(WORKDIR)/InternalUnoApi/$(1).done
106 gb_Jar_get_target = $(call gb_Jar_get_install_target,$(1))
107 gb_Jar_get_classsetname = Jar/$(1)
108 gb_JavaClassSet_get_classdir = $(WORKDIR)/JavaClassSet/$(1)
109 gb_JavaClassSet_get_repo_target = $(WORKDIR)/JavaClassSet/$(2)/$(1).done
110 gb_JavaClassSet_get_target = $(WORKDIR)/JavaClassSet/$(1)/done
111 gb_JunitTest_get_classsetname = JunitTest/$(1)
112 gb_JunitTest_get_target = $(WORKDIR)/JunitTest/$(1)/done
113 gb_JunitTest_get_userdir = $(WORKDIR)/JunitTest/$(1)/user
114 gb_PythonTest_get_target = $(WORKDIR)/PythonTest/$(1)/done
115 gb_LinkTarget__get_workdir_linktargetname = $(firstword $(subst <>, ,$(1)))
116 gb_LinkTarget_get_headers_target = \
117 $(WORKDIR)/Headers/$(call gb_LinkTarget__get_workdir_linktargetname,$(1))
118 gb_LinkTarget_get_objects_list = \
119 $(WORKDIR)/LinkTarget/$(call gb_LinkTarget__get_workdir_linktargetname,$(1)).objectlist
120 gb_LinkTarget_get_dep_target = \
121 $(WORKDIR)/Dep/LinkTarget/$(call gb_LinkTarget__get_workdir_linktargetname,$(1)).d
122 gb_LinkTarget_get_clean_target = \
123 $(WORKDIR)/Clean/LinkTarget/$(call gb_LinkTarget__get_workdir_linktargetname,$(1))
124 gb_LinkTarget_get_target = $(lastword $(subst <>, ,$(1)))
125 gb_LinkTarget_get_pch_timestamp = $(WORKDIR)/PrecompiledHeader/$(call gb_PrecompiledHeader__get_debugdir,$(1))/Timestamps/$(1)
126 gb_LinkTarget_get_pch_reuse_timestamp = $(WORKDIR)/PrecompiledHeader/$(call gb_PrecompiledHeader__get_debugdir,$(1))/Timestamps/$(1)_reuse
127 gb_Module_get_nonl10n_target = $(WORKDIR)/Module/nonl10n/$(1)
128 gb_Module_get_l10n_target = $(WORKDIR)/Module/l10n/$(1)
129 gb_Module_get_check_target = $(WORKDIR)/Module/check/$(1)
130 gb_Module_get_slowcheck_target = $(WORKDIR)/Module/slowcheck/$(1)
131 gb_Module_get_screenshot_target = $(WORKDIR)/Module/screenshot/$(1)
132 gb_Module_get_subsequentcheck_target = $(WORKDIR)/Module/subsequentcheck/$(1)
133 gb_Module_get_stagingcheck_target = $(WORKDIR)/Module/stagingcheck/$(1)
134 gb_Module_get_perfcheck_target = $(WORKDIR)/Module/perfcheck/$(1)
135 gb_Module_get_uicheck_target = $(WORKDIR)/Module/uicheck/$(1)
136 gb_Module_get_target = $(WORKDIR)/Module/$(1)
137 gb_ObjCxxObject_get_target = $(WORKDIR)/ObjCxxObject/$(1).o
138 gb_ObjCxxObject_get_dwo_target = $(WORKDIR)/ObjCxxObject/$(1).dwo
139 gb_ObjCObject_get_target = $(WORKDIR)/ObjCObject/$(1).o
140 gb_ObjCObject_get_dwo_target = $(WORKDIR)/ObjCObject/$(1).dwo
141 gb_CxxClrObject_get_target = $(WORKDIR)/CxxClrObject/$(1).o
142 gb_CxxClrObject_get_dwo_target = $(WORKDIR)/CxxClrObject/$(1).dwo
143 gb_GenCxxClrObject_get_target = $(WORKDIR)/GenCxxClrObject/$(1).o
144 gb_GenCxxClrObject_get_dwo_target = $(WORKDIR)/GenCxxClrObject/$(1).dwo
145 gb_Pagein_get_target = $(WORKDIR)/Pagein/pagein-$(1)
146 gb_Package_get_preparation_target = $(WORKDIR)/Package/prepared/$(1)
147 gb_Package_get_target = $(WORKDIR)/Package/$(1).filelist
148 gb_Package_get_target_for_build = $(WORKDIR_FOR_BUILD)/Package/$(1).filelist
149 gb_PackageSet_get_target = $(WORKDIR)/PackageSet/$(1).filelist
150 gb_PackageInfo_get_target = $(WORKDIR)/PackageInfo
151 gb_Postprocess_get_target = $(WORKDIR)/Postprocess/$(1)
152 gb_PrecompiledHeader_get_dep_target = $(WORKDIR)/Dep/PrecompiledHeader/$(call gb_PrecompiledHeader__get_debugdir,$(2))/$(1).hxx$(gb_PrecompiledHeader_EXT).d
153 gb_PrecompiledHeader_get_dep_target_tmp = $(call gb_PrecompiledHeader_get_dep_target,$(1),$(2)).tmp
154 gb_PrecompiledHeader_get_for_reuse_target = $(WORKDIR)/PrecompiledHeader/$(call gb_PrecompiledHeader__get_debugdir,$(2))/$(1).hxx$(gb_PrecompiledHeader_EXT).reuse
155 gb_PrecompiledHeader_get_target = $(WORKDIR)/PrecompiledHeader/$(call gb_PrecompiledHeader__get_debugdir,$(2))/$(1).hxx$(gb_PrecompiledHeader_EXT)
156 gb_PropertiesTranslateTarget_get_target = $(WORKDIR)/PropertiesTranslateTarget/$(1).properties
157 gb_Pyuno_get_final_target = $(WORKDIR)/Pyuno/$(1).final
158 gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).done
159 gb_Rdb_get_target = $(WORKDIR)/Rdb/$(1).rdb
160 gb_Rdb_get_target_for_build = $(WORKDIR_FOR_BUILD)/Rdb/$(1).rdb
161 gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res
162 gb_MoTarget_get_target = $(WORKDIR)/MoTarget/$(1).mo
163 gb_ScpMergeTarget_get_target = $(WORKDIR)/ScpMergeTarget/$(1).ulf
164 gb_ScpPreprocessTarget_get_target = $(WORKDIR)/ScpPreprocessTarget/$(1).pre
165 gb_ScpTarget_get_external_target = $(WORKDIR)/ScpTarget/$(1).external
166 gb_ScpTarget_get_target = $(WORKDIR)/ScpTarget/$(1).par
167 gb_ScpTemplateTarget_get_dir = $(abspath $(WORKDIR)/ScpTemplateTarget/$(dir $(1)))
168 gb_ScpTemplateTarget_get_target = $(abspath $(WORKDIR)/ScpTemplateTarget/$(dir $(1))$(subst pack,modules,$(subst module_,all,$(notdir $(1)))).inc)
169 gb_SdiTarget_get_target = $(WORKDIR)/SdiTarget/$(1)
170 gb_ThesaurusIndexTarget_get_target = $(WORKDIR)/ThesaurusIndexTarget/$(basename $(1)).idx
171 gb_UIConfig_get_imagelist_target = $(WORKDIR)/UIConfig/$(1).ilst
172 gb_UIConfig_get_a11yerrors_target = $(WORKDIR)/UIConfig/$(1).a11yerrors
173 gb_UIConfig_get_target = $(WORKDIR)/UIConfig/$(1).done
174 gb_UIImageListTarget_get_target = $(WORKDIR)/UIImageListTarget/$(1).ilst
175 gb_UIMenubarTarget_get_target = $(WORKDIR)/UIMenubarTarget/$(1).xml
176 gb_UITest_get_target = $(WORKDIR)/UITest/$(1)/done
177 gb_UnoApiTarget_get_target = $(WORKDIR)/UnoApiTarget/$(1).rdb
178 gb_UnoApiHeadersTarget_get_bootstrap_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),bootstrap)
179 gb_UnoApiHeadersTarget_get_comprehensive_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),comprehensive)
180 gb_UnoApiHeadersTarget_get_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),normal)
181 gb_UnoApiHeadersTarget_get_real_bootstrap_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/bootstrap
182 gb_UnoApiHeadersTarget_get_real_comprehensive_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/comprehensive
183 gb_UnoApiHeadersTarget_get_real_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/normal
184 gb_UnoApiHeadersTarget_get_real_bootstrap_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/bootstrap.done
185 gb_UnoApiHeadersTarget_get_real_comprehensive_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/comprehensive.done
186 gb_UnoApiHeadersTarget_get_real_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/normal.done
187 gb_UnoApiHeadersTarget_get_bootstrap_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),bootstrap).done
188 gb_UnoApiHeadersTarget_get_comprehensive_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),comprehensive).done
189 gb_UnoApiHeadersTarget_get_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),normal).done
190 gb_UnpackedTarball_get_dir = $(WORKDIR)/UnpackedTarball/$(1)
191 gb_UnpackedTarball_get_pristine_dir = $(WORKDIR)/UnpackedTarball/$(1).org
192 gb_UnpackedTarball_get_final_target = $(WORKDIR)/UnpackedTarball/$(1).update
193 # NOTE: the .done target is hardcoded in solenv/bin/concat-deps.c !
194 gb_UnpackedTarball_get_target = $(WORKDIR)/UnpackedTarball/$(1).done
195 gb_UnpackedTarball_get_preparation_target = $(WORKDIR)/UnpackedTarball/$(1).prepare
196 gb_UnpackedTarget_get_target = $(WORKDIR)/UnpackedTarget/$(1)
197 gb_WinResTarget_get_target = $(WORKDIR)/WinResTarget/$(1)$(gb_WinResTarget_POSTFIX)
198 # workdir targets: $(1) is prefix/path
199 gb_Configuration_get_target = $(WORKDIR)/Configuration/$(1).done
200 gb_YaccTarget_get_grammar_target = $(WORKDIR)/YaccTarget/$(1).cxx
201 gb_YaccTarget_get_header_target = $(WORKDIR)/YaccTarget/$(1).hxx
202 gb_YaccTarget_get_target = $(WORKDIR)/YaccTarget/$(1).done
204 gb_LexTarget_get_scanner_target = $(WORKDIR)/LexTarget/$(1).cxx
205 gb_LexTarget_get_target = $(WORKDIR)/LexTarget/$(1).done
207 gb_XcdTarget_get_target = $(WORKDIR)/XcdTarget/$(1)
208 gb_XcsTarget_get_target = $(WORKDIR)/XcsTarget$(if $(1),/)$(1)
209 gb_XcuDataTarget_get_target = $(WORKDIR)/XcuDataTarget/$(1)
210 gb_XcuFilterFiltersTarget_get_target = $(WORKDIR)/XcuFilterFiltersTarget/$(1)
211 gb_XcuFilterInternalTarget_get_target = $(WORKDIR)/XcuFilterInternalTarget/$(1)
212 gb_XcuFilterOthersTarget_get_target = $(WORKDIR)/XcuFilterOthersTarget/$(1)
213 gb_XcuFilterTypesTarget_get_target = $(WORKDIR)/XcuFilterTypesTarget/$(1)
214 gb_XcuLangpackTarget_get_target = $(WORKDIR)/XcuLangpackTarget/$(1)
215 gb_XcuModuleTarget_get_target = $(WORKDIR)/XcuModuleTarget/$(1)
216 gb_XcuMergeTarget_get_target = $(WORKDIR)/XcuMergeTarget/$(1)
217 gb_XcuResTarget_get_target = $(WORKDIR)/XcuResTarget/$(1)
218 gb_Zip_get_target = $(WORKDIR)/Zip/$(1).zip
220 define gb_Library_get_exports_target
221 $(WORKDIR)/LinkTarget/$(call gb_Library__get_workdir_linktargetname,$(1)).exports
222 endef
224 define gb_Library_get_versionlink_target
225 $(call gb_Library_get_sdk_link_dir)/$(basename $(call gb_Library_get_filename,$(1)))
226 endef
228 define gb_Library_get_headers_target
229 $(patsubst $(1):%,$(WORKDIR)/Headers/Library/%,$(filter $(1):%,$(gb_Library_FILENAMES)))
230 endef
232 define gb_StaticLibrary_get_headers_target
233 $(WORKDIR)/Headers/StaticLibrary/$(call gb_StaticLibrary_get_filename,$(1))
234 endef
236 $(eval $(call gb_Helper_make_clean_targets,\
237 AutoInstall \
238 AllLangHelp \
239 AllLangPackage \
240 AllLangMoTarget \
241 CliAssembly \
242 CliAssemblyTarget \
243 CliConfigTarget \
244 CliLibrary \
245 CliNativeLibrary \
246 CliUnoApi \
247 CompilerTest \
248 ComponentTarget \
249 CustomPackage \
250 DescriptionTranslateTarget \
251 Dictionary \
252 Executable \
253 ExternalPackage \
254 Extension \
255 ExtensionPackage \
256 ExtensionPackageSet \
257 Gallery \
258 GeneratedPackage \
259 HelpTarget \
260 HelpIndexTarget \
261 HelpJarTarget \
262 HelpLinkTarget \
263 HelpTranslatePartTarget \
264 HelpTranslateTarget \
265 HelpTreeTarget \
266 InstallModule \
267 InstallModuleTarget \
268 InstallScript \
269 InternalUnoApi \
270 JavaClassSet \
271 Jar \
272 JunitTest \
273 Library \
274 Module \
275 PackagePart \
276 Package \
277 PackageSet \
278 Pagein \
279 Postprocess \
280 PrecompiledHeader \
281 PropertiesTranslateTarget \
282 Pyuno \
283 PythonTest \
284 Rdb \
285 ResTarget \
286 ScpMergeTarget \
287 ScpPreprocessTarget \
288 ScpTarget \
289 ScpTemplateTarget \
290 SdiTarget \
291 StaticLibrary \
292 ThesaurusIndexTarget \
293 CppunitTest \
294 CppunitTestFakeExecutable \
295 CustomTarget \
296 ExternalProject \
297 UIConfig \
298 UIImageListTarget \
299 UIMenubarTarget \
300 UITest \
301 UnoApi \
302 UnoApiHeadersTarget \
303 UnoApiTarget \
304 UnpackedTarball \
305 UnpackedTarget \
306 WinResTarget \
307 YaccTarget \
308 LexTarget \
309 Zip \
310 XcsTarget \
311 XcuDataTarget \
312 XcuModuleTarget \
313 XcuLangpackTarget \
314 XcuMergeTarget \
315 XcuResTarget \
316 Configuration \
319 $(eval $(call gb_Helper_make_dep_targets,\
320 CObject \
321 CxxObject \
322 ObjCObject \
323 ObjCxxObject \
324 CxxClrObject \
325 AsmObject \
326 GenCObject \
327 GenCxxObject \
328 GenCxxClrObject \
329 SdiTarget \
332 # other getters
334 define gb_Library_get_layer
335 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_LAYER)))
336 endef
338 define gb_Executable_get_layer
339 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_LAYER)))
340 endef
342 define gb_Library_get_filename
343 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_FILENAMES)))
344 endef
346 define gb_Library_get_filename_for_build
347 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_FILENAMES_FOR_BUILD)))
348 endef
350 define gb_Executable_get_filename
351 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES)))
352 endef
354 define gb_Executable_get_filename_for_build
355 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES_FOR_BUILD)))
356 endef
358 # Get dependencies needed for running the executable
360 # This is not strictly necessary, but it makes the use more similar to
361 # ExternalExecutable.
363 # gb_Executable_get_runtime_dependencies executable
364 define gb_Executable_get_runtime_dependencies
365 $(call gb_Executable_get_runtime_target,$(1))
366 endef
368 # Get complete command-line for running the executable
370 # This includes setting library path.
372 # gb_Executable_get_command executable
373 define gb_Executable_get_command
374 $(gb_Helper_set_ld_path) $(BUILDTOOLTRACE) $(2) $(call gb_Executable_get_target_for_build,$(1))
375 endef
377 define gb_Executable__get_workdir_linktargetname
378 Executable/$(call gb_Executable_get_filename,$(1))
379 endef
380 define gb_Executable_get_target
381 $(call gb_Executable__get_dir_for_exe,$(1))/$(call gb_Executable_get_filename,$(1))
382 endef
383 ifneq ($(CROSS_COMPILING),)
384 # Can we assume this is used only for executables registered for "NONE"?
385 define gb_Executable_get_target_for_build
386 $(call gb_Executable__get_dir_for_exe_for_build,$(1))/$(call gb_Executable_get_filename_for_build,$(1))
387 endef
388 else
389 gb_Executable_get_target_for_build = $(gb_Executable_get_target)
390 endif # CROSS_COMPILING
391 define gb_Executable_get_linktarget
392 $(call gb_Executable__get_workdir_linktargetname,$(1))<>$(call gb_Executable_get_target,$(1))
393 endef
395 define gb_Library__get_workdir_linktargetname
396 Library/$(call gb_Library_get_filename,$(1))
397 endef
398 define gb_Library_get_target
399 $(call gb_Library_get_instdir,$(1))/$(call gb_Library_get_runtime_filename,$(1))
400 endef
401 ifneq ($(CROSS_COMPILING),)
402 define gb_Library_get_target_for_build
403 $(call gb_Library_get_instdir_for_build,$(1))/$(call gb_Library_get_runtime_filename_for_build,$(1))
404 endef
405 else
406 gb_Library_get_target_for_build = $(gb_Library_get_target)
407 endif # CROSS_COMPILING
408 # this returns a tuple of both the linktargetname, and the target file
409 define gb_Library_get_linktarget
410 $(call gb_Library__get_workdir_linktargetname,$(1))<>$(call gb_Library_get_target,$(1))
411 endef
413 define gb_StaticLibrary__get_workdir_linktargetname
414 StaticLibrary/$(call gb_StaticLibrary_get_filename,$(1))
415 endef
416 define gb_StaticLibrary_get_target
417 $(WORKDIR)/LinkTarget/$(call gb_StaticLibrary__get_workdir_linktargetname,$(1))
418 endef
419 # this returns a tuple of both the linktargetname, and the target file
420 define gb_StaticLibrary_get_linktarget
421 $(call gb_StaticLibrary__get_workdir_linktargetname,$(1))<>$(call gb_StaticLibrary_get_target,$(1))
422 endef
424 define gb_CppunitTest__get_workdir_linktargetname
425 CppunitTest/$(call gb_CppunitTest_get_filename,$(1))
426 endef
427 define gb_CppunitTest__get_linktarget_target
428 $(WORKDIR)/LinkTarget/$(call gb_CppunitTest__get_workdir_linktargetname,$(1))
429 endef
430 # this returns a tuple of both the linktargetname, and the target file
431 define gb_CppunitTest_get_linktarget
432 $(call gb_CppunitTest__get_workdir_linktargetname,$(1))<>$(call gb_CppunitTest__get_linktarget_target,$(1))
433 endef
435 define gb_CompilerTest__get_workdir_linktargetname
436 CompilerTest/$(1)
437 endef
438 define gb_CompilerTest__get_linktarget_target
439 $(WORKDIR)/LinkTarget/$(call gb_CompilerTest__get_workdir_linktargetname,$(1))
440 endef
441 # this returns a tuple of both the linktargetname, and the target file
442 define gb_CompilerTest_get_linktarget
443 $(call gb_CompilerTest__get_workdir_linktargetname,$(1))<>$(call gb_CompilerTest__get_linktarget_target,$(1))
444 endef
446 # static members declared here because they are used globally
448 gb_StaticLibrary_WORKDIR = $(WORKDIR)/LinkTarget/StaticLibrary
449 gb_Library_WORKDIR_FOR_BUILD = $(WORKDIR_FOR_BUILD)/LinkTarget/Library
450 gb_Executable_BINDIR = $(WORKDIR)/LinkTarget/Executable
451 gb_Executable_BINDIR_FOR_BUILD = $(WORKDIR_FOR_BUILD)/LinkTarget/Executable
452 gb_Library_DLLDIR = $(WORKDIR)/LinkTarget/Library
453 gb_Library_DLLDIR_FOR_BUILD = $(WORKDIR_FOR_BUILD)/LinkTarget/Library
454 gb_CppunitTest_DLLDIR = $(WORKDIR)/LinkTarget/CppunitTest
456 # static variables declared here because they are used globally
458 gb_POLOCATION := $(SRCDIR)/translations/source
460 # vim: set noet sw=4: