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
14 # Major Contributor(s):
15 # Copyright (C) 2011 Red Hat, Inc., David Tardon <dtardon@redhat.com>
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 ifeq ($(OS_FOR_BUILD
),WNT
)
29 sofficebin
:= soffice_bin
31 sofficebin
:= soffice.bin
34 $(eval
$(call gb_Executable_Executable
,$(sofficebin
)))
36 $(eval
$(call gb_Executable_set_targettype_gui
,$(sofficebin
),YES
))
38 $(eval
$(call gb_Executable_set_include
,$(sofficebin
),\
40 -I
$(SRCDIR
)/desktop
/source
/inc \
43 $(eval
$(call gb_Executable_add_linked_libs
,$(sofficebin
),\
48 $(eval
$(call gb_Executable_add_cobjects
,$(sofficebin
),\
49 desktop
/source
/app
/main \
54 $(eval
$(call gb_Executable_add_linked_static_libs
,$(sofficebin
),\
60 $(eval
$(call gb_Executable_add_ldflags
,$(sofficebin
),\
66 $(eval
$(call gb_Executable_add_noexception_objects
,$(sofficebin
),\
67 desktop
/win32
/source
/extendloaderenvironment \
70 $(call gb_Module_get_target
,desktop
) : $(OUTDIR
)/bin
/soffice.bin
72 $(OUTDIR
)/bin
/soffice.bin
: $(call gb_Executable_get_target
,$(sofficebin
))
73 $(call gb_Executable_get_clean_target
,$(sofficebin
)) : $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin
74 $(OUTDIR
)/bin
/soffice.bin
: $(call gb_LinkTarget_get_target
,$(call gb_Executable_get_linktargetname
,$(sofficebin
)))
75 $(call gb_Deliver_deliver
,$<,$@
)
77 .PHONY
: $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin
78 $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin
:
79 rm -f
$(OUTDIR
)/bin
/soffice.bin
82 $(call gb_Module_get_target
,desktop
) : $(OUTDIR
)/bin
/soffice.bin.manifest
84 $(OUTDIR
)/bin
/soffice.bin.manifest
: $(call gb_Executable_get_target
,$(sofficebin
))
85 $(call gb_Executable_get_clean_target
,$(sofficebin
)) : $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin.manifest
86 $(OUTDIR
)/bin
/soffice.bin.manifest
: $(call gb_LinkTarget_get_target
,$(call gb_Executable_get_linktargetname
,$(sofficebin
)))
87 $(call gb_Deliver_deliver
,$<.manifest
,$@
)
89 .PHONY
: $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin.manifest
90 $(WORKDIR
)/Clean
/OutDir
/bin
/soffice.bin.manifest
:
91 rm -f
$(OUTDIR
)/bin
/soffice.bin.manifest
99 $(eval
$(call gb_Executable_set_ldflags
,\
100 $(filter-out -bind_at_load
,$$(LDFLAGS
)) \
105 $(eval
$(call gb_Executable_add_nativeres
,$(sofficebin
),sofficebin
/src
))
107 # vim: set ts=4 sw=4 et: