xref: /aoo42x/main/basic/Library_sb.mk (revision 7fef15a0)
1###############################################################
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20###############################################################
21
22
23
24$(eval $(call gb_Library_Library,sb))
25
26$(eval $(call gb_Library_add_package_headers,sb,basic_inc))
27
28$(eval $(call gb_Library_add_precompiled_headers,sb,$(SRCDIR)/basic/inc/pch/precompiled_basic))
29
30$(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
31
32$(eval $(call gb_Library_add_api,sb,\
33	offapi \
34	oovbaapi \
35	udkapi \
36))
37
38$(eval $(call gb_Library_add_defs,sb,\
39        -DBASIC_DLLIMPLEMENTATION \
40))
41
42$(eval $(call gb_Library_set_include,sb,\
43	-I$(SRCDIR)/basic/inc \
44	-I$(SRCDIR)/basic/inc/pch \
45	-I$(SRCDIR)/basic/source/inc \
46	$$(INCLUDE) \
47))
48
49$(eval $(call gb_Library_add_linked_libs,sb,\
50        comphelper \
51        cppu \
52        cppuhelper \
53        sal \
54        salhelper \
55        sot \
56        svl \
57        svt \
58        tl \
59        vcl \
60        vos3 \
61        stl \
62        utl \
63        xcr \
64        $(gb_STDLIBS) \
65))
66
67ifeq ($(GUI),WNT)
68$(eval $(call gb_Library_add_linked_libs,sb,\
69	oleaut32 \
70	uwinapi \
71))
72endif
73
74$(eval $(call gb_Library_add_exception_objects,sb,\
75	basic/source/basmgr/basmgr \
76	basic/source/basmgr/basicmanagerrepository \
77	basic/source/basmgr/vbahelper \
78	basic/source/classes/sb \
79	basic/source/classes/sbxmod \
80	basic/source/classes/image \
81	basic/source/classes/sbintern \
82	basic/source/classes/sbunoobj \
83	basic/source/classes/propacc \
84	basic/source/classes/disas \
85	basic/source/classes/errobject \
86	basic/source/classes/eventatt \
87	basic/source/comp/codegen \
88	basic/source/comp/dim \
89	basic/source/comp/exprtree \
90	basic/source/comp/parser \
91	basic/source/comp/sbcomp \
92	basic/source/runtime/basrdll \
93	basic/source/runtime/comenumwrapper \
94	basic/source/runtime/inputbox \
95	basic/source/runtime/runtime \
96	basic/source/runtime/step0 \
97	basic/source/runtime/step1 \
98	basic/source/runtime/step2 \
99	basic/source/runtime/iosys \
100	basic/source/runtime/stdobj \
101	basic/source/runtime/stdobj1 \
102	basic/source/runtime/methods \
103	basic/source/runtime/methods1 \
104	basic/source/runtime/props \
105	basic/source/runtime/ddectrl \
106	basic/source/runtime/dllmgr \
107	basic/source/runtime/sbdiagnose \
108	basic/source/sbx/sbxarray \
109	basic/source/uno/namecont \
110	basic/source/uno/scriptcont \
111	basic/source/uno/dlgcont \
112	basic/source/uno/sbmodule \
113	basic/source/uno/sbservices \
114	basic/source/uno/modsizeexceeded \
115))
116
117$(eval $(call gb_Library_add_exception_objects,sb,\
118	basic/source/comp/buffer \
119	basic/source/comp/exprgen \
120	basic/source/comp/exprnode \
121	basic/source/comp/io \
122	basic/source/comp/loops \
123	basic/source/comp/scanner \
124	basic/source/comp/symtbl \
125	basic/source/comp/token \
126	basic/source/sbx/sbxbase \
127	basic/source/sbx/sbxres \
128	basic/source/sbx/sbxvalue \
129	basic/source/sbx/sbxvals \
130	basic/source/sbx/sbxvar \
131	basic/source/sbx/sbxobj \
132	basic/source/sbx/sbxcoll \
133	basic/source/sbx/sbxexec \
134	basic/source/sbx/sbxint \
135	basic/source/sbx/sbxlng \
136	basic/source/sbx/sbxsng \
137	basic/source/sbx/sbxmstrm \
138	basic/source/sbx/sbxdbl \
139	basic/source/sbx/sbxcurr \
140	basic/source/sbx/sbxdate \
141	basic/source/sbx/sbxstr \
142	basic/source/sbx/sbxbool \
143	basic/source/sbx/sbxchar \
144	basic/source/sbx/sbxbyte \
145	basic/source/sbx/sbxuint \
146	basic/source/sbx/sbxulng \
147	basic/source/sbx/sbxform \
148	basic/source/sbx/sbxscan \
149	basic/source/sbx/sbxdec \
150))
151
152
153ifeq ($(GUI)$(COM)$(CPU),WNTMSCI)
154$(eval $(call gb_Library_add_asmobjects,sb,\
155	basic/source/runtime/wnt \
156))
157else ifeq ($(GUI)$(COM)$(CPU),WNTGCCI)
158$(eval $(call gb_Library_add_asmobjects,sb,\
159	basic/source/runtime/wnt-mingw \
160))
161endif
162
163# vim: set noet sw=4 ts=4:
164