dbfa56584c
Unlike later versions of Java, JDK 8 does not create the last directory segment pointed by the -d option, even if the other segments exist. So, create the "content" segment too and allow building with Java 8. Change-Id: Ie7ee75ca311270e02a3e1b6b5eeb28b5a1ccdad8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169477 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
49 lines
2.2 KiB
Makefile
49 lines
2.2 KiB
Makefile
# -*- 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_ExternalProject_ExternalProject,rhino))
|
|
|
|
$(eval $(call gb_ExternalProject_register_targets,rhino,\
|
|
build \
|
|
))
|
|
|
|
$(call gb_ExternalProject_get_state_target,rhino,build) :
|
|
$(call gb_Trace_StartRange,rhino,EXTERNAL)
|
|
$(call gb_ExternalProject_run,build,\
|
|
mkdir $(gb_UnpackedTarball_workdir)/rhino/build \
|
|
&& mkdir $(gb_UnpackedTarball_workdir)/rhino/build/content \
|
|
&& cd $(gb_UnpackedTarball_workdir)/rhino \
|
|
&& $(call gb_JavaClassSet_JAVACCOMMAND,$(JAVA_TARGET_VER)) $(gb_JavaClassSet_JAVACDEBUG) \
|
|
-d $(gb_UnpackedTarball_workdir)/rhino/build/content \
|
|
@$(SRCDIR)/external/rhino/filelist.txt \
|
|
&& mkdir $(gb_UnpackedTarball_workdir)/rhino/build/content/META-INF \
|
|
&& cp $(gb_UnpackedTarball_workdir)/rhino/LICENSE.txt \
|
|
$(gb_UnpackedTarball_workdir)/rhino/NOTICE-tools.txt \
|
|
$(gb_UnpackedTarball_workdir)/rhino/NOTICE.txt \
|
|
$(gb_UnpackedTarball_workdir)/rhino/build/content/META-INF/ \
|
|
&& $(gb_Jar_JARCOMMAND) -cf $(gb_UnpackedTarball_workdir)/rhino/build/js.jar \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/build/content . \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/commonjs/module/package.html \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/commonjs/module/provider/package.html \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/resources/Messages.properties \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/resources/Messages_en.properties \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/resources/Messages_fr.properties \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/tools/debugger/test.js \
|
|
-C $(gb_UnpackedTarball_workdir)/rhino/src \
|
|
org/mozilla/javascript/tools/resources/Messages.properties \
|
|
)
|
|
$(call gb_Trace_EndRange,rhino,EXTERNAL)
|
|
|
|
# vim: set noet sw=4 ts=4:
|