summaryrefslogtreecommitdiff
path: root/tomcat
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-09-29 02:02:03 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-09-29 02:43:28 -0500
commit311babc08009ff4014f9b6b14d82ca41f5e6f942 (patch)
tree9c37fb7787108cc3ca4a5ecb52e8b9afd8f9f172 /tomcat
parentd756f2a304ed0921e1791c8eb91ce7fb7a085529 (diff)
gbuildify tomcat
Change-Id: Ibd7b71292450db8e3e98f9ede5a836182eb38770
Diffstat (limited to 'tomcat')
-rw-r--r--tomcat/ExternalProject_tomcat.mk36
-rw-r--r--tomcat/Makefile7
-rw-r--r--tomcat/Module_tomcat.mk22
-rw-r--r--tomcat/Package_tomcat.mk16
-rw-r--r--tomcat/UnpackedTarball_tomcat.mk17
-rw-r--r--tomcat/build.xml31
-rw-r--r--tomcat/prj/build.lst2
-rw-r--r--tomcat/prj/d.lst2
-rw-r--r--tomcat/prj/dmake0
-rw-r--r--tomcat/tomcat.patch35
10 files changed, 131 insertions, 37 deletions
diff --git a/tomcat/ExternalProject_tomcat.mk b/tomcat/ExternalProject_tomcat.mk
new file mode 100644
index 000000000000..48c063f7c8f8
--- /dev/null
+++ b/tomcat/ExternalProject_tomcat.mk
@@ -0,0 +1,36 @@
+# -*- 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/.
+#
+
+# for RSCREVISION
+include $(SOLARENV)/inc/minor.mk
+
+$(eval $(call gb_ExternalProject_ExternalProject,tomcat))
+
+$(eval $(call gb_ExternalProject_use_unpacked,tomcat,tomcat))
+
+$(eval $(call gb_ExternalProject_register_targets,tomcat,\
+ build \
+))
+
+$(call gb_ExternalProject_get_state_target,tomcat,build) :
+ cd "$(call gb_UnpackedTarball_get_dir,tomcat)/jakarta-servletapi-5" && \
+ "$(ANT)" \
+ -q \
+ -f build.xml \
+ -Dbuild.label="build-$(RSCREVISION)" \
+ $(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") \
+ && \
+ touch $@
+
+# vim: set noet sw=4 ts=4:
diff --git a/tomcat/Makefile b/tomcat/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/tomcat/Makefile
@@ -0,0 +1,7 @@
+# -*- 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:
diff --git a/tomcat/Module_tomcat.mk b/tomcat/Module_tomcat.mk
new file mode 100644
index 000000000000..ffe909089a3a
--- /dev/null
+++ b/tomcat/Module_tomcat.mk
@@ -0,0 +1,22 @@
+# -*- 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,tomcat))
+
+ifneq ($(SOLAR_JAVA),)
+ifneq ($(filter TOMCAT,$(BUILD_TYPE)),)
+$(eval $(call gb_Module_add_targets,tomcat,\
+ ExternalProject_tomcat \
+ Package_tomcat \
+ UnpackedTarball_tomcat \
+))
+endif
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/tomcat/Package_tomcat.mk b/tomcat/Package_tomcat.mk
new file mode 100644
index 000000000000..8cd451254f69
--- /dev/null
+++ b/tomcat/Package_tomcat.mk
@@ -0,0 +1,16 @@
+# -*- 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,tomcat_inc,$(call gb_UnpackedTarball_get_dir,tomcat)))
+
+$(eval $(call gb_Package_use_external_project,tomcat_inc,tomcat))
+
+$(eval $(call gb_Package_add_file,tomcat_inc,bin/servlet-api.jar,jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar))
+
+# vim: set noet sw=4 ts=4:
diff --git a/tomcat/UnpackedTarball_tomcat.mk b/tomcat/UnpackedTarball_tomcat.mk
new file mode 100644
index 000000000000..6e6a71631491
--- /dev/null
+++ b/tomcat/UnpackedTarball_tomcat.mk
@@ -0,0 +1,17 @@
+# -*- 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,tomcat))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,tomcat,$(TOMCAT_TARBALL)))
+
+
+$(eval $(call gb_UnpackedTarball_add_file,tomcat,jakarta-servletapi-5/build.xml,tomcat/build.xml))
+
+# vim: set noet sw=4 ts=4:
diff --git a/tomcat/build.xml b/tomcat/build.xml
new file mode 100644
index 000000000000..2d54d3df39da
--- /dev/null
+++ b/tomcat/build.xml
@@ -0,0 +1,31 @@
+<project name="jsr152 and jsr154 in Debian" default="debuild" basedir=".">
+
+ <target name="debuild"
+ description="Build jsr154 and jsr152 for Debian (Default)">
+ <echo message="Building Servlet 2.4 API"/>
+ <ant antfile="jsr154/build.xml"
+ target="dist"
+ inheritAll="false"
+ />
+ <echo message="Building JSP 2.0 API"/>
+ <ant antfile="jsr152/build.xml"
+ target="dist"
+ inheritAll="false"
+ />
+ </target>
+
+ <target name="clean" description="Clean">
+ <echo message="Cleaning JSP 2.0 API"/>
+ <ant antfile="jsr152/build.xml"
+ target="clean"
+ inheritAll="false"
+ />
+ <echo message="Cleaning Servlet 2.4 API"/>
+ <ant antfile="jsr154/build.xml"
+ target="clean"
+ inheritAll="false"
+ />
+ <delete dir="tmp"/>
+ </target>
+
+</project>
diff --git a/tomcat/prj/build.lst b/tomcat/prj/build.lst
index 184f6dd19b3e..eca653ba9490 100644
--- a/tomcat/prj/build.lst
+++ b/tomcat/prj/build.lst
@@ -1,2 +1,2 @@
to tomcat : solenv NULL
-to tomcat nmake - all to_mkout NULL
+to tomcat/prj nmake - all to_prj NULL
diff --git a/tomcat/prj/d.lst b/tomcat/prj/d.lst
index 41530ac07cf4..8b137891791f 100644
--- a/tomcat/prj/d.lst
+++ b/tomcat/prj/d.lst
@@ -1 +1 @@
-..\%__SRC%\misc\build\jakarta-tomcat-5.0.30-src\jakarta-servletapi-5\jsr154\dist\lib\servlet-api.jar %_DEST%\bin\servlet-api.jar
+
diff --git a/tomcat/prj/dmake b/tomcat/prj/dmake
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/tomcat/prj/dmake
+++ /dev/null
diff --git a/tomcat/tomcat.patch b/tomcat/tomcat.patch
deleted file mode 100644
index 1815660b1b5b..000000000000
--- a/tomcat/tomcat.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- misc/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml Thu Jun 19 16:03:59 2008
-+++ misc/build/jakarta-tomcat-5.0.30-src/jakarta-servletapi-5/build.xml Thu Jun 19 15:56:18 2008
-@@ -1,1 +1,31 @@
--dummy
-+<project name="jsr152 and jsr154 in Debian" default="debuild" basedir=".">
-+
-+ <target name="debuild"
-+ description="Build jsr154 and jsr152 for Debian (Default)">
-+ <echo message="Building Servlet 2.4 API"/>
-+ <ant antfile="jsr154/build.xml"
-+ target="dist"
-+ inheritAll="false"
-+ />
-+ <echo message="Building JSP 2.0 API"/>
-+ <ant antfile="jsr152/build.xml"
-+ target="dist"
-+ inheritAll="false"
-+ />
-+ </target>
-+
-+ <target name="clean" description="Clean">
-+ <echo message="Cleaning JSP 2.0 API"/>
-+ <ant antfile="jsr152/build.xml"
-+ target="clean"
-+ inheritAll="false"
-+ />
-+ <echo message="Cleaning Servlet 2.4 API"/>
-+ <ant antfile="jsr154/build.xml"
-+ target="clean"
-+ inheritAll="false"
-+ />
-+ <delete dir="tmp"/>
-+ </target>
-+
-+</project>