xref: /aoo42x/main/dtrans/Library_dnd.mk (revision 5ab6ab15)
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,dnd))
25
26$(eval $(call gb_Library_add_precompiled_header,dnd,$(SRCDIR)/dtrans/inc/pch/precompiled_dtrans))
27
28$(eval $(call gb_Library_set_componentfile,dnd,dtrans/util/dnd))
29
30$(eval $(call gb_Library_set_include,dnd,\
31        $$(INCLUDE) \
32	-I$(SRCDIR)/dtrans/inc/pch \
33))
34
35$(eval $(call gb_Library_add_api,dnd,\
36	offapi \
37	udkapi \
38))
39
40$(eval $(call gb_Library_add_linked_libs,dnd,\
41	advapi32 \
42	cppuhelper \
43	cppu \
44	gdi32 \
45	ole32 \
46	oleaut32 \
47	sal \
48	shell32 \
49	stl \
50	user32 \
51	uuid \
52	uwinapi \
53	$(gb_STDLIBS) \
54))
55
56$(eval $(call gb_Library_add_exception_objects,dnd,\
57	dtrans/source/win32/dnd/dndentry \
58	dtrans/source/win32/dnd/target \
59	dtrans/source/win32/dnd/idroptarget \
60	dtrans/source/win32/dnd/source \
61	dtrans/source/win32/dnd/globals \
62	dtrans/source/win32/dnd/targetdropcontext \
63	dtrans/source/win32/dnd/targetdragcontext \
64	dtrans/source/win32/dnd/sourcecontext \
65	dtrans/source/win32/misc/ImplHelper \
66))
67
68ifneq ($(COM),GCC)
69$(eval $(call gb_Library_add_cxxobjects,dnd,\
70	dtrans/source/win32/dtobj/DtObjFactory \
71	dtrans/source/win32/dtobj/APNDataObject \
72	dtrans/source/win32/dtobj/DOTransferable \
73	dtrans/source/win32/dtobj/DTransHelper \
74	dtrans/source/win32/dtobj/XTDataObject \
75	dtrans/source/win32/dtobj/TxtCnvtHlp \
76	dtrans/source/win32/dtobj/DataFmtTransl \
77	dtrans/source/win32/dtobj/FmtFilter \
78	dtrans/source/win32/dtobj/FetcList \
79	dtrans/source/win32/dtobj/Fetc \
80	dtrans/source/win32/dtobj/XNotifyingDataObject \
81	, -GR -Ob0 \
82))
83else
84$(eval $(call gb_Library_add_exception_objects,dnd,\
85        dtrans/source/win32/dtobj/DtObjFactory \
86        dtrans/source/win32/dtobj/APNDataObject \
87        dtrans/source/win32/dtobj/DOTransferable \
88        dtrans/source/win32/dtobj/DTransHelper \
89        dtrans/source/win32/dtobj/XTDataObject \
90        dtrans/source/win32/dtobj/TxtCnvtHlp \
91        dtrans/source/win32/dtobj/DataFmtTransl \
92        dtrans/source/win32/dtobj/FmtFilter \
93        dtrans/source/win32/dtobj/FetcList \
94        dtrans/source/win32/dtobj/Fetc \
95        dtrans/source/win32/dtobj/XNotifyingDataObject \
96))
97endif
98
99# vim: set noet sw=4 ts=4:
100