xref: /aoo42x/main/automation/Library_sts.mk (revision e10cbedd)
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,sts))
25
26$(eval $(call gb_Library_add_precompiled_header,sts,$(SRCDIR)/automation/inc/pch/precompiled_automation))
27
28$(eval $(call gb_Library_add_package_headers,sts,automation_inc))
29
30$(eval $(call gb_Library_set_include,sts,\
31        $$(INCLUDE) \
32	-I$(SRCDIR)/automation/inc \
33	-I$(SRCDIR)/automation/inc/pch \
34	-I$(SRCDIR)/automation/source/inc \
35))
36
37$(eval $(call gb_Library_add_defs,sts,\
38	-DAUTOMATION_DLLIMPLEMENTATION \
39))
40
41$(eval $(call gb_Library_add_api,sts,\
42	offapi \
43	udkapi \
44))
45
46$(eval $(call gb_Library_add_linked_libs,sts,\
47	comphelper \
48	cppu \
49	cppuhelper \
50	sal \
51	sb \
52	sot \
53	svl \
54	svt \
55	tl \
56	vcl \
57	utl \
58	vos3 \
59	$(gb_STDLIBS) \
60))
61
62ifeq ($(GUI),WNT)
63$(eval $(call gb_Library_add_linked_libs,sts,\
64	advapi32 \
65	gdi32 \
66))
67endif
68
69$(eval $(call gb_Library_add_noexception_objects,sts,\
70	automation/source/communi/communi \
71	automation/source/server/recorder \
72	automation/source/server/svcommstream \
73	automation/source/server/cmdbasestream \
74	automation/source/server/scmdstrm \
75	automation/source/server/sta_list \
76	automation/source/server/editwin \
77	automation/source/server/retstrm \
78	automation/source/server/profiler \
79	automation/source/simplecm/tcpio \
80	automation/source/simplecm/packethandler \
81	automation/source/simplecm/simplecm \
82))
83
84ifeq ($(OS),SOLARIS)
85$(eval $(call gb_Library_add_noexception_objects,sts,\
86	automation/source/server/prof_usl \
87))
88else
89$(eval $(call gb_Library_add_noexception_objects,sts,\
90	automation/source/server/prof_nul \
91))
92endif
93
94$(eval $(call gb_Library_add_exception_objects,sts,\
95	automation/source/server/XMLParser \
96	automation/source/server/server \
97	automation/source/server/statemnt \
98))
99
100$(eval $(call gb_LinkTarget_set_cxx_optimization, \
101	automation/source/server/statement, $(gb_COMPILERNOOPTFLAGS) \
102))
103
104# vim: set noet sw=4 ts=4:
105