summaryrefslogtreecommitdiff
path: root/odk/Package_lib.mk
blob: bd796beb7d555c8845b2a76910c8cf42e7a21e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#

$(eval $(call gb_Package_Package,odk_lib,$(OUTDIR)/lib))

$(eval $(call gb_Package_set_outdir,odk_lib,$(INSTDIR)))

$(eval $(call gb_Package_add_files,odk_lib,$(gb_Package_SDKDIRNAME)/lib,\
	$(if $(filter MSC,$(COM)),\
		$(foreach lib,\
			cppu \
			cppuhelper \
			purpenvhelper \
			sal \
			salhelper \
			,$(call gb_Library_get_ilibfilename,$(lib)) \
		) \
	) \
	$(if $(filter LINUX,$(OS)),$(notdir $(call gb_StaticLibrary_get_target,salcpprt))) \
))

ifneq (,$(filter-out MACOSX WNT,$(OS)))
define odk_add_sybolic_link
$(call gb_Package_add_symbolic_link,odk_lib,$(gb_Package_SDKDIRNAME)/lib/$(basename $(1)),../../ure-link/lib/$(1))

endef

$(foreach lib,cppu cppuhelper purpenvhelper sal salhelper,\
$(eval $(call odk_add_sybolic_link,$(call gb_Library_get_runtime_filename,$(lib)))))
endif

# vim: set noet sw=4 ts=4: