Fix linking on Windows
[LibreOffice.git] / rsc / Executable_rsc.mk
blob1fcb2b498a1171502d902c0f76b6883dab479962
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 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_Executable_Executable,rsc))
31 $(eval $(call gb_Executable_add_precompiled_header,rsc,$(SRCDIR)/rsc/inc/pch/precompiled_rsc))
33 $(eval $(call gb_Executable_set_include,rsc,\
34 $$(INCLUDE) \
35 -I$(SRCDIR)/rsc/inc \
36 -I$(SRCDIR)/rsc/inc/pch \
37 -I$(WORKDIR)/YaccTarget/rsc/source/parser \
40 $(eval $(call gb_Executable_add_api,rsc,\
41 udkapi \
42 offapi \
45 $(eval $(call gb_Executable_add_defs,rsc,\
46 -DSOLAR \
49 $(eval $(call gb_Executable_add_linked_libs,rsc,\
50 i18nisolang1 \
51 comphelper \
52 sal \
53 tl \
54 $(gb_STDLIBS) \
57 $(eval $(call gb_Executable_add_grammars,rsc,\
58 rsc/source/parser/rscyacc \
61 $(WORKDIR)/GenCxxObject/YaccTarget/rsc/source/parser/rscyacc.o: T_CXXFLAGS := $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_LinkTarget_CXXFLAGS) $(CXXFLAGS)
63 $(eval $(call gb_Executable_add_exception_objects,rsc,\
64 rsc/source/parser/erscerr \
65 rsc/source/parser/rscdb \
66 rsc/source/parser/rscibas \
67 rsc/source/parser/rscicpx \
68 rsc/source/parser/rscinit \
69 rsc/source/parser/rsckey \
70 rsc/source/parser/rsclex \
71 rsc/source/parser/rscpar \
72 rsc/source/prj/gui \
73 rsc/source/prj/start \
74 rsc/source/res/rscall \
75 rsc/source/res/rscarray \
76 rsc/source/res/rscclass \
77 rsc/source/res/rscclobj \
78 rsc/source/res/rscconst \
79 rsc/source/res/rsccont \
80 rsc/source/res/rscflag \
81 rsc/source/res/rscmgr \
82 rsc/source/res/rscrange \
83 rsc/source/res/rscstr \
84 rsc/source/res/rsctop \
85 rsc/source/rsc/rsc \
86 rsc/source/tools/rscchar \
87 rsc/source/tools/rscdef \
88 rsc/source/tools/rschash \
89 rsc/source/tools/rsctools \
90 rsc/source/tools/rsctree \
93 $(eval $(call gb_Executable_add_cobjects,rsc,\
94 rsc/source/rscpp/cpp1 \
95 rsc/source/rscpp/cpp2 \
96 rsc/source/rscpp/cpp3 \
97 rsc/source/rscpp/cpp4 \
98 rsc/source/rscpp/cpp5 \
99 rsc/source/rscpp/cpp6 \
102 ifeq ($(GUI),UNX)
103 $(eval $(call gb_Executable_add_defs,rsc,\
104 -Dunix \
106 endif
108 # vim: set noet sw=4 ts=4: