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
,\
26 -I
$(SRCDIR
)/basic
/inc \
27 -I
$(SRCDIR
)/basic
/source
/inc \
30 $(eval
$(call gb_Library_set_precompiled_header
,sb
,$(SRCDIR
)/basic
/inc
/pch
/precompiled_sb
))
32 $(eval
$(call gb_Library_use_external
,sb
,boost_headers
))
34 $(eval
$(call gb_Library_use_custom_headers
,sb
,\
38 $(eval
$(call gb_Library_use_sdk_api
,sb
))
39 $(eval
$(call gb_Library_use_api
,sb
,oovbaapi
))
41 $(eval
$(call gb_Library_add_defs
,sb
,\
42 -DBASIC_DLLIMPLEMENTATION \
45 $(eval
$(call gb_Library_use_libraries
,sb
,\
61 ifneq ($(filter SCRIPTING
,$(BUILD_TYPE
)),)
63 $(eval
$(call gb_Library_add_exception_objects
,sb
,\
64 basic
/source
/basmgr
/basicmanagerrepository \
65 basic
/source
/basmgr
/basmgr \
66 basic
/source
/basmgr
/vbahelper \
67 basic
/source
/classes
/codecompletecache \
68 basic
/source
/classes
/errobject \
69 basic
/source
/classes
/eventatt \
70 basic
/source
/classes
/global \
71 basic
/source
/classes
/image \
72 basic
/source
/classes
/propacc \
73 basic
/source
/classes
/sb \
74 basic
/source
/classes
/sbintern \
75 basic
/source
/classes
/sbunoobj \
76 basic
/source
/classes
/sbxmod \
77 basic
/source
/comp
/basiccharclass \
78 basic
/source
/comp
/buffer \
79 basic
/source
/comp
/codegen \
80 basic
/source
/comp
/dim \
81 basic
/source
/comp
/exprtree \
82 basic
/source
/comp
/exprgen \
83 basic
/source
/comp
/exprnode \
84 basic
/source
/comp
/io \
85 basic
/source
/comp
/loops \
86 basic
/source
/comp
/parser \
87 basic
/source
/comp
/sbcomp \
88 basic
/source
/comp
/scanner \
89 basic
/source
/comp
/symtbl \
90 basic
/source
/comp
/token \
91 basic
/source
/uno
/dlgcont \
92 basic
/source
/uno
/modsizeexceeded \
93 basic
/source
/uno
/namecont \
94 basic
/source
/uno
/scriptcont \
95 basic
/source
/runtime
/comenumwrapper \
96 basic
/source
/runtime
/ddectrl \
97 basic
/source
/runtime
/inputbox \
98 basic
/source
/runtime
/iosys \
99 basic
/source
/runtime
/props \
100 basic
/source
/runtime
/runtime \
101 basic
/source
/runtime
/stdobj \
102 basic
/source
/runtime
/stdobj1 \
107 $(eval
$(call gb_Library_add_exception_objects
,sb
,\
108 basic
/source
/runtime
/basrdll \
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 \
137 $(eval
$(call gb_Library_use_system_win32_libs
,sb
,\
142 ifeq ($(OS
)$(CPUNAME
),WNTINTEL
)
143 $(eval
$(call gb_Library_add_exception_objects
,sb
,\
144 basic
/source
/runtime
/dllmgr-x86 \
146 $(eval
$(call gb_Library_add_asmobjects
,sb
,\
147 basic
/source
/runtime
/wnt-x86 \
150 ifeq ($(OS
)$(CPUNAME
),WNTX86_64
)
151 $(eval
$(call gb_Library_add_exception_objects
,sb
,\
152 basic
/source
/runtime
/dllmgr-x64 \
155 $(eval
$(call gb_Library_add_exception_objects
,sb
,\
156 basic
/source
/runtime
/dllmgr-none \
161 # Runtime dependency for unit-tests
162 $(eval
$(call gb_Library_use_restarget
,sb
,sb
))
164 # vim: set noet sw=4 ts=4: