summaryrefslogtreecommitdiffstats
path: root/odk/Package_unowinreg.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-21 15:50:23 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-22 07:04:11 +0000
commit1ea1818dd15bcfc1605764b237e6f71e8fcb5635 (patch)
treef856f4670c1fcb7c3511993a915ec8bfdb2f8c3d /odk/Package_unowinreg.mk
parentreplace CustomTarget_odk/odkcommon/cli by Package (diff)
downloadcore-1ea1818dd15bcfc1605764b237e6f71e8fcb5635.tar.gz
core-1ea1818dd15bcfc1605764b237e6f71e8fcb5635.zip
use Package for unowinreg
Change-Id: I7546e8938ba41e1462e704bd0405c5a887151d7b Reviewed-on: https://gerrit.libreoffice.org/3531 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'odk/Package_unowinreg.mk')
-rw-r--r--odk/Package_unowinreg.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/odk/Package_unowinreg.mk b/odk/Package_unowinreg.mk
new file mode 100644
index 000000000000..0fd09284721c
--- /dev/null
+++ b/odk/Package_unowinreg.mk
@@ -0,0 +1,28 @@
+# -*- 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/.
+#
+
+ifeq ($(BUILD_UNOWINREG),YES)
+ifeq ($(COM),MSC)
+odk_unowinreg_DIR := $(OUTDIR)/bin
+else
+odk_unowinreg_DIR := $(call gb_CustomTarget_get_workdir,odk/unowinreg)
+endif
+odk_unowinreg_FILE := unowinreg.dll
+else # BUILD_UNOWINREG=NO
+odk_unowinreg_DIR := $(TARFILE_LOCATION)
+odk_unowinreg_FILE := $(UNOWINREG_DLL)
+endif
+
+$(eval $(call gb_Package_Package,odk_unowinreg,$(odk_unowinreg_DIR)))
+
+$(eval $(call gb_Package_set_outdir,odk_unowinreg,$(INSTDIR)))
+
+$(eval $(call gb_Package_add_file,odk_unowinreg,$(gb_Package_SDKDIRNAME)/classes/win/unowinreg.dll,$(odk_unowinreg_FILE)))
+
+# vim: set noet sw=4 ts=4: