Bump for 4.0-11
[LibreOffice.git] / unoil / CustomTarget_climaker.mk
blob16db37e25e4599abac46f5b988b4a9fd1ea0b275
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # Major Contributor(s):
15 # Copyright (C) 2010 Red Hat, Inc., David Tardon <dtardon@redhat.com>
16 # (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 include $(SRCDIR)/unoil/climaker/version.txt
30 $(eval $(call gb_CustomTarget_CustomTarget,unoil/climaker))
32 unoil_CLIDIR := $(call gb_CustomTarget_get_workdir,unoil/climaker)
34 $(call gb_CustomTarget_get_target,unoil/climaker) : \
35 $(unoil_CLIDIR)/cli_oootypes.dll \
36 $(unoil_CLIDIR)/cli_oootypes.config \
37 $(unoil_CLIDIR)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
40 ifeq ($(ENABLE_MONO),YES)
41 ifneq ($(ENABLE_MONO_CLIMAKER),YES)
42 unoil_prebuilt_mono_dlls := YES
43 endif
44 endif
46 ifeq ($(unoil_prebuilt_mono_dlls),YES)
48 $(unoil_CLIDIR)/cli_oootypes.dll : $(OUTDIR)/inc/external/cli/cli_oootypes.dll
49 mkdir -p $(@D)
50 $(GNUCOPY) $? $@
52 $(unoil_CLIDIR)/cli_oootypes.config : $(OUTDIR)/inc/external/cli/cli_oootypes.config
53 mkdir -p $(@D)
54 $(GNUCOPY) $? $@
56 $(unoil_CLIDIR)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll : $(OUTDIR)/inc/external/cli/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
57 mkdir -p $(@D)
58 $(GNUCOPY) $< $@
60 else
62 $(unoil_CLIDIR)/cli_oootypes.dll : $(SRCDIR)/unoil/climaker/version.txt \
63 $(OUTDIR)/bin/offapi.rdb $(OUTDIR)/bin/udkapi.rdb \
64 $(OUTDIR)/bin/cliuno.snk $(OUTDIR)/bin/cli_uretypes.dll \
65 $(call gb_Executable_get_target_for_build,climaker) \
66 | $(unoil_CLIDIR)/.dir
67 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CLM,1)
68 $(call gb_Helper_abbreviate_dirs, \
69 $(call gb_Helper_execute,climaker \
70 $(if $(filter -s,$(MAKEFLAGS)),,--verbose) \
71 --out $@ \
72 --assembly-version $(CLI_OOOTYPES_NEW_VERSION) \
73 --assembly-company "LibreOffice" \
74 --assembly-description "This assembly contains metadata for the LibreOffice API." \
75 -X $(OUTDIR)/bin/udkapi.rdb \
76 -r $(OUTDIR)/bin/cli_uretypes.dll \
77 --keyfile $(OUTDIR)/bin/cliuno.snk \
78 $(OUTDIR)/bin/offapi.rdb) > /dev/null)
80 $(unoil_CLIDIR)/cli_oootypes.config : \
81 $(SRCDIR)/unoil/climaker/cli_oootypes_config \
82 $(SRCDIR)/unoil/climaker/version.txt | $(unoil_CLIDIR)/.dir
83 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,1)
84 $(call gb_Helper_abbreviate_dirs, \
85 perl $(SRCDIR)/solenv/bin/clipatchconfig.pl $^ $@)
87 $(unoil_CLIDIR)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll : \
88 $(unoil_CLIDIR)/cli_oootypes.config \
89 $(unoil_CLIDIR)/cli_oootypes.dll $(OUTDIR)/bin/cliuno.snk
90 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AL ,1)
91 # al in mono seems broken and doesn't allow -link with filenames containing path
92 $(GNUCOPY) $(unoil_CLIDIR)/cli_oootypes.config .
93 $(call gb_Helper_abbreviate_dirs, \
94 $(AL) -out:$@ \
95 -version:$(CLI_OOOTYPES_POLICY_VERSION) \
96 -keyfile:$(OUTDIR)/bin/cliuno.snk \
97 -link:cli_oootypes.config)
98 rm cli_oootypes.config
99 endif
101 # vim:set shiftwidth=4 tabstop=4 noexpandtab: