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,emboleobj))
25
26$(eval $(call gb_Library_add_precompiled_header,emboleobj,$(SRCDIR)/embeddedobj/inc/pch/precompiled_embeddedobj))
27
28ifeq ($(OS),WNT)
29$(eval $(call gb_Library_set_componentfile,emboleobj,embeddedobj/source/msole/emboleobj.windows))
30else
31$(eval $(call gb_Library_set_componentfile,emboleobj,embeddedobj/source/msole/emboleobj))
32endif
33
34$(eval $(call gb_Library_set_include,emboleobj,\
35        $$(INCLUDE) \
36	-I$(SRCDIR)/embeddedobj/inc/pch \
37	-I$(SRCDIR)/embeddedobj/source/inc \
38))
39
40$(eval $(call gb_Library_add_api,emboleobj,\
41	offapi \
42	udkapi \
43))
44
45$(eval $(call gb_Library_add_linked_libs,emboleobj,\
46	comphelper \
47	cppu \
48	cppuhelper \
49	sal \
50	stl \
51	tl \
52	utl \
53	vos3 \
54	$(gb_STDLIBS) \
55))
56
57ifeq ($(OS),WNT)
58$(eval $(call gb_Library_add_linked_libs,emboleobj,\
59	gdi32 \
60	ole32 \
61	oleaut32 \
62	uuid \
63	user32 \
64))
65else ifeq ($(OS),OS2)
66$(eval $(call gb_Library_add_linked_libs,emboleobj,\
67))
68endif
69
70$(eval $(call gb_Library_add_exception_objects,emboleobj,\
71	embeddedobj/source/msole/closepreventer \
72	embeddedobj/source/msole/oleregister \
73	embeddedobj/source/msole/xolefactory \
74	embeddedobj/source/msole/olepersist \
75	embeddedobj/source/msole/oleembed \
76	embeddedobj/source/msole/olevisual \
77	embeddedobj/source/msole/olemisc \
78	embeddedobj/source/msole/ownview \
79))
80
81ifeq ($(OS),WNT)
82$(eval $(call gb_Library_add_exception_objects,emboleobj,\
83	embeddedobj/source/msole/graphconvert \
84	embeddedobj/source/msole/olecomponent \
85	embeddedobj/source/msole/olewrapclient \
86	embeddedobj/source/msole/xdialogcreator \
87	embeddedobj/source/msole/advisesink \
88))
89endif
90
91# vim: set noet sw=4 ts=4:
92