Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / solenv / gbuild / TargetLocations.mk
blob9aef6d3d6397feac56d7a28a89cced441cbaf14a
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # Copyright 2000, 2011 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
12 # OpenOffice.org is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License version 3
14 # only, as published by the Free Software Foundation.
16 # OpenOffice.org is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License version 3 for more details
20 # (a copy is included in the LICENSE file that accompanied this code).
22 # You should have received a copy of the GNU Lesser General Public License
23 # version 3 along with OpenOffice.org. If not, see
24 # <http://www.openoffice.org/license.html>
25 # for a copy of the LGPLv3 License.
27 #*************************************************************************
29 # outdir target pattern
31 gb_CliLibrary_get_target = $(gb_Helper_OUTDIRLIBDIR)/$(1)$(gb_CliLibrary_EXT)
32 gb_CliNativeLibrary_get_target = $(gb_Helper_OUTDIRLIBDIR)/$(1)$(gb_CliNativeLibrary_EXT)
33 gb_CliUnoApi_get_target = $(gb_Helper_OUTDIRLIBDIR)/$(1)$(gb_CliUnoApi_EXT)
34 gb_ComponentTarget_get_outdir_target = $(OUTDIR)/xml/component/$(1).component
35 gb_Dictionary_get_target = $(OUTDIR)/pck/$(1).oxt
36 gb_Executable_get_target = $(OUTDIR)/bin/$(1)$(gb_Executable_EXT)
37 gb_Executable_get_target_for_build = $(OUTDIR_FOR_BUILD)/bin/$(1)$(gb_Executable_EXT_for_build)
38 gb_Extension_get_target = $(OUTDIR)/bin/$(1).oxt
39 gb_Pagein_get_outdir_target = $(OUTDIR)/bin/pagein-$(1)
40 gb_PackagePart_get_destinations = \
41 $(OUTDIR)/bin \
42 $(OUTDIR)/idl \
43 $(OUTDIR)/inc \
44 $(OUTDIR)/lib \
45 $(OUTDIR)/par \
46 $(OUTDIR)/pck \
47 $(OUTDIR)/rdb \
48 $(OUTDIR)/share \
49 $(OUTDIR)/unittest \
50 $(OUTDIR)/xml \
52 gb_InstallScript_get_target = $(OUTDIR)/bin/$(1)$(gb_InstallScript_EXT)
53 gb_InternalUnoApi_get_target = $(OUTDIR)/rdb/$(1).rdb
54 gb_PackagePart_get_target = $(OUTDIR)/$(1)
55 gb_Rdb_get_outdir_target = $(OUTDIR)/xml/$(1).rdb
56 gb_ResTarget_get_outdir_target = $(OUTDIR)/bin/$(1).res
57 gb_UnoApi_get_target = $(OUTDIR)/bin/$(1).rdb
58 gb_UnoApiMerge_get_target = $(OUTDIR)/bin/$(1).rdb
59 gb_Jar_get_outdir_target = $(OUTDIR)/bin/$(1).jar
60 gb_Zip_get_outdir_target = $(OUTDIR)/pck/$(1).zip
61 # outdir targets: $(1) is path
62 gb_Configuration_registry = $(OUTDIR)/xml/registry
63 gb_XcsTarget_get_outdir_target = \
64 $(gb_Configuration_registry)/schema$(if $(1),/)$(1)
65 gb_XcuDataTarget_get_outdir_target = $(gb_Configuration_registry)/data/$(1)
66 gb_XcuLangpackTarget_get_outdir_target = $(gb_Configuration_registry)/spool/$(1)
67 gb_XcuModuleTarget_get_outdir_target = $(gb_Configuration_registry)/spool/$(1)
70 define gb_Library_get_target
71 $(patsubst $(1):%,$(gb_Library_OUTDIRLOCATION)/%,$(filter $(1):%,$(gb_Library_FILENAMES)))
72 endef
74 define gb_StaticLibrary_get_target
75 $(patsubst $(1):%,$(gb_StaticLibrary_OUTDIRLOCATION)/%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES)))
76 endef
79 # workdir target patterns
81 gb_AllLangResTarget_get_target = $(WORKDIR)/AllLangRes/$(1)
82 gb_AllLangZip_get_target = $(WORKDIR)/AllLangZip/$(1)
83 gb_AsmObject_get_target = $(WORKDIR)/AsmObject/$(1).o
84 gb_CObject_get_target = $(WORKDIR)/CObject/$(1).o
85 gb_GenCObject_get_target = $(WORKDIR)/GenCObject/$(1).o
86 gb_CliAssembly_get_target = $(WORKDIR)/CliAssembly/$(1).done
87 gb_CliAssemblyTarget_get_target = $(WORKDIR)/CliAssemblyTarget/$(1).done
88 gb_CliAssemblyTarget_get_assembly_target = $(WORKDIR)/CliAssemblyTarget/$(1)$(gb_CliAssemblyTarget_POLICYEXT)
89 gb_CliConfigTarget_get_target = $(WORKDIR)/CliConfigTarget/$(1).config
90 gb_CliLibraryTarget_get_target = $(WORKDIR)/CliLibraryTarget/$(1)$(gb_CliLibraryTarget_EXT)
91 gb_CliNativeLibraryTarget_get_external_target = $(WORKDIR)/CliNativeLibraryTarget/$(1).external
92 gb_CliNativeLibraryTarget_get_target = $(WORKDIR)/CliNativeLibraryTarget/$(1)$(gb_CliNativeLibraryTarget_EXT)
93 gb_CliUnoApiTarget_get_target = $(WORKDIR)/CliUnoApiTarget/$(1)$(gb_CliUnoApiTarget_EXT)
94 gb_ComponentTarget_get_target = $(WORKDIR)/ComponentTarget/$(1).component
95 gb_Configuration_get_preparation_target = $(WORKDIR)/Configuration/$(1).prepared
96 gb_CppunitTest_get_target = $(WORKDIR)/CppunitTest/$(1).test
97 gb_CppunitTestFakeExecutable_get_target = \
98 $(OUTDIR)/unittest/install/program/$(1)
99 gb_CustomTarget_get_repo_target = $(WORKDIR)/CustomTarget/$(2)_$(1).done
100 gb_CustomTarget_get_target = $(WORKDIR)/CustomTarget/$(1).done
101 gb_CustomTarget_get_workdir = $(WORKDIR)/CustomTarget/$(1)
102 gb_CxxObject_get_target = $(WORKDIR)/CxxObject/$(1).o
103 gb_GenCxxObject_get_target = $(WORKDIR)/GenCxxObject/$(1).o
104 gb_Executable_get_external_headers_target = $(WORKDIR)/ExternalHeaders/Executable/$(1)
105 gb_Executable_get_headers_target = $(WORKDIR)/Headers/Executable/$(1)
106 gb_ExtensionTarget_get_target = $(WORKDIR)/ExtensionTarget/$(1).oxt
107 gb_ExtensionTarget_get_rootdir = $(WORKDIR)/ExtensionTarget/$(1)/root
108 gb_ExtensionTarget_get_workdir = $(WORKDIR)/ExtensionTarget/$(1)
109 gb_ExternalPackage_get_target = $(WORKDIR)/ExternalPackage/$(1)
110 gb_ExternalProject_get_statedir = $(WORKDIR)/ExternalProject/$(1)
111 gb_ExternalProject_get_preparation_target = $(WORKDIR)/ExternalProject/$(1).prepare
112 gb_ExternalProject_get_state_target = $(WORKDIR)/ExternalProject/$(1)/$(2)
113 gb_ExternalProject_get_target = $(WORKDIR)/ExternalProject/$(1).done
114 gb_InstallModule_get_filelist = $(call gb_InstallModuleTarget_get_filelist,$(1))
115 gb_InstallModule_get_target = $(WORKDIR)/InstallModule/$(1).done
116 gb_InstallModuleTarget_get_external_target = $(WORKDIR)/InstallModuleTarget/$(1).external
117 gb_InstallModuleTarget_get_filelist = $(WORKDIR)/InstallModuleTarget/$(1).filelist
118 gb_InstallModuleTarget_get_target = $(WORKDIR)/InstallModuleTarget/$(1).filelist
119 gb_InstallScriptTarget_get_target = $(WORKDIR)/InstallScriptTarget/$(1)$(gb_InstallScript_EXT)
120 gb_Jar_get_target = $(WORKDIR)/Jar/$(1).jar
121 gb_Jar_get_classsetname = Jar/$(1)
122 gb_JavaClassSet_get_classdir = $(WORKDIR)/JavaClassSet/$(1)
123 gb_JavaClassSet_get_repo_target = $(WORKDIR)/JavaClassSet/$(2)/$(1).done
124 gb_JavaClassSet_get_target = $(WORKDIR)/JavaClassSet/$(1)/done
125 gb_JunitTest_get_classsetname = JunitTest/$(1)
126 gb_JunitTest_get_target = $(WORKDIR)/JunitTest/$(1)/done
127 gb_JunitTest_get_userdir = $(WORKDIR)/JunitTest/$(1)/user
128 gb_LinkTarget_get_external_headers_target = $(WORKDIR)/ExternalHeaders/$(1)
129 gb_LinkTarget_get_headers_target = $(WORKDIR)/Headers/$(1)
130 gb_LinkTarget_get_target = $(WORKDIR)/LinkTarget/$(1)
131 gb_LinkTarget_get_objects_list = $(WORKDIR)/LinkTarget/$(1).objectlist
132 gb_Module_get_check_target = $(WORKDIR)/Module/check/$(1)
133 gb_Module_get_slowcheck_target = $(WORKDIR)/Module/slowcheck/$(1)
134 gb_Module_get_subsequentcheck_target = $(WORKDIR)/Module/subsequentcheck/$(1)
135 gb_Module_get_target = $(WORKDIR)/Module/$(1)
136 gb_ObjCxxObject_get_target = $(WORKDIR)/ObjCxxObject/$(1).o
137 gb_ObjCObject_get_target = $(WORKDIR)/ObjCObject/$(1).o
138 gb_Package_get_preparation_target = $(WORKDIR)/Package/prepared/$(1)
139 gb_Package_get_target = $(WORKDIR)/Package/$(1)
140 gb_Pagein_get_target = $(WORKDIR)/Pagein/$(1)
141 gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).zip
142 gb_Pyuno_get_outdir_target = $(OUTDIR)/bin/$(1).zip
143 gb_PyunoFile_get_target = $(WORKDIR)/Pyuno/$(1)/contents/$(2)
144 gb_Rdb_get_target = $(WORKDIR)/Rdb/$(1).rdb
145 gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst
146 gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res
147 gb_ScpConvertTarget_get_target = $(WORKDIR)/ScpConvertTarget/$(1).ulf
148 gb_ScpMergeTarget_get_target = $(WORKDIR)/ScpMergeTarget/$(1).ulf
149 gb_ScpPreprocessTarget_get_target = $(WORKDIR)/ScpPreprocessTarget/$(1).pre
150 gb_ScpTarget_get_external_target = $(WORKDIR)/ScpTarget/$(1).external
151 gb_ScpTarget_get_target = $(WORKDIR)/ScpTarget/$(1).par
152 gb_ScpTemplateTarget_get_dir = $(abspath $(WORKDIR)/ScpTemplateTarget/$(dir $(1)))
153 gb_ScpTemplateTarget_get_target = $(abspath $(WORKDIR)/ScpTemplateTarget/$(dir $(1))$(subst pack,modules,$(subst module_,all,$(notdir $(1)))).inc)
154 gb_SdiTarget_get_target = $(WORKDIR)/SdiTarget/$(1)
155 gb_SrsPartMergeTarget_get_target = $(WORKDIR)/SrsPartMergeTarget/$(1)
156 gb_SrsPartTarget_get_target = $(WORKDIR)/SrsPartTarget/$(1)
157 gb_SrsTarget_get_external_headers_target = $(WORKDIR)/ExternalHeaders/SrsTarget/$(1)
158 gb_SrsTarget_get_target = $(WORKDIR)/SrsTarget/$(1).srs
159 gb_SrsTemplatePartTarget_get_target = $(WORKDIR)/SrsTemplatePartTarget/$(firstword $(subst /, ,$(1)))/$(subst _tmpl,,$(notdir $(1)))
160 gb_SrsTemplateTarget_get_include_dir = $(WORKDIR)/SrsTemplatePartTarget/$(firstword $(subst /, ,$(1)))
161 gb_SrsTemplateTarget_get_target = $(WORKDIR)/SrsTemplateTarget/$(1)
162 gb_ThesaurusIndexTarget_get_target = $(WORKDIR)/ThesaurusIndexTarget/$(basename $(1)).idx
163 gb_UI_get_target = $(WORKDIR)/UI/$(1).done
164 gb_UILocalizeTarget_get_target = $(WORKDIR)/UILocalizeTarget/$(1).done
165 gb_UILocalizeTarget_get_workdir = $(WORKDIR)/UILocalizeTarget/$(1)
166 gb_UnoApiTarget_get_external_headers_target = $(WORKDIR)/UnoApiTarget/$(1).external
167 gb_UnoApiTarget_get_headers_target = $(WORKDIR)/UnoApiTarget/$(1).headers
168 gb_UnoApiTarget_get_target = $(WORKDIR)/UnoApiTarget/$(1).rdb
169 gb_UnoApiHeadersTarget_get_bootstrap_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),bootstrap)
170 gb_UnoApiHeadersTarget_get_comprehensive_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),comprehensive)
171 gb_UnoApiHeadersTarget_get_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),normal)
172 gb_UnoApiHeadersTarget_get_real_bootstrap_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/bootstrap
173 gb_UnoApiHeadersTarget_get_real_comprehensive_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/comprehensive
174 gb_UnoApiHeadersTarget_get_real_dir = $(WORKDIR)/UnoApiHeadersTarget/$(1)/normal
175 gb_UnoApiHeadersTarget_get_real_bootstrap_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/bootstrap.done
176 gb_UnoApiHeadersTarget_get_real_comprehensive_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/comprehensive.done
177 gb_UnoApiHeadersTarget_get_real_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/normal.done
178 gb_UnoApiHeadersTarget_get_bootstrap_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),bootstrap).done
179 gb_UnoApiHeadersTarget_get_comprehensive_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),comprehensive).done
180 gb_UnoApiHeadersTarget_get_target = $(WORKDIR)/UnoApiHeadersTarget/$(1)/$(call gb_UnoApiHeadersTarget_select_variant,$(1),normal).done
181 gb_UnoApiPartTarget_get_target = $(WORKDIR)/UnoApiPartTarget/$(1)
182 gb_UnpackedTarball_get_dir = $(WORKDIR)/UnpackedTarball/$(1)
183 gb_UnpackedTarball_get_pristine_dir = $(WORKDIR)/UnpackedTarball/$(1).org
184 gb_UnpackedTarball_get_final_target = $(WORKDIR)/UnpackedTarball/$(1).update
185 # NOTE: the .done target is hardcoded in solenv/bin/concat-deps.c !
186 gb_UnpackedTarball_get_target = $(WORKDIR)/UnpackedTarball/$(1).done
187 gb_UnpackedTarball_get_preparation_target = $(WORKDIR)/UnpackedTarball/$(1).prepare
188 gb_UnpackedTarget_get_target = $(WORKDIR)/UnpackedTarget/$(1)
189 gb_WinResTarget_get_target = $(WORKDIR)/WinResTarget/$(1)$(gb_WinResTarget_POSTFIX)
190 # workdir targets: $(1) is prefix/path
191 gb_Configuration_get_target = $(WORKDIR)/Configuration/$(1).done
192 gb_YaccTarget_get_grammar_target = $(WORKDIR)/YaccTarget/$(1).cxx
193 gb_YaccTarget_get_header_target = $(WORKDIR)/YaccTarget/$(1).hxx
194 gb_YaccTarget_get_target = $(WORKDIR)/YaccTarget/$(1).done
196 gb_LexTarget_get_scanner_target = $(WORKDIR)/LexTarget/$(1).cxx
197 gb_LexTarget_get_target = $(WORKDIR)/LexTarget/$(1).done
199 gb_XcsTarget_get_target = $(WORKDIR)/XcsTarget/$(1)
200 gb_XcuDataTarget_get_target = $(WORKDIR)/XcuDataTarget/$(1)
201 gb_XcuLangpackTarget_get_target = $(WORKDIR)/XcuLangpackTarget/$(1)
202 gb_XcuModuleTarget_get_target = $(WORKDIR)/XcuModuleTarget/$(1)
203 gb_XcuMergeTarget_get_target = $(WORKDIR)/XcuMergeTarget/$(1)
204 gb_XcuResTarget_get_target = $(WORKDIR)/XcuResTarget/$(1)
205 gb_Zip_get_target = $(WORKDIR)/Zip/$(1).zip
206 gb_Zip_get_final_target = $(WORKDIR)/Zip/$(1).done
208 gb_Library__get_final_target = $(WORKDIR)/Dummy/$(1)
210 define gb_Library_get_external_headers_target
211 $(patsubst $(1):%,$(WORKDIR)/ExternalHeaders/Library/%,$(filter $(1):%,$(gb_Library_FILENAMES)))
212 endef
214 define gb_Library_get_headers_target
215 $(patsubst $(1):%,$(WORKDIR)/Headers/Library/%,$(filter $(1):%,$(gb_Library_FILENAMES)))
216 endef
218 define gb_StaticLibrary_get_external_headers_target
219 $(patsubst $(1):%,$(WORKDIR)/ExternalHeaders/StaticLibrary/%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES)))
220 endef
222 define gb_StaticLibrary_get_headers_target
223 $(patsubst $(1):%,$(WORKDIR)/Headers/StaticLibrary/%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES)))
224 endef
226 $(eval $(call gb_Helper_make_clean_targets,\
227 AllLangResTarget \
228 AllLangZip \
229 CliAssembly \
230 CliAssemblyTarget \
231 CliConfigTarget \
232 CliLibraryTarget \
233 CliNativeLibraryTarget \
234 CliUnoApiTarget \
235 ComponentTarget \
236 ExternalPackage \
237 ExtensionTarget \
238 InstallModule \
239 InstallModuleTarget \
240 InstallScriptTarget \
241 JavaClassSet \
242 Jar \
243 JunitTest \
244 LinkTarget \
245 Module \
246 PackagePart \
247 Package \
248 Pagein \
249 Pyuno \
250 Rdb \
251 ResTarget \
252 ScpConvertTarget \
253 ScpMergeTarget \
254 ScpPreprocessTarget \
255 ScpTarget \
256 ScpTemplateTarget \
257 SdiTarget \
258 SrsTarget \
259 SrsTemplateTarget \
260 ThesaurusIndexTarget \
261 CppunitTest \
262 CppunitTestFakeExecutable \
263 CustomTarget \
264 ExternalProject \
265 UI \
266 UILocalizeTarget \
267 UnoApiHeadersTarget \
268 UnoApiTarget \
269 UnpackedTarball \
270 UnpackedTarget \
271 WinResTarget \
272 YaccTarget \
273 LexTarget \
274 Zip \
275 XcsTarget \
276 XcuDataTarget \
277 XcuModuleTarget \
278 XcuLangpackTarget \
279 XcuMergeTarget \
280 XcuResTarget \
281 Configuration \
284 $(eval $(call gb_Helper_make_outdir_clean_targets,\
285 CliLibrary \
286 CliNativeLibrary \
287 CliUnoApi \
288 Dictionary \
289 Executable \
290 Extension \
291 InstallScript \
292 InternalUnoApi \
293 Library \
294 StaticLibrary \
295 UnoApi \
296 UnoApiMerge \
299 $(eval $(call gb_Helper_make_dep_targets,\
300 CObject \
301 CxxObject \
302 ObjCObject \
303 ObjCxxObject \
304 AsmObject \
305 GenCObject \
306 GenCxxObject \
307 LinkTarget \
308 SdiTarget \
309 SrsPartTarget \
310 SrsTarget \
311 UnoApiTarget \
312 UnoApiPartTarget \
315 # other getters
317 define gb_Library_get_layer
318 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_LAYER)))
319 endef
321 define gb_Executable_get_layer
322 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_LAYER)))
323 endef
325 define gb_Library_get_filename
326 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_FILENAMES)))
327 endef
329 define gb_StaticLibrary_get_filename
330 $(patsubst $(1):%,%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES)))
331 endef
333 gb_Executable_get_linktargetname = Executable/$(1)$(gb_Executable_EXT)
334 gb_Library_get_linktargetname = Library/$(call gb_Library_get_filename,$(1))
335 gb_StaticLibrary_get_linktargetname = StaticLibrary/$(call gb_StaticLibrary_get_filename,$(1))
337 # static members declared here because they are used globally
339 gb_Executable_BINDIR = $(WORKDIR)/LinkTarget/Executable
340 gb_Library_OUTDIRLOCATION = $(OUTDIR)/lib
341 gb_Library_DLLDIR = $(WORKDIR)/LinkTarget/Library
342 gb_CppunitTest_DLLDIR = $(WORKDIR)/LinkTarget/CppunitTest
343 gb_StaticLibrary_OUTDIRLOCATION = $(OUTDIR)/lib
345 # static variables declared here because they are used globally
347 gb_POLOCATION := $(SRCDIR)/translations/source
348 gb_EXTERNAL_HEADERS_DIR := $(OUTDIR)/inc/external
350 # vim: set noet sw=4: