Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / basic / Library_sb.mk
blob16bb39efe0b4c66c89d3d7ca6c639a0d75dd92dc
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_use_package,sb,basic_inc))
24 $(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
26 $(eval $(call gb_Library_set_include,sb,\
27 $$(INCLUDE) \
28 -I$(SRCDIR)/basic/inc \
29 -I$(SRCDIR)/basic/source/inc \
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 i18nisolang1 \
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 \
101 basic/source/runtime/step0 \
102 basic/source/runtime/step1 \
103 basic/source/runtime/step2 \
106 endif
108 $(eval $(call gb_Library_add_exception_objects,sb,\
109 basic/source/runtime/methods \
110 basic/source/runtime/methods1 \
111 basic/source/sbx/sbxarray \
112 basic/source/sbx/sbxbool \
113 basic/source/sbx/sbxbyte \
114 basic/source/sbx/sbxchar \
115 basic/source/sbx/sbxcoll \
116 basic/source/sbx/sbxcurr \
117 basic/source/sbx/sbxbase \
118 basic/source/sbx/sbxdate \
119 basic/source/sbx/sbxdbl \
120 basic/source/sbx/sbxdec \
121 basic/source/sbx/sbxexec \
122 basic/source/sbx/sbxform \
123 basic/source/sbx/sbxint \
124 basic/source/sbx/sbxlng \
125 basic/source/sbx/sbxobj \
126 basic/source/sbx/sbxres \
127 basic/source/sbx/sbxscan \
128 basic/source/sbx/sbxsng \
129 basic/source/sbx/sbxstr \
130 basic/source/sbx/sbxuint \
131 basic/source/sbx/sbxulng \
132 basic/source/sbx/sbxvalue \
133 basic/source/sbx/sbxvar \
136 # Uncomment the following line if DBG_TRACE_PROFILING is active in source/inc/sbtrace.hxx
137 # $(eval $(call gb_Library_use_libraries,sb,\
138 canvastools \
141 ifeq ($(GUI),WNT)
142 $(eval $(call gb_Library_use_system_win32_libs,sb,\
143 oleaut32 \
145 endif
147 ifeq ($(GUI)$(CPUNAME),WNTINTEL)
148 $(eval $(call gb_Library_add_exception_objects,sb,\
149 basic/source/runtime/dllmgr-x86 \
151 else
152 ifeq ($(GUI)$(CPUNAME),WNTX86_64)
153 $(eval $(call gb_Library_add_exception_objects,sb,\
154 basic/source/runtime/dllmgr-x64 \
156 else
157 $(eval $(call gb_Library_add_exception_objects,sb,\
158 basic/source/runtime/dllmgr-none \
160 endif
161 endif
162 ifeq ($(GUI)$(COM)$(CPUNAME),WNTMSCINTEL)
163 $(eval $(call gb_Library_add_asmobjects,sb,\
164 basic/source/runtime/wnt-x86 \
166 endif
167 ifeq ($(GUI)$(COM)$(CPUNAME),WNTGCCINTEL)
168 $(eval $(call gb_Library_add_asmobjects,sb,\
169 basic/source/runtime/wnt-mingw \
171 endif
173 # Runtime dependency for unit-tests
174 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sb)) :| \
175 $(call gb_AllLangResTarget_get_target,sb)
177 # vim: set noet sw=4 ts=4: