xref: /AOO41X/main/vcl/Library_desktop_detector.mk (revision 7871dc3ea494bf86c742e1f4dfc9c6e20f5bcb2a)
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,desktop_detector))
25
26#$(eval $(call gb_Library_add_package_headers,vcl,vcl_inc))
27
28$(eval $(call gb_Library_add_precompiled_header,desktop_detector,$(SRCDIR)/vcl/inc/pch/precompiled_vcl))
29
30$(eval $(call gb_Library_set_include,desktop_detector,\
31    $$(INCLUDE) \
32    -I$(SRCDIR)/vcl/inc \
33    -I$(SRCDIR)/vcl/inc/pch \
34    -I$(SRCDIR)/solenv/inc \
35    -I$(OUTDIR)/inc/offuh \
36    -I$(OUTDIR)/inc/stl \
37    -I$(OUTDIR)/inc \
38))
39
40$(eval $(call gb_Library_set_defs,desktop_detector,\
41    $$(DEFS) \
42    -DDESKTOP_DETECTOR_IMPLEMENTATION \
43))
44
45$(eval $(call gb_Library_add_linked_libs,desktop_detector,\
46    vcl \
47    tl \
48    utl \
49    sot \
50    ucbhelper \
51    basegfx \
52    comphelper \
53    cppuhelper \
54    icuuc \
55    icule \
56    i18nisolang1 \
57    i18npaper \
58    i18nutil \
59    jvmaccess \
60    stl \
61    cppu \
62    sal \
63    vos3 \
64    X11 \
65    Xext \
66    SM \
67    ICE \
68    $(gb_STDLIBS) \
69))
70
71$(eval $(call gb_Library_add_exception_objects,desktop_detector,\
72    vcl/unx/generic/desktopdetect/desktopdetector \
73))
74
75ifeq ($(OS),LINUX)
76$(eval $(call gb_Library_add_linked_libs,desktop_detector,\
77    dl \
78    m \
79    pthread \
80))
81endif
82# vim: set noet sw=4 ts=4:
83