summaryrefslogtreecommitdiff
path: root/nlpsolver
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-10-02 09:28:28 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-10-02 09:28:28 -0400
commit43bb0120d974bbc020e02365e9bf91df3e6324a4 (patch)
tree79457c3d71782ef21953ba248cdf942e18f19202 /nlpsolver
parentbdbc0a5eb99a9e82f97130d045d63ab08f848baa (diff)
Added new module nlpsolver.
Diffstat (limited to 'nlpsolver')
-rw-r--r--nlpsolver/makefile.mk73
-rw-r--r--nlpsolver/nlpsolver-0.9.patch51
-rw-r--r--nlpsolver/prj/build.lst3
-rw-r--r--nlpsolver/prj/d.lst1
4 files changed, 128 insertions, 0 deletions
diff --git a/nlpsolver/makefile.mk b/nlpsolver/makefile.mk
new file mode 100644
index 000000000000..3c160c00c1a9
--- /dev/null
+++ b/nlpsolver/makefile.mk
@@ -0,0 +1,73 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2008 by Sun Microsystems, Inc.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.10 $
+#
+# 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=nlpsolver
+TARGET=nlpsolver
+
+.IF "$(SOLAR_JAVA)"!=""
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+.INCLUDE : antsettings.mk
+
+# --- Files --------------------------------------------------------
+
+TARFILE_MD5=90401bca927835b6fbae4a707ed187c8
+TARFILE_NAME=nlpsolver-0.9
+TARFILE_ROOTDIR=nlpsolver-0.9
+
+#ADDITIONAL_FILES= \
+# toolsrc/org/mozilla/javascript/tools/debugger/OfficeScriptInfo.java
+
+PATCH_FILES=nlpsolver-0.9.patch
+
+ANT_FLAGS+=-Dplatforms.JDK_1.5.home=$(JAVA_HOME) -Doffice.program.dir=$(SOLARBINDIR)
+
+.IF "$(JAVACISGCJ)"=="yes"
+JAVA_HOME=
+.EXPORT : JAVA_HOME
+BUILD_ACTION=$(ANT) $(ANT_FLAGS) -Dbuild.label="build-$(RSCREVISION)" -Dbuild.compiler=gcj uno-package
+.ELSE
+BUILD_ACTION=$(ANT) $(ANT_FLAGS) -Dbuild.label="build-$(RSCREVISION)" -Dplatforms.JDK_1.5.home=$(JAVA_HOME) -Dant.build.javac.source=$(JAVA_SOURCE_VER) -Dant.build.javac.target=$(JAVA_TARGET_VER) uno-package
+.ENDIF
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : set_ext.mk
+.INCLUDE : target.mk
+.INCLUDE : tg_ext.mk
+
+.ELSE
+all:
+ @echo java disabled
+.ENDIF
diff --git a/nlpsolver/nlpsolver-0.9.patch b/nlpsolver/nlpsolver-0.9.patch
new file mode 100644
index 000000000000..0c851bfb8382
--- /dev/null
+++ b/nlpsolver/nlpsolver-0.9.patch
@@ -0,0 +1,51 @@
+--- misc/nlpsolver-0.9/nbproject/build-uno-impl.xml.old 2009-03-30 18:32:00.000000000 +0200
++++ misc/build/nlpsolver-0.9/nbproject/build-uno-impl.xml 2009-10-28 18:22:40.000000000 +0100
+@@ -197,7 +197,7 @@
+ <!-- enter the class path with external jars, if external jars exit and the user did not enter his own -->
+ <target name="-do-class-path" depends="-external-jars,-check-class-path" unless="class.path.exists">
+ <manifest file="${build.dir}/MANIFEST.MF" mode="update">
+- <attribute name="Class-Path" value="${external.jars}"/>
++ <attribute name="Class-Path" value="${external.jar.dir}/EvolutionarySolver.jar"/>
+ </manifest>
+ </target>
+ <target name="-check-class-path">
+--- misc/nlpsolver-0.9/nbproject/project.properties.old 2009-03-30 18:32:00.000000000 +0200
++++ misc/build/nlpsolver-0.9/nbproject/project.properties 2009-10-28 18:09:01.000000000 +0100
+@@ -27,8 +27,10 @@ file.reference.EvolutionarySolver.jar=Th
+ includes=**
+ jar.compress=false
+ javac.classpath=\
+- ${libs.StarOffice 9.classpath}:\
+- ${libs.OpenOffice.org 3.0.classpath}:\
++ ${solar.jar}/juh.jar:\
++ ${solar.jar}/jurt.jar:\
++ ${solar.jar}/ridl.jar:\
++ ${solar.jar}/unoil.jar:\
+ ${reference.EvolutionarySolver.jar}
+ # Space-separated list of extra javac options
+ javac.compilerargs=
+--- misc/nlpsolver-0.9/nbproject/build-impl.xml.old 2009-03-30 18:32:00.000000000 +0200
++++ misc/build/nlpsolver-0.9/nbproject/build-impl.xml 2009-10-28 18:19:53.000000000 +0100
+@@ -360,6 +360,8 @@ is divided into following sections:
+ -->
+ <target depends="init" name="deps-jar" unless="no.deps">
+ <ant antfile="${project.EvolutionarySolver}/build.xml" inheritall="false" target="jar"/>
++ <mkdir dir="${dist.dir}/${external.jar.dir}"/>
++ <copy file="${reference.EvolutionarySolver.jar}" todir="${dist.dir}/${external.jar.dir}"/>
+ </target>
+ <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
+ <target depends="init" name="-check-automatic-build">
+--- misc/nlpsolver-0.9/src/description.xml.old 2009-03-30 16:56:42.000000000 +0200
++++ misc/build/nlpsolver-0.9/src/description.xml 2009-10-28 18:29:13.000000000 +0100
+@@ -12,11 +12,6 @@
+ <extension-description>
+ <src lang="en" xlink:href="description/extensiondescription.txt"/>
+ </extension-description>
+- <registration>
+- <simple-license accept-by="admin" default-license-id="en">
+- <license-text lang="en" license-id="en" xlink:href="licenses/lgpl-3.0.txt"/>
+- </simple-license>
+- </registration>
+ <dependencies>
+ <OpenOffice.org-minimal-version xmlns:d="http://openoffice.org/extensions/description/2006" d:name="OpenOffice.org 3.0" value="3.0"/>
+ </dependencies>
diff --git a/nlpsolver/prj/build.lst b/nlpsolver/prj/build.lst
new file mode 100644
index 000000000000..f0bec54048bf
--- /dev/null
+++ b/nlpsolver/prj/build.lst
@@ -0,0 +1,3 @@
+nlpsolver nlpsolver : javaunohelper unoil jurt NULL NULL
+nlpsolver nlpsolver usr1 - all nlpsolver_mkout NULL
+nlpsolver nlpsolver nmake - all nlpsolver_nlpsolver NULL
diff --git a/nlpsolver/prj/d.lst b/nlpsolver/prj/d.lst
new file mode 100644
index 000000000000..0e8c13757a6c
--- /dev/null
+++ b/nlpsolver/prj/d.lst
@@ -0,0 +1 @@
+..\%__SRC%\misc\build\nlpsolver-0.9/dist\NLPSolver.oxt %_DEST%\bin%_EXT%\NLPSolver.oxt