Trying to fix packaging of SDK
[LibreOffice.git] / basic / Library_sb.mk
blob50608d4e05857d2473e8e98fbc6d727bcc4b58a0
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 # Copyright 2000, 2011 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
12 # OpenOffice.org is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License version 3
14 # only, as published by the Free Software Foundation.
16 # OpenOffice.org is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License version 3 for more details
20 # (a copy is included in the LICENSE file that accompanied this code).
22 # You should have received a copy of the GNU Lesser General Public License
23 # version 3 along with OpenOffice.org. If not, see
24 # <http://www.openoffice.org/license.html>
25 # for a copy of the LGPLv3 License.
27 #*************************************************************************
29 $(eval $(call gb_Library_Library,sb))
31 $(eval $(call gb_Library_add_package_headers,sb,basic_inc))
33 $(eval $(call gb_Library_add_precompiled_header,sb,$(SRCDIR)/basic/inc/pch/precompiled_basic))
35 $(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
37 $(eval $(call gb_Library_set_include,sb,\
38 $$(INCLUDE) \
39 -I$(realpath $(SRCDIR)/basic/inc) \
40 -I$(realpath $(SRCDIR)/basic/inc/pch) \
41 -I$(realpath $(SRCDIR)/basic/source/inc) \
44 $(eval $(call gb_Library_add_api,sb,\
45 udkapi \
46 offapi \
47 oovbaapi \
50 $(eval $(call gb_Library_add_defs,sb,\
51 -DBASIC_DLLIMPLEMENTATION \
54 $(eval $(call gb_Library_add_linked_libs,sb,\
55 comphelper \
56 cppu \
57 cppuhelper \
58 sal \
59 salhelper \
60 sot \
61 svl \
62 svt \
63 tl \
64 utl \
65 vcl \
66 xcr \
67 $(gb_STDLIBS) \
70 $(eval $(call gb_Library_add_exception_objects,sb,\
71 basic/source/basmgr/basicmanagerrepository \
72 basic/source/basmgr/basmgr \
73 basic/source/basmgr/vbahelper \
74 basic/source/classes/disas \
75 basic/source/classes/errobject \
76 basic/source/classes/eventatt \
77 basic/source/classes/image \
78 basic/source/classes/propacc \
79 basic/source/classes/sb \
80 basic/source/classes/sbintern \
81 basic/source/classes/sbunoobj \
82 basic/source/classes/sbxmod \
83 basic/source/comp/basiccharclass \
84 basic/source/comp/buffer \
85 basic/source/comp/codegen \
86 basic/source/comp/dim \
87 basic/source/comp/exprtree \
88 basic/source/comp/exprgen \
89 basic/source/comp/exprnode \
90 basic/source/comp/io \
91 basic/source/comp/loops \
92 basic/source/comp/parser \
93 basic/source/comp/sbcomp \
94 basic/source/comp/scanner \
95 basic/source/comp/symtbl \
96 basic/source/comp/token \
97 basic/source/uno/dlgcont \
98 basic/source/uno/modsizeexceeded \
99 basic/source/uno/namecont \
100 basic/source/uno/sbmodule \
101 basic/source/uno/sbservices \
102 basic/source/uno/scriptcont \
103 basic/source/runtime/basrdll \
104 basic/source/runtime/comenumwrapper \
105 basic/source/runtime/ddectrl \
106 basic/source/runtime/inputbox \
107 basic/source/runtime/iosys \
108 basic/source/runtime/methods \
109 basic/source/runtime/methods1 \
110 basic/source/runtime/props \
111 basic/source/runtime/runtime \
112 basic/source/runtime/sbdiagnose \
113 basic/source/runtime/stdobj \
114 basic/source/runtime/stdobj1 \
115 basic/source/runtime/step0 \
116 basic/source/runtime/step1 \
117 basic/source/runtime/step2 \
118 basic/source/sbx/sbxarray \
119 basic/source/sbx/sbxbase \
120 basic/source/sbx/sbxbool \
121 basic/source/sbx/sbxbyte \
122 basic/source/sbx/sbxchar \
123 basic/source/sbx/sbxcoll \
124 basic/source/sbx/sbxcurr \
125 basic/source/sbx/sbxdate \
126 basic/source/sbx/sbxdbl \
127 basic/source/sbx/sbxdec \
128 basic/source/sbx/sbxexec \
129 basic/source/sbx/sbxform \
130 basic/source/sbx/sbxint \
131 basic/source/sbx/sbxlng \
132 basic/source/sbx/sbxmstrm \
133 basic/source/sbx/sbxobj \
134 basic/source/sbx/sbxres \
135 basic/source/sbx/sbxscan \
136 basic/source/sbx/sbxsng \
137 basic/source/sbx/sbxstr \
138 basic/source/sbx/sbxuint \
139 basic/source/sbx/sbxulng \
140 basic/source/sbx/sbxvalue \
141 basic/source/sbx/sbxvar \
144 # Uncomment the following line if DBG_TRACE_PROFILING is active in source/inc/sbtrace.hxx
145 # $(eval $(call gb_Library_add_linked_libs,sb,\
146 canvastools \
149 ifeq ($(GUI),WNT)
150 $(eval $(call gb_Library_add_linked_libs,sb,\
151 uwinapi \
152 oleaut32 \
154 endif
156 ifeq ($(GUI)$(CPU),WNTI)
157 $(eval $(call gb_Library_add_exception_objects,sb,\
158 basic/source/runtime/dllmgr-x86 \
160 else
161 ifeq ($(GUI)$(CPU),WNTX)
162 $(eval $(call gb_Library_add_exception_objects,sb,\
163 basic/source/runtime/dllmgr-x64 \
165 else
166 $(eval $(call gb_Library_add_exception_objects,sb,\
167 basic/source/runtime/dllmgr-none \
169 endif
170 endif
171 ifeq ($(GUI)$(COM)$(CPU),WNTMSCI)
172 $(eval $(call gb_Library_add_asmobjects,sb,\
173 basic/source/runtime/wnt-x86 \
175 endif
176 ifeq ($(GUI)$(COM)$(CPU),WNTGCCI)
177 $(eval $(call gb_Library_add_asmobjects,sb,\
178 basic/source/runtime/wnt-mingw \
180 endif
182 # vim: set noet sw=4 ts=4: