Kaydet (Commit) 287a1842 authored tarafından Michael Stahl's avatar Michael Stahl

jurt: actually, why does this not simply use InternalUnoApi

... which makes things much simpler, and the custom target now only
contains Java classes.

Change-Id: I4aead3a2468085212e2384cad97e34f9cfce7270
üst 6032ed44
......@@ -31,25 +31,13 @@ jurt_TESTURP := $(call gb_CustomTarget_get_workdir,jurt/test/com/sun/star/lib/un
$(call gb_CustomTarget_get_target,jurt/test/com/sun/star/lib/uno/protocols/urp) : $(jurt_TESTURP)/done
$(jurt_TESTURP)/done : $(jurt_TESTURP)/registry.rdb $(OUTDIR)/bin/types.rdb \
$(jurt_TESTURP)/done : \
$(call gb_UnoApiTarget_get_target,test_urp) \
$(OUTDIR)/bin/udkapi.rdb \
$(call gb_Executable_get_target_for_build,javamaker)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),JVM,1)
rm -rf $(jurt_TESTURP)/com && \
rm -rf $(jurt_TESTURP) && \
$(call gb_Helper_execute,javamaker -BUCR -O$(jurt_TESTURP) -nD $< -X$(OUTDIR)/bin/types.rdb) && \
touch $@
# TODO: would it be possible to reuse UnoApiTarget for this?
$(jurt_TESTURP)/registry.rdb : $(jurt_TESTURP)/interfaces.urd \
$(call gb_Executable_get_target_for_build,regmerge)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),RGM,1)
rm -f $@ && \
$(call gb_Helper_execute,regmerge $@ /UCR $<)
$(jurt_TESTURP)/interfaces.urd : \
$(SRCDIR)/jurt/test/com/sun/star/lib/uno/protocols/urp/interfaces.idl \
$(call gb_Executable_get_target_for_build,idlc) \
| $(jurt_TESTURP)/urd/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
$(call gb_Helper_execute,idlc -O$(jurt_TESTURP) -I$(OUTDIR)/idl -cid -we $<)
# vim:set shiftwidth=4 tabstop=4 noexpandtab:
# -*- 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_InternalUnoApi_InternalUnoApi,test_urp))
$(eval $(call gb_InternalUnoApi_use_api,test_urp,\
udkapi \
))
$(eval $(call gb_InternalUnoApi_set_include,test_urp,\
-I$(OUTDIR)/idl \
$$(INCLUDE) \
))
$(eval $(call gb_InternalUnoApi_add_idlfiles,test_urp,jurt/test/com/sun/star/lib/uno/protocols/urp,\
interfaces \
))
# vim: set noet sw=4 ts=4:
......@@ -50,6 +50,7 @@ endif
$(eval $(call gb_Module_add_subsequentcheck_targets,jurt,\
CustomTarget_test_urp \
InternalUnoApi_test_urp \
JunitTest_bridgefactory \
JunitTest_connections \
JunitTest_java \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment