xref: /trunk/main/fpicker/Library_fps.mk (revision 8d854f23)
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,fps))
25
26$(eval $(call gb_Library_set_componentfile,fps,fpicker/util/fps))
27
28$(eval $(call gb_Library_set_include,fps,\
29        $$(INCLUDE) \
30	-I$(SRCDIR)/fpicker/inc/pch \
31))
32
33$(eval $(call gb_Library_add_api,fps,\
34	offapi \
35	udkapi \
36))
37
38$(eval $(call gb_Library_add_linked_libs,fps,\
39	comphelper \
40	cppu \
41	cppuhelper \
42	sal \
43	tl \
44	vcl \
45	$(gb_STDLIBS) \
46))
47
48$(eval $(call gb_Library_add_linked_libs,fps,\
49	advapi32 \
50	comdlg32 \
51	gdi32 \
52	kernel32 \
53	ole32 \
54	oleaut32 \
55	shell32 \
56	uuid \
57	uwinapi \
58))
59
60$(eval $(call gb_Library_add_cxxobjects,fps,\
61	fpicker/source/win32/filepicker/FileOpenDlg \
62	fpicker/source/win32/filepicker/FPentry \
63	fpicker/source/win32/filepicker/FilePicker \
64	fpicker/source/win32/filepicker/WinFileOpenImpl \
65	fpicker/source/win32/filepicker/FilterContainer \
66	fpicker/source/win32/filepicker/controlaccess \
67	fpicker/source/win32/filepicker/dibpreview \
68	fpicker/source/win32/filepicker/helppopupwindow \
69	fpicker/source/win32/filepicker/controlcommand \
70	fpicker/source/win32/filepicker/filepickerstate \
71	fpicker/source/win32/filepicker/getfilenamewrapper \
72	fpicker/source/win32/filepicker/asynceventnotifier \
73	fpicker/source/win32/filepicker/previewadapter \
74	fpicker/source/win32/filepicker/previewbase \
75	fpicker/source/win32/filepicker/filepickereventnotification \
76	fpicker/source/win32/filepicker/customcontrol \
77	fpicker/source/win32/filepicker/customcontrolcontainer \
78	fpicker/source/win32/filepicker/customcontrolfactory \
79	fpicker/source/win32/filepicker/dialogcustomcontrols \
80	fpicker/source/win32/filepicker/asyncrequests \
81	fpicker/source/win32/filepicker/VistaFilePickerEventHandler \
82	fpicker/source/win32/filepicker/VistaFilePickerImpl \
83	fpicker/source/win32/filepicker/VistaFilePicker \
84	fpicker/source/win32/filepicker/SolarMutex \
85	, -D_UNICODE -DUNICODE -U_WIN32_WINNT -D_WIN32_WINNT=0x0600 $(gb_LinkTarget_EXCEPTIONFLAGS) \
86))
87
88ifeq ($(COM),GCC)
89$(eval $(call gb_Library_add_cxxobjects,fps,\
90	fpicker/source/win32/misc/WinImplHelper \
91	fpicker/source/win32/misc/AutoBuffer \
92	fpicker/source/win32/misc/resourceprovider \
93	, -fexceptions -fno-enforce-eh-specs -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
94))
95else
96$(eval $(call gb_Library_add_cxxobjects,fps,\
97	fpicker/source/win32/misc/WinImplHelper \
98	fpicker/source/win32/misc/AutoBuffer \
99	fpicker/source/win32/misc/resourceprovider \
100	, -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
101))
102fi
103
104# vim: set noet sw=4 ts=4:
105