xref: /trunk/main/dtrans/Library_sysdtrans_win.mk (revision d2992cc17a5536db9d9cad92e33116a6ace952cf)
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    shell32 \
49    stl \
50    uuid \
51    user32 \
52    uwinapi \
53    $(gb_STDLIBS) \
54))
55
56$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
57    dtrans/source/win32/clipb/WinClipboard \
58    dtrans/source/win32/clipb/WinClipbImpl \
59    dtrans/source/win32/clipb/wcbentry \
60    , -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
61))
62
63$(eval $(call gb_Library_add_exception_objects,sysdtrans,\
64    dtrans/source/win32/misc/ImplHelper \
65))
66
67ifneq ($(COM),GCC)
68$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
69    dtrans/source/win32/dtobj/DtObjFactory \
70    dtrans/source/win32/dtobj/APNDataObject \
71    dtrans/source/win32/dtobj/DOTransferable \
72    dtrans/source/win32/dtobj/DTransHelper \
73    dtrans/source/win32/dtobj/XTDataObject \
74    dtrans/source/win32/dtobj/TxtCnvtHlp \
75    dtrans/source/win32/dtobj/DataFmtTransl \
76    dtrans/source/win32/dtobj/FmtFilter \
77    dtrans/source/win32/dtobj/FetcList \
78    dtrans/source/win32/dtobj/Fetc \
79    dtrans/source/win32/dtobj/XNotifyingDataObject \
80    , -GR -Ob0 $(gb_LinkTarget_EXCEPTIONFLAGS) \
81))
82else
83$(eval $(call gb_Library_add_exception_objects,sysdtrans,\
84    dtrans/source/win32/dtobj/DtObjFactory \
85    dtrans/source/win32/dtobj/APNDataObject \
86    dtrans/source/win32/dtobj/DOTransferable \
87    dtrans/source/win32/dtobj/DTransHelper \
88    dtrans/source/win32/dtobj/XTDataObject \
89    dtrans/source/win32/dtobj/TxtCnvtHlp \
90    dtrans/source/win32/dtobj/DataFmtTransl \
91    dtrans/source/win32/dtobj/FmtFilter \
92    dtrans/source/win32/dtobj/FetcList \
93    dtrans/source/win32/dtobj/Fetc \
94    dtrans/source/win32/dtobj/XNotifyingDataObject \
95))
96endif
97
98$(eval $(call gb_Library_add_cxxobjects,sysdtrans,\
99    dtrans/source/win32/mtaole/MtaOleClipb \
100    , -DUNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
101))
102
103# vim: set noet sw=4 ts=4:
104