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
= \
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
33 # workdir target patterns
35 gb_AutoInstall_get_target
= $(WORKDIR
)/AutoInstall
/$(1)
36 gb_AllLangHelp_get_target
= $(WORKDIR
)/AllLangHelp
/$(1)
37 gb_AllLangHelp_get_helpfiles_target
= $(WORKDIR
)/AllLangHelp
/$(1).helpfiles
38 gb_AllLangPackage_get_target
= $(WORKDIR
)/AllLangPackage
/$(1)
39 gb_AllLangMoTarget_get_target
= $(WORKDIR
)/AllLangMo
/$(1)
40 gb_AsmObject_get_target
= $(WORKDIR
)/AsmObject
/$(1).o
41 gb_CObject_get_target
= $(WORKDIR
)/CObject
/$(1).o
42 gb_GenCObject_get_target
= $(WORKDIR
)/GenCObject
/$(1).o
43 gb_CliAssembly_get_target
= $(WORKDIR
)/CliAssembly
/$(1).done
44 gb_CliAssemblyTarget_get_target
= $(WORKDIR
)/CliAssemblyTarget
/$(1).done
45 gb_CliAssemblyTarget_get_assembly_target
= $(WORKDIR
)/CliAssemblyTarget
/$(1)$(gb_CliAssemblyTarget_POLICYEXT
)
46 gb_CliConfigTarget_get_target
= $(WORKDIR
)/CliConfigTarget
/$(1).config
47 gb_CliNativeLibrary_get_preparation_target
= $(WORKDIR
)/CliNativeLibraryTarget
/$(1).prepare
48 gb_CompilerTest_get_target
= $(WORKDIR
)/CompilerTest
/$(1)
49 gb_ComponentTarget_get_target
= $(WORKDIR
)/ComponentTarget
/$(1).component
50 gb_ComponentTarget_get_target_for_build
= $(WORKDIR_FOR_BUILD
)/ComponentTarget
/$(1).component
51 gb_Configuration_get_preparation_target
= $(WORKDIR
)/Configuration
/$(1).prepared
52 gb_CppunitTest_get_target
= $(WORKDIR
)/CppunitTest
/$(1).
test
53 gb_CustomPackage_get_target
= $(WORKDIR
)/CustomPackage
/$(1).filelist
54 gb_CustomTarget_get_repo_target
= $(WORKDIR
)/CustomTarget
/$(2)_
$(1).done
55 gb_CustomTarget_get_target
= $(WORKDIR
)/CustomTarget
/$(1).done
56 gb_CustomTarget_get_workdir
= $(WORKDIR
)/CustomTarget
/$(1)
57 gb_DescriptionTranslateTarget_get_target
= $(WORKDIR
)/DescriptionTranslateTarget
/$(1).xml
58 gb_Dictionary_get_target
= $(WORKDIR
)/Dictionary
/$(1).done
59 gb_CxxObject_get_target
= $(WORKDIR
)/CxxObject
/$(1).o
60 gb_GenCxxObject_get_target
= $(WORKDIR
)/GenCxxObject
/$(1).o
61 gb_Executable_get_headers_target
= $(WORKDIR
)/Headers
/Executable
/$(1)
62 gb_Executable_get_runtime_target
= $(WORKDIR_FOR_BUILD
)/Executable
/$(1).run
63 gb_Extension_get_target
= $(WORKDIR
)/Extension
/$(1).oxt
64 gb_Extension_get_rootdir
= $(WORKDIR
)/Extension
/$(1)/root
65 gb_Extension_get_workdir
= $(WORKDIR
)/Extension
/$(1)
66 gb_ExtensionPackage_get_target
= $(WORKDIR
)/ExtensionPackage
/$(1).filelist
67 gb_ExtensionPackage_get_preparation_target
= $(WORKDIR
)/ExtensionPackage
/$(1).prepare
68 gb_ExtensionPackageSet_get_target
= $(WORKDIR
)/ExtensionPackage
/$(1).set
69 gb_ExternalPackage_get_target
= $(WORKDIR
)/ExternalPackage
/$(1)
70 gb_ExternalProject_get_statedir
= $(WORKDIR
)/ExternalProject
/$(1)
71 gb_ExternalProject_get_preparation_target
= $(WORKDIR
)/ExternalProject
/$(1).prepare
72 gb_ExternalProject_get_state_target
= $(WORKDIR
)/ExternalProject
/$(1)/$(2)
73 gb_ExternalProject_get_target
= $(WORKDIR
)/ExternalProject
/$(1).done
74 gb_ExternalProject_get_target_for_build
= $(WORKDIR_FOR_BUILD
)/ExternalProject
/$(1).done
75 gb_Gallery_get_target
= $(WORKDIR
)/Gallery
/$(1).done
76 gb_Gallery_get_workdir
= $(WORKDIR
)/Gallery
/$(1)
77 gb_GeneratedPackage_get_target
= $(WORKDIR
)/GeneratedPackage
/$(1).filelist
78 gb_GeneratedPackage_get_target_for_build
= $(WORKDIR_FOR_BUILD
)/GeneratedPackage
/$(1).filelist
79 gb_HelpIndexTarget_get_target
= $(WORKDIR
)/HelpIndexTarget
/$(1).done
80 gb_HelpJarTarget_get_target
= $(WORKDIR
)/HelpJarTarget
/$(1).done
81 gb_HelpLinkTarget_get_preparation_target
= $(WORKDIR
)/HelpLinkTarget
/$(1).prepare
82 gb_HelpLinkTarget_get_target
= $(WORKDIR
)/HelpLinkTarget
/$(1).done
83 gb_HelpTarget_get_filelist
= $(WORKDIR
)/HelpTarget
/$(1).filelist
84 gb_HelpTarget_get_linked_target
= $(WORKDIR
)/HelpTarget
/$(1).translate
85 gb_HelpTarget_get_target
= $(WORKDIR
)/HelpTarget
/$(1).zip
86 gb_HelpTarget_get_translation_target
= $(call gb_HelpTarget_get_filelist
,$(1))
87 gb_HelpTarget_get_workdir
= $(WORKDIR
)/HelpTarget
/$(1)
88 gb_HelpTranslatePartTarget_get_target
= $(WORKDIR
)/HelpTranslatePartTarget
/$(1)/done
89 gb_HelpTranslatePartTarget_get_translated_target
= $(WORKDIR
)/HelpTranslatePartTarget
/$(1)/$(2).xhp
90 gb_HelpTranslatePartTarget_get_workdir
= $(WORKDIR
)/HelpTranslatePartTarget
/$(1)
91 gb_HelpTranslateTarget_get_target
= $(WORKDIR
)/HelpTranslateTarget
/$(1).done
92 gb_HelpTreeTarget_get_target
= $(WORKDIR
)/HelpTreeTarget
/$(1).tree
93 gb_InstallModule_get_filelist
= $(call gb_InstallModuleTarget_get_filelist
,$(1))
94 gb_InstallModule_get_target
= $(WORKDIR
)/InstallModule
/$(1).done
95 gb_InstallModuleTarget_get_external_target
= $(WORKDIR
)/InstallModuleTarget
/$(1).external
96 gb_InstallModuleTarget_get_filelist
= $(WORKDIR
)/InstallModuleTarget
/$(1).filelist
97 gb_InstallModuleTarget_get_target
= $(WORKDIR
)/InstallModuleTarget
/$(1).filelist
98 gb_InstallScript_get_target
= $(WORKDIR
)/InstallScriptTarget
/$(1)$(gb_InstallScript_EXT
)
99 gb_InternalUnoApi_get_target
= $(WORKDIR
)/InternalUnoApi
/$(1).done
100 gb_Jar_get_target
= $(call gb_Jar_get_install_target
,$(1))
101 gb_Jar_get_classsetname
= Jar
/$(1)
102 gb_JavaClassSet_get_classdir
= $(WORKDIR
)/JavaClassSet
/$(1)
103 gb_JavaClassSet_get_repo_target
= $(WORKDIR
)/JavaClassSet
/$(2)/$(1).done
104 gb_JavaClassSet_get_target
= $(WORKDIR
)/JavaClassSet
/$(1)/done
105 gb_JunitTest_get_classsetname
= JunitTest
/$(1)
106 gb_JunitTest_get_target
= $(WORKDIR
)/JunitTest
/$(1)/done
107 gb_JunitTest_get_userdir
= $(WORKDIR
)/JunitTest
/$(1)/user
108 gb_PythonTest_get_target
= $(WORKDIR
)/PythonTest
/$(1)/done
109 gb_LinkTarget__get_workdir_linktargetname
= $(firstword $(subst <>, ,$(1)))
110 gb_LinkTarget_get_headers_target
= \
111 $(WORKDIR
)/Headers
/$(call gb_LinkTarget__get_workdir_linktargetname
,$(1))
112 gb_LinkTarget_get_objects_list
= \
113 $(WORKDIR
)/LinkTarget
/$(call gb_LinkTarget__get_workdir_linktargetname
,$(1)).objectlist
114 gb_LinkTarget_get_dep_target
= \
115 $(WORKDIR
)/Dep
/LinkTarget
/$(call gb_LinkTarget__get_workdir_linktargetname
,$(1)).d
116 gb_LinkTarget_get_clean_target
= \
117 $(WORKDIR
)/Clean
/LinkTarget
/$(call gb_LinkTarget__get_workdir_linktargetname
,$(1))
118 gb_LinkTarget_get_target
= $(lastword
$(subst <>, ,$(1)))
119 gb_Module_get_nonl10n_target
= $(WORKDIR
)/Module
/nonl10n
/$(1)
120 gb_Module_get_l10n_target
= $(WORKDIR
)/Module
/l10n
/$(1)
121 gb_Module_get_check_target
= $(WORKDIR
)/Module
/check/$(1)
122 gb_Module_get_slowcheck_target
= $(WORKDIR
)/Module
/slowcheck
/$(1)
123 gb_Module_get_screenshot_target
= $(WORKDIR
)/Module
/screenshot
/$(1)
124 gb_Module_get_subsequentcheck_target
= $(WORKDIR
)/Module
/subsequentcheck
/$(1)
125 gb_Module_get_stagingcheck_target
= $(WORKDIR
)/Module
/stagingcheck
/$(1)
126 gb_Module_get_perfcheck_target
= $(WORKDIR
)/Module
/perfcheck
/$(1)
127 gb_Module_get_uicheck_target
= $(WORKDIR
)/Module
/uicheck
/$(1)
128 gb_Module_get_target
= $(WORKDIR
)/Module
/$(1)
129 gb_ObjCxxObject_get_target
= $(WORKDIR
)/ObjCxxObject
/$(1).o
130 gb_ObjCObject_get_target
= $(WORKDIR
)/ObjCObject
/$(1).o
131 gb_CxxClrObject_get_target
= $(WORKDIR
)/CxxClrObject
/$(1).o
132 gb_GenCxxClrObject_get_target
= $(WORKDIR
)/GenCxxClrObject
/$(1).o
133 gb_Pagein_get_target
= $(WORKDIR
)/Pagein
/pagein-
$(1)
134 gb_Package_get_preparation_target
= $(WORKDIR
)/Package
/prepared
/$(1)
135 gb_Package_get_target
= $(WORKDIR
)/Package
/$(1).filelist
136 gb_Package_get_target_for_build
= $(WORKDIR_FOR_BUILD
)/Package
/$(1).filelist
137 gb_PackageSet_get_target
= $(WORKDIR
)/PackageSet
/$(1).filelist
138 gb_PackageInfo_get_target
= $(WORKDIR
)/PackageInfo
139 gb_Postprocess_get_target
= $(WORKDIR
)/Postprocess
/$(1)
140 gb_PrecompiledHeader_get_dep_target
= $(WORKDIR
)/Dep
/PrecompiledHeader
/$(gb_PrecompiledHeader_DEBUGDIR
)/$(1).hxx.gch.d
141 gb_PrecompiledHeader_get_dep_target_tmp
= $(call gb_PrecompiledHeader_get_dep_target
,$(1)).tmp
142 gb_PrecompiledHeader_get_target
= $(WORKDIR
)/PrecompiledHeader
/$(gb_PrecompiledHeader_DEBUGDIR
)/$(1).hxx.gch
143 gb_PrecompiledHeader_get_timestamp
= $(WORKDIR
)/PrecompiledHeader
/$(gb_PrecompiledHeader_DEBUGDIR
)/Timestamps
/$(1)
144 gb_PropertiesTranslateTarget_get_target
= $(WORKDIR
)/PropertiesTranslateTarget
/$(1).properties
145 gb_Pyuno_get_final_target
= $(WORKDIR
)/Pyuno
/$(1).final
146 gb_Pyuno_get_target
= $(WORKDIR
)/Pyuno
/$(1).done
147 gb_Rdb_get_target
= $(WORKDIR
)/Rdb
/$(1).rdb
148 gb_Rdb_get_target_for_build
= $(WORKDIR_FOR_BUILD
)/Rdb
/$(1).rdb
149 gb_ResTarget_get_target
= $(WORKDIR
)/ResTarget
/$(1).res
150 gb_MoTarget_get_target
= $(WORKDIR
)/MoTarget
/$(1).mo
151 gb_ScpMergeTarget_get_target
= $(WORKDIR
)/ScpMergeTarget
/$(1).ulf
152 gb_ScpPreprocessTarget_get_target
= $(WORKDIR
)/ScpPreprocessTarget
/$(1).pre
153 gb_ScpTarget_get_external_target
= $(WORKDIR
)/ScpTarget
/$(1).external
154 gb_ScpTarget_get_target
= $(WORKDIR
)/ScpTarget
/$(1).par
155 gb_ScpTemplateTarget_get_dir
= $(abspath
$(WORKDIR
)/ScpTemplateTarget
/$(dir $(1)))
156 gb_ScpTemplateTarget_get_target
= $(abspath
$(WORKDIR
)/ScpTemplateTarget
/$(dir $(1))$(subst pack
,modules
,$(subst module_
,all,$(notdir $(1)))).inc
)
157 gb_SdiTarget_get_target
= $(WORKDIR
)/SdiTarget
/$(1)
158 gb_ThesaurusIndexTarget_get_target
= $(WORKDIR
)/ThesaurusIndexTarget
/$(basename $(1)).idx
159 gb_UIConfig_get_imagelist_target
= $(WORKDIR
)/UIConfig
/$(1).ilst
160 gb_UIConfig_get_a11yerrors_target
= $(WORKDIR
)/UIConfig
/$(1).a11yerrors
161 gb_UIConfig_get_target
= $(WORKDIR
)/UIConfig
/$(1).done
162 gb_UIImageListTarget_get_target
= $(WORKDIR
)/UIImageListTarget
/$(1).ilst
163 gb_UIMenubarTarget_get_target
= $(WORKDIR
)/UIMenubarTarget
/$(1).xml
164 gb_UITest_get_target
= $(WORKDIR
)/UITest
/$(1)/done
165 gb_UnoApiTarget_get_target
= $(WORKDIR
)/UnoApiTarget
/$(1).rdb
166 gb_UnoApiHeadersTarget_get_bootstrap_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),bootstrap
)
167 gb_UnoApiHeadersTarget_get_comprehensive_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),comprehensive
)
168 gb_UnoApiHeadersTarget_get_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),normal
)
169 gb_UnoApiHeadersTarget_get_real_bootstrap_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/bootstrap
170 gb_UnoApiHeadersTarget_get_real_comprehensive_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/comprehensive
171 gb_UnoApiHeadersTarget_get_real_dir
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/normal
172 gb_UnoApiHeadersTarget_get_real_bootstrap_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/bootstrap.done
173 gb_UnoApiHeadersTarget_get_real_comprehensive_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/comprehensive.done
174 gb_UnoApiHeadersTarget_get_real_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/normal.done
175 gb_UnoApiHeadersTarget_get_bootstrap_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),bootstrap
).done
176 gb_UnoApiHeadersTarget_get_comprehensive_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),comprehensive
).done
177 gb_UnoApiHeadersTarget_get_target
= $(WORKDIR
)/UnoApiHeadersTarget
/$(1)/$(call gb_UnoApiHeadersTarget_select_variant
,$(1),normal
).done
178 gb_UnpackedTarball_get_dir
= $(WORKDIR
)/UnpackedTarball
/$(1)
179 gb_UnpackedTarball_get_pristine_dir
= $(WORKDIR
)/UnpackedTarball
/$(1).org
180 gb_UnpackedTarball_get_final_target
= $(WORKDIR
)/UnpackedTarball
/$(1).update
181 # NOTE: the .done target is hardcoded in solenv/bin/concat-deps.c !
182 gb_UnpackedTarball_get_target
= $(WORKDIR
)/UnpackedTarball
/$(1).done
183 gb_UnpackedTarball_get_preparation_target
= $(WORKDIR
)/UnpackedTarball
/$(1).prepare
184 gb_UnpackedTarget_get_target
= $(WORKDIR
)/UnpackedTarget
/$(1)
185 gb_WinResTarget_get_target
= $(WORKDIR
)/WinResTarget
/$(1)$(gb_WinResTarget_POSTFIX
)
186 # workdir targets: $(1) is prefix/path
187 gb_Configuration_get_target
= $(WORKDIR
)/Configuration
/$(1).done
188 gb_YaccTarget_get_grammar_target
= $(WORKDIR
)/YaccTarget
/$(1).
cxx
189 gb_YaccTarget_get_header_target
= $(WORKDIR
)/YaccTarget
/$(1).hxx
190 gb_YaccTarget_get_target
= $(WORKDIR
)/YaccTarget
/$(1).done
192 gb_LexTarget_get_scanner_target
= $(WORKDIR
)/LexTarget
/$(1).
cxx
193 gb_LexTarget_get_target
= $(WORKDIR
)/LexTarget
/$(1).done
195 gb_XcdTarget_get_target
= $(WORKDIR
)/XcdTarget
/$(1)
196 gb_XcsTarget_get_target
= $(WORKDIR
)/XcsTarget
$(if
$(1),/)$(1)
197 gb_XcuDataTarget_get_target
= $(WORKDIR
)/XcuDataTarget
/$(1)
198 gb_XcuFilterFiltersTarget_get_target
= $(WORKDIR
)/XcuFilterFiltersTarget
/$(1)
199 gb_XcuFilterInternalTarget_get_target
= $(WORKDIR
)/XcuFilterInternalTarget
/$(1)
200 gb_XcuFilterOthersTarget_get_target
= $(WORKDIR
)/XcuFilterOthersTarget
/$(1)
201 gb_XcuFilterTypesTarget_get_target
= $(WORKDIR
)/XcuFilterTypesTarget
/$(1)
202 gb_XcuLangpackTarget_get_target
= $(WORKDIR
)/XcuLangpackTarget
/$(1)
203 gb_XcuModuleTarget_get_target
= $(WORKDIR
)/XcuModuleTarget
/$(1)
204 gb_XcuMergeTarget_get_target
= $(WORKDIR
)/XcuMergeTarget
/$(1)
205 gb_XcuResTarget_get_target
= $(WORKDIR
)/XcuResTarget
/$(1)
206 gb_Zip_get_target
= $(WORKDIR
)/Zip
/$(1).zip
208 define gb_Library_get_exports_target
209 $(WORKDIR
)/LinkTarget
/$(call gb_Library__get_workdir_linktargetname
,$(1)).exports
212 define gb_Library_get_versionlink_target
213 $(call gb_Library_get_sdk_link_dir
)/$(basename $(call gb_Library_get_filename
,$(1)))
216 define gb_Library_get_headers_target
217 $(patsubst $(1):%,$(WORKDIR
)/Headers
/Library
/%,$(filter $(1):%,$(gb_Library_FILENAMES
)))
220 define gb_StaticLibrary_get_headers_target
221 $(WORKDIR
)/Headers
/StaticLibrary
/$(call gb_StaticLibrary_get_filename
,$(1))
224 $(eval
$(call gb_Helper_make_clean_targets
,\
238 DescriptionTranslateTarget \
244 ExtensionPackageSet \
251 HelpTranslatePartTarget \
252 HelpTranslateTarget \
255 InstallModuleTarget \
269 PropertiesTranslateTarget \
275 ScpPreprocessTarget \
280 ThesaurusIndexTarget \
282 CppunitTestFakeExecutable \
290 UnoApiHeadersTarget \
307 $(eval
$(call gb_Helper_make_dep_targets
,\
322 define gb_Library_get_layer
323 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_LAYER
)))
326 define gb_Executable_get_layer
327 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_LAYER
)))
330 define gb_Library_get_filename
331 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_FILENAMES
)))
334 define gb_Executable_get_filename
335 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES
)))
338 define gb_Executable_get_filename_for_build
339 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES_FOR_BUILD
)))
342 # Get dependencies needed for running the executable
344 # This is not strictly necessary, but it makes the use more similar to
345 # ExternalExecutable.
347 # gb_Executable_get_runtime_dependencies executable
348 define gb_Executable_get_runtime_dependencies
349 $(call gb_Executable_get_runtime_target
,$(1))
352 # Get complete command-line for running the executable
354 # This includes setting library path.
356 # gb_Executable_get_command executable
357 define gb_Executable_get_command
358 $(gb_Helper_set_ld_path
) $(BUILDTOOLTRACE
) $(2) $(call gb_Executable_get_target_for_build
,$(1))
361 define gb_Executable__get_workdir_linktargetname
362 Executable
/$(call gb_Executable_get_filename
,$(1))
364 define gb_Executable_get_target
365 $(call gb_Executable__get_dir_for_exe
,$(1))/$(call gb_Executable_get_filename
,$(1))
367 ifneq ($(CROSS_COMPILING
),)
368 # Can we assume this is used only for executables registered for "NONE"?
369 define gb_Executable_get_target_for_build
370 $(call gb_Executable__get_dir_for_exe_for_build
,$(1))/$(call gb_Executable_get_filename_for_build
,$(1))
373 gb_Executable_get_target_for_build
= $(gb_Executable_get_target
)
374 endif # CROSS_COMPILING
375 define gb_Executable_get_linktarget
376 $(call gb_Executable__get_workdir_linktargetname
,$(1))<>$(call gb_Executable_get_target
,$(1))
379 define gb_Library__get_workdir_linktargetname
380 Library
/$(call gb_Library_get_filename
,$(1))
382 define gb_Library_get_target
383 $(call gb_Library_get_instdir
,$(1))/$(call gb_Library_get_runtime_filename
,$(1))
385 # this returns a tuple of both the linktargetname, and the target file
386 define gb_Library_get_linktarget
387 $(call gb_Library__get_workdir_linktargetname
,$(1))<>$(call gb_Library_get_target
,$(1))
390 define gb_StaticLibrary__get_workdir_linktargetname
391 StaticLibrary
/$(call gb_StaticLibrary_get_filename
,$(1))
393 define gb_StaticLibrary_get_target
394 $(WORKDIR
)/LinkTarget
/$(call gb_StaticLibrary__get_workdir_linktargetname
,$(1))
396 # this returns a tuple of both the linktargetname, and the target file
397 define gb_StaticLibrary_get_linktarget
398 $(call gb_StaticLibrary__get_workdir_linktargetname
,$(1))<>$(call gb_StaticLibrary_get_target
,$(1))
401 define gb_CppunitTest__get_workdir_linktargetname
402 CppunitTest
/$(call gb_CppunitTest_get_filename
,$(1))
404 define gb_CppunitTest__get_linktarget_target
405 $(WORKDIR
)/LinkTarget
/$(call gb_CppunitTest__get_workdir_linktargetname
,$(1))
407 # this returns a tuple of both the linktargetname, and the target file
408 define gb_CppunitTest_get_linktarget
409 $(call gb_CppunitTest__get_workdir_linktargetname
,$(1))<>$(call gb_CppunitTest__get_linktarget_target
,$(1))
412 define gb_CompilerTest__get_workdir_linktargetname
415 define gb_CompilerTest__get_linktarget_target
416 $(WORKDIR
)/LinkTarget
/$(call gb_CompilerTest__get_workdir_linktargetname
,$(1))
418 # this returns a tuple of both the linktargetname, and the target file
419 define gb_CompilerTest_get_linktarget
420 $(call gb_CompilerTest__get_workdir_linktargetname
,$(1))<>$(call gb_CompilerTest__get_linktarget_target
,$(1))
423 # static members declared here because they are used globally
425 gb_StaticLibrary_WORKDIR
= $(WORKDIR
)/LinkTarget
/StaticLibrary
426 gb_Library_WORKDIR_FOR_BUILD
= $(WORKDIR_FOR_BUILD
)/LinkTarget
/Library
427 gb_Executable_BINDIR
= $(WORKDIR
)/LinkTarget
/Executable
428 gb_Executable_BINDIR_FOR_BUILD
= $(WORKDIR_FOR_BUILD
)/LinkTarget
/Executable
429 gb_Library_DLLDIR
= $(WORKDIR
)/LinkTarget
/Library
430 gb_CppunitTest_DLLDIR
= $(WORKDIR
)/LinkTarget
/CppunitTest
432 # static variables declared here because they are used globally
434 gb_POLOCATION
:= $(SRCDIR
)/translations
/source
436 # vim: set noet sw=4: