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