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