2011-08-10 02:12:48 +09:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# This file is part of the LibreOffice project.
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
2012-11-06 12:12:33 +00:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed
|
|
|
|
# with this work for additional information regarding copyright
|
|
|
|
# ownership. The ASF licenses this file to you under the Apache
|
|
|
|
# License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
2011-01-25 17:35:20 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_Library,desktop_detector))
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_include,desktop_detector,\
|
|
|
|
$$(INCLUDE) \
|
2012-03-05 19:02:10 +01:00
|
|
|
-I$(SRCDIR)/vcl/inc \
|
2011-01-25 17:35:20 +01:00
|
|
|
))
|
|
|
|
|
2011-04-13 16:11:41 +00:00
|
|
|
$(eval $(call gb_Library_add_defs,desktop_detector,\
|
2011-01-25 17:35:20 +01:00
|
|
|
-DDESKTOP_DETECTOR_IMPLEMENTATION \
|
|
|
|
))
|
|
|
|
|
2012-07-02 13:00:50 +01:00
|
|
|
$(eval $(call gb_Library_use_sdk_api,desktop_detector))
|
2011-05-30 18:47:58 +02:00
|
|
|
|
2012-04-07 23:22:08 +02:00
|
|
|
$(eval $(call gb_Library_use_libraries,desktop_detector,\
|
2011-01-25 17:35:20 +01:00
|
|
|
vcl \
|
|
|
|
tl \
|
|
|
|
utl \
|
|
|
|
sot \
|
|
|
|
ucbhelper \
|
|
|
|
basegfx \
|
|
|
|
comphelper \
|
|
|
|
cppuhelper \
|
2013-04-05 18:40:39 +02:00
|
|
|
i18nlangtag \
|
2011-01-25 17:35:20 +01:00
|
|
|
i18nutil \
|
2013-08-19 00:41:12 +03:00
|
|
|
$(if $(ENABLE_JAVA), \
|
2013-04-04 22:46:53 +02:00
|
|
|
jvmaccess) \
|
2011-01-25 17:35:20 +01:00
|
|
|
cppu \
|
|
|
|
sal \
|
|
|
|
))
|
|
|
|
|
2011-07-23 15:23:24 +02:00
|
|
|
$(eval $(call gb_Library_use_externals,desktop_detector,\
|
2013-01-26 21:19:13 +01:00
|
|
|
boost_headers \
|
2011-04-13 16:11:40 +00:00
|
|
|
icuuc \
|
2011-07-23 15:23:24 +02:00
|
|
|
))
|
2011-04-13 16:11:40 +00:00
|
|
|
|
2012-09-28 12:25:50 +02:00
|
|
|
$(eval $(call gb_Library_add_libs,desktop_detector,\
|
|
|
|
-lX11 \
|
|
|
|
-lXext \
|
|
|
|
-lSM \
|
|
|
|
-lICE \
|
|
|
|
))
|
|
|
|
|
2011-04-13 13:17:51 +02:00
|
|
|
$(eval $(call gb_Library_add_exception_objects,desktop_detector,\
|
2011-01-25 17:35:20 +01:00
|
|
|
vcl/unx/generic/desktopdetect/desktopdetector \
|
|
|
|
))
|
|
|
|
|
|
|
|
ifeq ($(OS),LINUX)
|
2012-09-28 00:54:49 +02:00
|
|
|
$(eval $(call gb_Library_add_libs,desktop_detector,\
|
|
|
|
-lm \
|
|
|
|
-ldl \
|
|
|
|
-lpthread \
|
2011-01-25 17:35:20 +01:00
|
|
|
))
|
|
|
|
endif
|
2012-09-28 00:54:49 +02:00
|
|
|
|
2011-01-25 17:35:20 +01:00
|
|
|
# vim: set noet sw=4 ts=4:
|