1e8183b3fSdamjan#**************************************************************
2e8183b3fSdamjan#
3e8183b3fSdamjan#  Licensed to the Apache Software Foundation (ASF) under one
4e8183b3fSdamjan#  or more contributor license agreements.  See the NOTICE file
5e8183b3fSdamjan#  distributed with this work for additional information
6e8183b3fSdamjan#  regarding copyright ownership.  The ASF licenses this file
7e8183b3fSdamjan#  to you under the Apache License, Version 2.0 (the
8e8183b3fSdamjan#  "License"); you may not use this file except in compliance
9e8183b3fSdamjan#  with the License.  You may obtain a copy of the License at
10e8183b3fSdamjan#
11e8183b3fSdamjan#    http://www.apache.org/licenses/LICENSE-2.0
12e8183b3fSdamjan#
13e8183b3fSdamjan#  Unless required by applicable law or agreed to in writing,
14e8183b3fSdamjan#  software distributed under the License is distributed on an
15e8183b3fSdamjan#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16e8183b3fSdamjan#  KIND, either express or implied.  See the License for the
17e8183b3fSdamjan#  specific language governing permissions and limitations
18e8183b3fSdamjan#  under the License.
19e8183b3fSdamjan#
20e8183b3fSdamjan#**************************************************************
21e8183b3fSdamjan
22e8183b3fSdamjan
23e8183b3fSdamjan
24e8183b3fSdamjan$(eval $(call gb_Library_Library,sysdtrans))
25e8183b3fSdamjan
26e8183b3fSdamjan$(eval $(call gb_Library_add_precompiled_header,sysdtrans,$(SRCDIR)/dtrans/inc/pch/precompiled_dtrans))
27e8183b3fSdamjan
28e8183b3fSdamjan$(eval $(call gb_Library_set_componentfile,sysdtrans,dtrans/util/sysdtrans))
29e8183b3fSdamjan
30e8183b3fSdamjan$(eval $(call gb_Library_set_include,sysdtrans,\
31e8183b3fSdamjan        $$(INCLUDE) \
32e8183b3fSdamjan	-I$(SRCDIR)/dtrans/inc/pch \
33e8183b3fSdamjan))
34e8183b3fSdamjan
35e8183b3fSdamjan$(eval $(call gb_Library_add_api,sysdtrans,\
36e8183b3fSdamjan	offapi \
37e8183b3fSdamjan	udkapi \
38e8183b3fSdamjan))
39e8183b3fSdamjan
40e8183b3fSdamjan$(eval $(call gb_Library_add_linked_libs,sysdtrans,\
41e8183b3fSdamjan	advapi32 \
42e8183b3fSdamjan	cppuhelper \
43e8183b3fSdamjan	cppu \
44e8183b3fSdamjan	gdi32 \
45e8183b3fSdamjan	ole32 \
46e8183b3fSdamjan	oleaut32 \
47e8183b3fSdamjan	sal \
485ab6ab15Sdamjan	shell32 \
49e8183b3fSdamjan	stl \
50e8183b3fSdamjan	uuid \
515ab6ab15Sdamjan	user32 \
52e8183b3fSdamjan	uwinapi \
53e8183b3fSdamjan	$(gb_STDLIBS) \
54e8183b3fSdamjan))
55e8183b3fSdamjan
56e8183b3fSdamjan$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
57e8183b3fSdamjan	dtrans/source/win32/clipb/WinClipboard \
58e8183b3fSdamjan	dtrans/source/win32/clipb/WinClipbImpl \
59e8183b3fSdamjan	dtrans/source/win32/clipb/wcbentry \
60e8183b3fSdamjan	, -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
61e8183b3fSdamjan))
62e8183b3fSdamjan
63e8183b3fSdamjan$(eval $(call gb_Library_add_exception_objects,sysdtrans,\
64e8183b3fSdamjan	dtrans/source/win32/misc/ImplHelper \
65e8183b3fSdamjan))
66e8183b3fSdamjan
67e8183b3fSdamjanifneq ($(COM),GCC)
68e8183b3fSdamjan$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
69e8183b3fSdamjan	dtrans/source/win32/dtobj/DtObjFactory \
70e8183b3fSdamjan	dtrans/source/win32/dtobj/APNDataObject \
71e8183b3fSdamjan	dtrans/source/win32/dtobj/DOTransferable \
72e8183b3fSdamjan	dtrans/source/win32/dtobj/DTransHelper \
73e8183b3fSdamjan	dtrans/source/win32/dtobj/XTDataObject \
74e8183b3fSdamjan	dtrans/source/win32/dtobj/TxtCnvtHlp \
75e8183b3fSdamjan	dtrans/source/win32/dtobj/DataFmtTransl \
76e8183b3fSdamjan	dtrans/source/win32/dtobj/FmtFilter \
77e8183b3fSdamjan	dtrans/source/win32/dtobj/FetcList \
78e8183b3fSdamjan	dtrans/source/win32/dtobj/Fetc \
79e8183b3fSdamjan	dtrans/source/win32/dtobj/XNotifyingDataObject \
80*31473316Sdamjan	, -GR -Ob0 $(gb_LinkTarget_EXCEPTIONFLAGS) \
81e8183b3fSdamjan))
82e8183b3fSdamjanelse
83e8183b3fSdamjan$(eval $(call gb_Library_add_exception_objects,sysdtrans,\
84e8183b3fSdamjan	dtrans/source/win32/dtobj/DtObjFactory \
85e8183b3fSdamjan	dtrans/source/win32/dtobj/APNDataObject \
86e8183b3fSdamjan	dtrans/source/win32/dtobj/DOTransferable \
87e8183b3fSdamjan	dtrans/source/win32/dtobj/DTransHelper \
88e8183b3fSdamjan	dtrans/source/win32/dtobj/XTDataObject \
89e8183b3fSdamjan	dtrans/source/win32/dtobj/TxtCnvtHlp \
90e8183b3fSdamjan	dtrans/source/win32/dtobj/DataFmtTransl \
91e8183b3fSdamjan	dtrans/source/win32/dtobj/FmtFilter \
92e8183b3fSdamjan	dtrans/source/win32/dtobj/FetcList \
93e8183b3fSdamjan	dtrans/source/win32/dtobj/Fetc \
94e8183b3fSdamjan	dtrans/source/win32/dtobj/XNotifyingDataObject \
95e8183b3fSdamjan))
96e8183b3fSdamjanendif
97e8183b3fSdamjan
98e8183b3fSdamjan$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
99e8183b3fSdamjan	dtrans/source/win32/mtaole/MtaOleClipb \
100e8183b3fSdamjan	, -DUNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
101e8183b3fSdamjan))
102e8183b3fSdamjan
103e8183b3fSdamjan# vim: set noet sw=4 ts=4:
104