update credits
[LibreOffice.git] / basic / Library_sb.mk
blobc89214389b8bae68df74fde6998eaef3c4ba3e05
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 .
20 $(eval $(call gb_Library_Library,sb))
22 $(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
24 $(eval $(call gb_Library_set_include,sb,\
25 $$(INCLUDE) \
26 -I$(SRCDIR)/basic/inc \
27 -I$(SRCDIR)/basic/source/inc \
30 $(eval $(call gb_Library_use_external,sb,boost_headers))
32 $(eval $(call gb_Library_use_sdk_api,sb))
33 $(eval $(call gb_Library_use_api,sb,oovbaapi))
35 $(eval $(call gb_Library_add_defs,sb,\
36 -DBASIC_DLLIMPLEMENTATION \
39 $(eval $(call gb_Library_use_libraries,sb,\
40 comphelper \
41 cppu \
42 cppuhelper \
43 sal \
44 salhelper \
45 i18nlangtag \
46 sot \
47 svl \
48 svt \
49 tl \
50 utl \
51 vcl \
52 xmlscript \
53 $(gb_UWINAPI) \
56 ifneq ($(DISABLE_SCRIPTING),TRUE)
58 $(eval $(call gb_Library_add_exception_objects,sb,\
59 basic/source/basmgr/basicmanagerrepository \
60 basic/source/basmgr/basmgr \
61 basic/source/basmgr/vbahelper \
62 basic/source/classes/errobject \
63 basic/source/classes/eventatt \
64 basic/source/classes/global \
65 basic/source/classes/image \
66 basic/source/classes/propacc \
67 basic/source/classes/sb \
68 basic/source/classes/sbintern \
69 basic/source/classes/sbunoobj \
70 basic/source/classes/sbxmod \
71 basic/source/comp/basiccharclass \
72 basic/source/comp/buffer \
73 basic/source/comp/codegen \
74 basic/source/comp/dim \
75 basic/source/comp/exprtree \
76 basic/source/comp/exprgen \
77 basic/source/comp/exprnode \
78 basic/source/comp/io \
79 basic/source/comp/loops \
80 basic/source/comp/parser \
81 basic/source/comp/sbcomp \
82 basic/source/comp/scanner \
83 basic/source/comp/symtbl \
84 basic/source/comp/token \
85 basic/source/uno/dlgcont \
86 basic/source/uno/modsizeexceeded \
87 basic/source/uno/namecont \
88 basic/source/uno/sbmodule \
89 basic/source/uno/sbservices \
90 basic/source/uno/scriptcont \
91 basic/source/runtime/basrdll \
92 basic/source/runtime/comenumwrapper \
93 basic/source/runtime/ddectrl \
94 basic/source/runtime/inputbox \
95 basic/source/runtime/iosys \
96 basic/source/runtime/props \
97 basic/source/runtime/runtime \
98 basic/source/runtime/sbdiagnose \
99 basic/source/runtime/stdobj \
100 basic/source/runtime/stdobj1 \
103 endif
105 $(eval $(call gb_Library_add_exception_objects,sb,\
106 basic/source/runtime/methods \
107 basic/source/runtime/methods1 \
108 basic/source/sbx/sbxarray \
109 basic/source/sbx/sbxbool \
110 basic/source/sbx/sbxbyte \
111 basic/source/sbx/sbxchar \
112 basic/source/sbx/sbxcoll \
113 basic/source/sbx/sbxcurr \
114 basic/source/sbx/sbxbase \
115 basic/source/sbx/sbxdate \
116 basic/source/sbx/sbxdbl \
117 basic/source/sbx/sbxdec \
118 basic/source/sbx/sbxexec \
119 basic/source/sbx/sbxform \
120 basic/source/sbx/sbxint \
121 basic/source/sbx/sbxlng \
122 basic/source/sbx/sbxobj \
123 basic/source/sbx/sbxres \
124 basic/source/sbx/sbxscan \
125 basic/source/sbx/sbxsng \
126 basic/source/sbx/sbxstr \
127 basic/source/sbx/sbxuint \
128 basic/source/sbx/sbxulng \
129 basic/source/sbx/sbxvalue \
130 basic/source/sbx/sbxvar \
133 # Uncomment the following line if DBG_TRACE_PROFILING is active in source/inc/sbtrace.hxx
134 # $(eval $(call gb_Library_use_libraries,sb,\
135 canvastools \
138 ifeq ($(OS),WNT)
139 $(eval $(call gb_Library_use_system_win32_libs,sb,\
140 oleaut32 \
142 endif
144 ifeq ($(OS)$(CPUNAME),WNTINTEL)
145 $(eval $(call gb_Library_add_exception_objects,sb,\
146 basic/source/runtime/dllmgr-x86 \
148 else
149 ifeq ($(OS)$(CPUNAME),WNTX86_64)
150 $(eval $(call gb_Library_add_exception_objects,sb,\
151 basic/source/runtime/dllmgr-x64 \
153 else
154 $(eval $(call gb_Library_add_exception_objects,sb,\
155 basic/source/runtime/dllmgr-none \
157 endif
158 endif
159 ifeq ($(OS)$(COM)$(CPUNAME),WNTMSCINTEL)
160 $(eval $(call gb_Library_add_asmobjects,sb,\
161 basic/source/runtime/wnt-x86 \
163 endif
164 ifeq ($(OS)$(COM)$(CPUNAME),WNTGCCINTEL)
165 $(eval $(call gb_Library_add_asmobjects,sb,\
166 basic/source/runtime/wnt-mingw \
168 endif
170 # Runtime dependency for unit-tests
171 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sb)) :| \
172 $(call gb_AllLangResTarget_get_target,sb)
174 # vim: set noet sw=4 ts=4: