Kaydet (Commit) da059ff6 authored tarafından David Ostrovsky's avatar David Ostrovsky Kaydeden (comit) Andras Timar

gbuildification of saxon

Change-Id: Ic54337f4279daf78b099aab368eade5a6143f586
üst d9947fcc
......@@ -133,6 +133,7 @@ sal\
salhelper\
sane\
sax\
saxon\
sc\
scaddins\
sccomp\
......@@ -245,7 +246,6 @@ postprocess\
python\
redland\
rhino\
saxon\
setup_native\
stax\
stlport\
......
......@@ -483,6 +483,7 @@ export RTL_ARCH=@RTL_ARCH@
export SAC_JAR=@SAC_JAR@
export SAL_ENABLE_FILE_LOCKING=1
export SAXON_JAR=@SAXON_JAR@
export SAXON_TARBALL=@SAXON_TARBALL@
export SCPDEFS=@SCPDEFS@
export SERVLETAPI_JAR=@SERVLETAPI_JAR@
export SHOWINCLUDES_PREFIX=@SHOWINCLUDES_PREFIX@
......
......@@ -7697,9 +7697,11 @@ else
AC_MSG_RESULT([internal])
SYSTEM_SAXON=NO
NEED_SAXON=TRUE
SAXON_TARBALL=ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
fi
fi
AC_SUBST(SYSTEM_SAXON)
AC_SUBST(SAXON_TARBALL)
AC_SUBST(SAXON_JAR)
if test -n "$NEED_SAXON"; then
......
# -*- 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,saxon))
$(eval $(call gb_ExternalProject_use_unpacked,saxon,saxon))
$(eval $(call gb_ExternalProject_register_targets,saxon,\
build \
))
$(call gb_ExternalProject_get_state_target,saxon,build) :
cd "$(call gb_UnpackedTarball_get_dir,saxon)" && \
ANT_OPTS="$$ANT_OPTS -Dfile.encoding=ISO-8859-1" \
"$(ANT)" \
-q \
-f build.xml \
-Dbuild.label="build-libreoffice" \
$(if $(filter YES,$(SYSTEM_TOMCAT))\
,-Dservletapi.jar=$(SERVLETAPI_JAR) \
,-Dservletapi.jar=$(SOLARVER)/$(INPATH)/bin/servlet-api.jar \
)\
$(if $(filter yes,$(JAVACISGCJ))\
,-Dbuild.compiler=gcj \
,-Dant.build.javac.source=$(JAVA_SOURCE_VER) \
-Dant.build.javac.target=$(JAVA_TARGET_VER) \
) \
$(if $(debug),-Dbuild.debug="on") \
-Dsolarbindir=$(SOLARBINDIR) jar-bj && \
touch $@
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(module_directory)/../solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4:
# -*- 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_Module_Module,saxon))
ifneq ($(SOLAR_JAVA),)
ifneq ($(filter SAXON,$(BUILD_TYPE)),)
$(eval $(call gb_Module_add_targets,saxon,\
ExternalProject_saxon \
Package_saxon \
UnpackedTarball_saxon \
))
endif
endif
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,saxon_inc,$(call gb_UnpackedTarball_get_dir,saxon)))
$(eval $(call gb_Package_use_external_project,saxon_inc,saxon))
$(eval $(call gb_Package_add_file,saxon_inc,bin/saxon9.jar,saxon-build/9.0.0.7/bj/saxon9.jar))
# vim: set noet sw=4 ts=4:
# -*- 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_UnpackedTarball_UnpackedTarball,saxon))
$(eval $(call gb_UnpackedTarball_set_tarball,saxon,$(SAXON_TARBALL)))
$(eval $(call gb_UnpackedTarball_add_file,saxon,build.xml,saxon/build.xml))
# vim: set noet sw=4 ts=4:
This diff is collapsed.
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=.
PRJNAME=saxon
TARGET=saxon
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE : antsettings.mk
.IF "$(SOLAR_JAVA)" != ""
.IF "$(SYSTEM_SAXON)" == "YES"
all:
@echo "An already available installation of saxon should exist on your system."
@echo "Therefore the version provided here does not need to be built in addition."
.ENDIF
# --- Files --------------------------------------------------------
TARFILE_NAME=source-9.0.0.7-bj
TARFILE_MD5=ada24d37d8d638b3d8a9985e80bc2978
ADDITIONAL_FILES=build.xml
TARFILE_ROOTDIR=src
PATCH_FILES=saxon-9.0.0.7-bj.patch
BUILD_ACTION="$(ANT)" $(ANT_FLAGS) -Dsolarbindir=$(SOLARBINDIR) jar-bj
OUT2CLASS= saxon-build$/9.0.0.7$/bj$/saxon9.jar
.ELSE # $(SOLAR_JAVA)!= ""
nojava:
@echo "Not building $(PRJNAME) because Java is disabled"
.ENDIF # $(SOLAR_JAVA)!= ""
# --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk
.INCLUDE : target.mk
.IF "$(SOLAR_JAVA)" != ""
.INCLUDE : tg_ext.mk
.ENDIF
xx saxon : solenv stax NULL
xx saxon nmake - all xx_saxon NULL
xx saxon\prj nmake - all xx_saxon NULL
..\%__SRC%\class\saxon9.jar %_DEST%\bin\saxon9.jar
This diff is collapsed.
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