17871dc3eSAndrew Rist#************************************************************** 2cdf0e10cSrcweir# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 19cdf0e10cSrcweir# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir$(eval $(call gb_Library_Library,desktop_detector)) 25cdf0e10cSrcweir 26cdf0e10cSrcweir#$(eval $(call gb_Library_add_package_headers,vcl,vcl_inc)) 27cdf0e10cSrcweir 28cdf0e10cSrcweir$(eval $(call gb_Library_add_precompiled_header,desktop_detector,$(SRCDIR)/vcl/inc/pch/precompiled_vcl)) 29cdf0e10cSrcweir 30b63233d8Sdamjan$(eval $(call gb_Library_add_api,desktop_detector,\ 31b63233d8Sdamjan udkapi \ 32b63233d8Sdamjan offapi \ 33b63233d8Sdamjan)) 34b63233d8Sdamjan 35cdf0e10cSrcweir$(eval $(call gb_Library_set_include,desktop_detector,\ 36cdf0e10cSrcweir $$(INCLUDE) \ 37cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc \ 38cdf0e10cSrcweir -I$(SRCDIR)/vcl/inc/pch \ 39cdf0e10cSrcweir -I$(SRCDIR)/solenv/inc \ 40cdf0e10cSrcweir -I$(OUTDIR)/inc/stl \ 41cdf0e10cSrcweir -I$(OUTDIR)/inc \ 42cdf0e10cSrcweir)) 43cdf0e10cSrcweir 44b63233d8Sdamjan$(eval $(call gb_Library_add_defs,desktop_detector,\ 45cdf0e10cSrcweir -DDESKTOP_DETECTOR_IMPLEMENTATION \ 46cdf0e10cSrcweir)) 47cdf0e10cSrcweir 48cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,desktop_detector,\ 49cdf0e10cSrcweir vcl \ 50cdf0e10cSrcweir tl \ 51cdf0e10cSrcweir utl \ 52cdf0e10cSrcweir sot \ 53cdf0e10cSrcweir ucbhelper \ 54cdf0e10cSrcweir basegfx \ 55cdf0e10cSrcweir comphelper \ 56cdf0e10cSrcweir cppuhelper \ 57cdf0e10cSrcweir i18nisolang1 \ 58cdf0e10cSrcweir i18npaper \ 59cdf0e10cSrcweir i18nutil \ 60cdf0e10cSrcweir jvmaccess \ 61cdf0e10cSrcweir stl \ 62cdf0e10cSrcweir cppu \ 63cdf0e10cSrcweir sal \ 64cdf0e10cSrcweir vos3 \ 65cdf0e10cSrcweir X11 \ 66cdf0e10cSrcweir Xext \ 67cdf0e10cSrcweir SM \ 68cdf0e10cSrcweir ICE \ 693af404dfSMichael Stahl $(gb_STDLIBS) \ 70cdf0e10cSrcweir)) 71cdf0e10cSrcweir 72b63233d8Sdamjan$(call gb_Library_use_externals,desktop_detector,\ 73b63233d8Sdamjan icule \ 74b63233d8Sdamjan icuuc \ 75b63233d8Sdamjan) 76b63233d8Sdamjan 77c2ad3bbcSMichael Stahl$(eval $(call gb_Library_add_exception_objects,desktop_detector,\ 78cdf0e10cSrcweir vcl/unx/generic/desktopdetect/desktopdetector \ 79cdf0e10cSrcweir)) 80cdf0e10cSrcweir 81cdf0e10cSrcweirifeq ($(OS),LINUX) 82cdf0e10cSrcweir$(eval $(call gb_Library_add_linked_libs,desktop_detector,\ 83cdf0e10cSrcweir dl \ 84cdf0e10cSrcweir m \ 85cdf0e10cSrcweir pthread \ 86cdf0e10cSrcweir)) 87cdf0e10cSrcweirendif 88*75e945beSMatthias Seidel 89cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 90