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_add_api,desktop_detector,\
31	udkapi \
32	offapi \
33))
34
35$(eval $(call gb_Library_set_include,desktop_detector,\
36	$$(INCLUDE) \
37	-I$(SRCDIR)/vcl/inc \
38	-I$(SRCDIR)/vcl/inc/pch \
39	-I$(SRCDIR)/solenv/inc \
40	-I$(OUTDIR)/inc/stl \
41	-I$(OUTDIR)/inc \
42))
43
44$(eval $(call gb_Library_add_defs,desktop_detector,\
45	-DDESKTOP_DETECTOR_IMPLEMENTATION \
46))
47
48$(eval $(call gb_Library_add_linked_libs,desktop_detector,\
49	vcl \
50	tl \
51	utl \
52	sot \
53	ucbhelper \
54	basegfx \
55	comphelper \
56	cppuhelper \
57	i18nisolang1 \
58	i18npaper \
59	i18nutil \
60	jvmaccess \
61	stl \
62	cppu \
63	sal \
64	vos3 \
65	X11 \
66	Xext \
67	SM \
68	ICE \
69	$(gb_STDLIBS) \
70))
71
72$(call gb_Library_use_externals,desktop_detector,\
73	icule \
74	icuuc \
75)
76
77$(eval $(call gb_Library_add_exception_objects,desktop_detector,\
78	vcl/unx/generic/desktopdetect/desktopdetector \
79))
80
81ifeq ($(OS),LINUX)
82$(eval $(call gb_Library_add_linked_libs,desktop_detector,\
83	dl \
84	m \
85	pthread \
86))
87endif
88
89# vim: set noet sw=4 ts=4:
90