Files
odfstudio/unotest/Library_embindtest.mk
Neil Roberts aed5ae5d21 tdf#173114 pyuno: Add unit test for objects with XInvocation
Adds a service to embindtest that implements XInvocation to handle all
possible method names and returns the name as a string. A Python unit
test then uses this. Without the fix pyuno would throw an exception when
it tries to use the XInvocation object that doesn’t also implement
XInvocation2 and return a valid reference for getIntrospection.

Change-Id: Icb3359c788acd5eda37980252e5fc5c956b38100
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209087
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-13 12:43:09 +02:00

35 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,embindtest))
$(eval $(call gb_Library_add_exception_objects,embindtest, \
unotest/source/embindtest/embindtest \
unotest/source/embindtest/methodtostring \
unotest/source/embindtest/passthrough \
unotest/source/embindtest/serviceconstructors \
unotest/source/embindtest/singleton \
))
$(eval $(call gb_Library_set_componentfile,embindtest,unotest/source/embindtest/embindtest,services))
$(eval $(call gb_Library_use_libraries,embindtest, \
cppu \
cppuhelper \
sal \
salhelper \
tl \
vcl \
$(if $(filter -fsanitize=vptr,$(gb_CXX)),comphelper) \
))
$(eval $(call gb_Library_use_sdk_api,embindtest))
# vim: set noet sw=4 ts=4: