bump product version to 4.1.6.2
[LibreOffice.git] / solenv / gbuild / PrecompiledHeaders.mk
blob1dddeb815eb4adf2ed503d93b75f731afbfd3bfb
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 .
21 # PrecompiledHeader class
23 ifeq ($(gb_ENABLE_PCH),$(true))
25 # gb_PrecompiledHeader_get_enableflags defined by platform
26 ifneq ($(strip $(gb_DEBUGLEVEL)$(gb_SYMBOLS)),0)
27 gb_PrecompiledHeader_DEBUGDIR := debug
28 gb_NoexPrecompiledHeader_DEBUGDIR := debug
29 else
30 gb_PrecompiledHeader_DEBUGDIR := nodebug
31 gb_NoexPrecompiledHeader_DEBUGDIR := nodebug
32 endif
34 $(call gb_PrecompiledHeader_get_dep_target,%) :
35 $(call gb_Helper_abbreviate_dirs,\
36 mkdir -p $(dir $@) && \
37 echo "$(call gb_PrecompiledHeader_get_target,$*) : $(gb_Helper_PHONY)" > $@)
39 $(call gb_NoexPrecompiledHeader_get_dep_target,%) :
40 $(call gb_Helper_abbreviate_dirs,\
41 mkdir -p $(dir $@) && \
42 echo "$(call gb_NoexPrecompiledHeader_get_target,$*) : $(gb_Helper_PHONY)" > $@)
44 $(call gb_PrecompiledHeader_get_target,%) :
45 rm -f $@
46 $(call gb_PrecompiledHeader__command,$@,$*,$<,$(PCH_DEFS),$(PCH_CXXFLAGS) $(gb_PrecompiledHeader_EXCEPTIONFLAGS),$(INCLUDE))
48 $(call gb_NoexPrecompiledHeader_get_target,%) :
49 rm -f $@
50 $(call gb_NoexPrecompiledHeader__command,$@,$*,$<,$(PCH_DEFS),$(PCH_CXXFLAGS) $(gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS),$(INCLUDE))
52 .PHONY : $(call gb_PrecompiledHeader_get_clean_target,%) $(call gb_NoExPrecompiledHeader_get_clean_target,%)
53 $(call gb_PrecompiledHeader_get_clean_target,%) :
54 $(call gb_Output_announce,$*,$(false),PCH,1)
55 -$(call gb_Helper_abbreviate_dirs,\
56 rm -f $(call gb_PrecompiledHeader_get_target,$*) \
57 $(call gb_PrecompiledHeader_get_target,$*).obj \
58 $(call gb_PrecompiledHeader_get_target,$*).pdb \
59 $(call gb_PrecompiledHeader_get_timestamp,$*) \
60 $(call gb_PrecompiledHeader_get_dep_target,$*))
63 $(call gb_NoexPrecompiledHeader_get_clean_target,%) :
64 $(call gb_Output_announce,$*,$(false),PCH,1)
65 -$(call gb_Helper_abbreviate_dirs,\
66 rm -f $(call gb_NoexPrecompiledHeader_get_target,$*) \
67 $(call gb_NoexPrecompiledHeader_get_target,$*).obj \
68 $(call gb_NoexPrecompiledHeader_get_target,$*).pdb \
69 $(call gb_NoexPrecompiledHeader_get_timestamp,$*) \
70 $(call gb_NoexPrecompiledHeader_get_dep_target,$*))
71 endif
73 $(call gb_PrecompiledHeader_get_timestamp,%) :
74 mkdir -p $(dir $@) && touch $@
76 $(call gb_NoexPrecompiledHeader_get_timestamp,%) :
77 mkdir -p $(dir $@) && touch $@
79 # vim: set noet sw=4: