1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24# outdir target pattern 25 26gb_ComponentTarget_get_outdir_target = $(OUTDIR)/xml/component/$(1).component 27gb_Executable_get_target = $(OUTDIR)/bin/$(1)$(gb_Executable_EXT) 28gb_PackagePart_get_destinations = $(OUTDIR)/xml $(OUTDIR)/inc $(OUTDIR)/bin 29gb_PackagePart_get_target = $(OUTDIR)/$(1) 30gb_ResTarget_get_outdir_imagelist_target = $(OUTDIR)/res/img/$(1).ilst 31gb_ResTarget_get_outdir_target = $(OUTDIR)/bin/$(1).res 32 33define gb_Library_get_target 34$(patsubst $(1):%,$(gb_Library_OUTDIRLOCATION)/%,$(filter $(filter $(1),$(gb_Library_TARGETS)):%,$(gb_Library_FILENAMES))) 35endef 36 37define gb_StaticLibrary_get_target 38$(patsubst $(1):%,$(gb_StaticLibrary_OUTDIRLOCATION)/%,$(filter $(filter $(1),$(gb_StaticLibrary_TARGETS)):%,$(gb_StaticLibrary_FILENAMES))) 39endef 40 41 42# workdir target patterns 43 44gb_AllLangResTarget_get_target = $(WORKDIR)/AllLangRes/$(1) 45gb_CObject_get_target = $(WORKDIR)/CObject/$(1).o 46gb_ComponentTarget_get_target = $(WORKDIR)/ComponentTarget/$(1).component 47gb_CppunitTest_get_target = $(WORKDIR)/CppunitTest/$(1).test 48gb_CustomTarget_get_repo_target = $(WORKDIR)/CustomTarget/$(2)_$(1).done 49gb_CustomTarget_get_target = $(WORKDIR)/CustomTarget/$(1).done 50gb_CustomTarget_get_workdir = $(WORKDIR)/CustomTarget/$(1) 51gb_CxxObject_get_target = $(WORKDIR)/CxxObject/$(1).o 52gb_GenCxxObject_get_target = $(WORKDIR)/GenCxxObject/$(1).o 53gb_Executable_get_external_headers_target = $(WORKDIR)/ExternalHeaders/Executable/$(1) 54gb_Executable_get_headers_target = $(WORKDIR)/Headers/Executable/$(1) 55gb_JavaClassSet_get_classdir = $(WORKDIR)/JavaClassSet/$(1) 56gb_JavaClassSet_get_repo_target = $(WORKDIR)/JavaClassSet/$(2)/$(1).done 57gb_JavaClassSet_get_target = $(WORKDIR)/JavaClassSet/$(1)/done 58gb_JunitTest_get_classsetname = JunitTest/$(1) 59gb_JunitTest_get_target = $(WORKDIR)/JunitTest/$(1)/done 60gb_JunitTest_get_userdir = $(WORKDIR)/JunitTest/$(1)/user 61gb_LinkTarget_get_external_headers_target = $(WORKDIR)/ExternalHeaders/$(1) 62gb_LinkTarget_get_headers_target = $(WORKDIR)/Headers/$(1) 63gb_LinkTarget_get_target = $(WORKDIR)/LinkTarget/$(1) 64gb_Module_get_check_target = $(WORKDIR)/Module/check/$(1) 65gb_Module_get_subsequentcheck_target = $(WORKDIR)/Module/subsequentcheck/$(1) 66gb_Module_get_target = $(WORKDIR)/Module/$(1) 67gb_NoexPrecompiledHeader_get_dep_target = $(WORKDIR)/Dep/NoexPrecompiledHeader/$(gb_NoexPrecompiledHeader_DEBUGDIR)/$(1).hxx.pch.d 68gb_NoexPrecompiledHeader_get_target = $(WORKDIR)/NoexPrecompiledHeader/$(gb_NoexPrecompiledHeader_DEBUGDIR)/$(1).hxx.pch 69gb_ObjCxxObject_get_target = $(WORKDIR)/ObjCxxObject/$(1).o 70gb_Package_get_preparation_target = $(WORKDIR)/Package/prepared/$(1) 71gb_Package_get_target = $(WORKDIR)/Package/$(1) 72gb_PrecompiledHeader_get_dep_target = $(WORKDIR)/Dep/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.pch.d 73gb_PrecompiledHeader_get_target = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.pch 74gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst 75gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res 76gb_SdiTarget_get_target = $(WORKDIR)/SdiTarget/$(1) 77gb_SrsPartMergeTarget_get_target = $(WORKDIR)/SrsPartMergeTarget/$(1) 78gb_SrsPartTarget_get_target = $(WORKDIR)/SrsPartTarget/$(1) 79gb_SrsTarget_get_target = $(WORKDIR)/SrsTarget/$(1).srs 80gb_WinResTarget_get_target = $(WORKDIR)/WinResTarget/$(1)$(gb_WinResTarget_POSTFIX) 81 82define gb_Library_get_external_headers_target 83$(patsubst $(1):%,$(WORKDIR)/ExternalHeaders/Library/%,$(filter $(1):%,$(gb_Library_FILENAMES))) 84endef 85 86define gb_Library_get_headers_target 87$(patsubst $(1):%,$(WORKDIR)/Headers/Library/%,$(filter $(1):%,$(gb_Library_FILENAMES))) 88endef 89 90define gb_StaticLibrary_get_external_headers_target 91$(patsubst $(1):%,$(WORKDIR)/ExternalHeaders/StaticLibrary/%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES))) 92endef 93 94define gb_StaticLibrary_get_headers_target 95$(patsubst $(1):%,$(WORKDIR)/Headers/StaticLibrary/%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES))) 96endef 97 98$(eval $(call gb_Helper_make_clean_targets,\ 99 AllLangResTarget \ 100 ComponentTarget \ 101 JavaClassSet \ 102 JunitTest \ 103 LinkTarget \ 104 Module \ 105 WinResTarget \ 106 NoexPrecompiledHeader \ 107 PackagePart \ 108 PrecompiledHeader \ 109 ResTarget \ 110 SdiTarget \ 111 SrsTarget \ 112 CppunitTest \ 113 CustomTarget \ 114)) 115 116$(eval $(call gb_Helper_make_outdir_clean_targets,\ 117 Executable \ 118 Library \ 119 Package \ 120 StaticLibrary \ 121)) 122 123$(eval $(call gb_Helper_make_dep_targets,\ 124 CObject \ 125 CxxObject \ 126 ObjCxxObject \ 127 LinkTarget \ 128 SrsPartTarget \ 129 SrsTarget \ 130)) 131# needs to use same dep target because we use gb_CxxObject__command 132gb_GenCxxObject_get_dep_target = $(gb_CxxObject_get_dep_target) 133 134# other getters 135 136define gb_Library_get_layer 137$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_LAYER))) 138endef 139 140define gb_Executable_get_layer 141$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_LAYER))) 142endef 143 144define gb_Library_get_filename 145$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_FILENAMES))) 146endef 147 148define gb_StaticLibrary_get_filename 149$(patsubst $(1):%,%,$(filter $(1):%,$(gb_StaticLibrary_FILENAMES))) 150endef 151 152 153# static members declared here because they are used globally 154 155gb_Library_OUTDIRLOCATION = $(OUTDIR)/lib 156gb_Library_DLLDIR = $(WORKDIR)/LinkTarget/Library 157gb_CppunitTest_DLLDIR = $(WORKDIR)/LinkTarget/CppunitTest 158gb_StaticLibrary_OUTDIRLOCATION = $(OUTDIR)/lib 159 160# vim: set noet sw=4 ts=4: 161