summaryrefslogtreecommitdiff
path: root/librelogo/CustomTarget_librelogo.mk
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-11-27 21:11:18 +0100
committerAndras Timar <atimar@suse.com>2012-11-28 21:22:47 +0100
commit78234602ceb6aaaff9996240b388be12fcff968f (patch)
treeab163b8dda42463167c1477638ce9d85bfb15e7f /librelogo/CustomTarget_librelogo.mk
parent5c34ee433b9f1191d14d64214a923b321e667a4c (diff)
LibreLogo integration (extension -> normal code)
While efforts have been made to make LibreLogo work with Python 3.3, there are still a few bugs, for example large Logo programs do not run correctly and Translate button does not work. Bugfixing is in progress. Change-Id: I4227ff86084f51047861897189d2317322296139
Diffstat (limited to 'librelogo/CustomTarget_librelogo.mk')
-rw-r--r--librelogo/CustomTarget_librelogo.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/librelogo/CustomTarget_librelogo.mk b/librelogo/CustomTarget_librelogo.mk
new file mode 100644
index 000000000000..903ca8ab5081
--- /dev/null
+++ b/librelogo/CustomTarget_librelogo.mk
@@ -0,0 +1,43 @@
+# -*- 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_CustomTarget_CustomTarget,librelogo/locproperties))
+
+librelogo_DIR := $(call gb_CustomTarget_get_workdir,librelogo/locproperties)
+
+ifneq ($(strip $(gb_WITH_LANG)),)
+librelogo_LANGS := $(subst -,_,$(filter-out qtz,$(filter-out en-US,$(gb_WITH_LANG))))
+librelogo_LOCPROPERTIES := $(foreach lang,$(librelogo_LANGS),$(librelogo_DIR)/LibreLogo_$(lang).properties)
+else
+librelogo_LOCPROPERTIES :=
+endif
+
+librelogo_PROPMERGETARGET := $(call gb_Executable_get_target_for_build,propex)
+librelogo_PROPMERGECOMMAND := $(gb_Helper_set_ld_path) $(librelogo_PROPMERGETARGET)
+
+$(call gb_CustomTarget_get_target,librelogo/locproperties) : $(librelogo_LOCPROPERTIES)
+
+$(librelogo_DIR)/LibreLogo_%.properties : \
+ $(SRCDIR)/librelogo/source/pythonpath/LibreLogo_en_US.properties \
+ | $(librelogo_DIR)/.dir
+ $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRP,1)
+ $(call gb_Helper_abbreviate_dirs, \
+ LANG=$(subst _,-,$(subst $(librelogo_DIR)/LibreLogo_,,$(subst .properties,,$@))) && \
+ MERGEINPUT=`$(gb_MKTEMP)` && \
+ echo $(gb_POLOCATION)/$${LANG}/librelogo/source/pythonpath.po > $${MERGEINPUT} && \
+ $(librelogo_PROPMERGECOMMAND) \
+ -p librelogo \
+ -i $< \
+ -o $@ \
+ -m $${MERGEINPUT} \
+ -l $${LANG} && \
+ rm -rf $${MERGEINPUT} \
+ )
+
+# vim:set shiftwidth=4 tabstop=4 noexpandtab: