xref: /trunk/main/fpicker/Library_fop.mk (revision 6ecc4615)
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,fop))
25
26$(eval $(call gb_Library_set_componentfile,fop,fpicker/util/fop))
27
28$(eval $(call gb_Library_set_include,fop,\
29        $$(INCLUDE) \
30	-I$(SRCDIR)/fpicker/inc/pch \
31))
32
33$(eval $(call gb_Library_add_api,fop,\
34	offapi \
35	udkapi \
36))
37
38$(eval $(call gb_Library_add_linked_libs,fop,\
39	comphelper \
40	cppu \
41	cppuhelper \
42	sal \
43	stl \
44	tl \
45	vcl \
46	$(gb_STDLIBS) \
47))
48
49$(eval $(call gb_Library_add_linked_libs,fop,\
50	advapi32 \
51	gdi32 \
52	ole32 \
53	oleaut32 \
54	shell32 \
55	user32 \
56	uwinapi \
57))
58
59$(eval $(call gb_Library_add_exception_objects,fop,\
60	fpicker/source/win32/folderpicker/Fopentry \
61	fpicker/source/win32/folderpicker/FolderPicker \
62	fpicker/source/win32/folderpicker/WinFOPImpl \
63	fpicker/source/win32/folderpicker/MtaFop \
64))
65
66ifeq ($(COM),GCC)
67$(eval $(call gb_Library_add_cxxobjects,fop,\
68	fpicker/source/win32/misc/WinImplHelper \
69	fpicker/source/win32/misc/AutoBuffer \
70	fpicker/source/win32/misc/resourceprovider \
71	, -fexceptions -fno-enforce-eh-specs -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
72))
73else
74$(eval $(call gb_Library_add_cxxobjects,fop,\
75	fpicker/source/win32/misc/WinImplHelper \
76	fpicker/source/win32/misc/AutoBuffer \
77	fpicker/source/win32/misc/resourceprovider \
78	, -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
79))
80endif
81
82# vim: set noet sw=4 ts=4:
83