Adds a set of helpers to implement a script provider where the script files are the entire macro. The provider only needs to make a subclass of the abstract SingleScriptFactory class to provide the filename extension, language name and a method to convert the contents of a file to an XScript. The parts about handling file browsing and reading the file contents are in the shared helper code. This is based on the script provider from Luno. Change-Id: Id39f3a07e887898650b0d77ec493011fb5acc858 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203216 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
|
|
#
|
|
# 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_Library_Library,singleprov))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,singleprov))
|
|
|
|
$(eval $(call gb_Library_set_include,singleprov,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/scripting/source/inc \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_libraries,singleprov,\
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,singleprov,\
|
|
scripting/source/singleprov/provcontext \
|
|
scripting/source/singleprov/scriptbrowser \
|
|
scripting/source/singleprov/scriptdir \
|
|
scripting/source/singleprov/scriptfile \
|
|
scripting/source/singleprov/scriptmacro \
|
|
scripting/source/singleprov/scriptprovider \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|