diff options
| author | krasimir <krasimir@chalmers.se> | 2015-09-03 10:27:50 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2015-09-03 10:27:50 +0000 |
| commit | 7064181860d4ff4848c9632aa8c57ba103127532 (patch) | |
| tree | 499f242f6e12f1d8c3dcbfcd8ed98cbb8b4ba71a /src/runtime | |
| parent | e97e377b055b1532d5cb2fc555b566551d1ed2a3 (diff) | |
the Eclipse project for the Java binding is now replaced with a simple Makefile
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/java/.classpath | 10 | ||||
| -rw-r--r-- | src/runtime/java/.cproject | 167 | ||||
| -rw-r--r-- | src/runtime/java/.project | 89 | ||||
| -rw-r--r-- | src/runtime/java/.settings/org.eclipse.jdt.core.prefs | 11 | ||||
| -rw-r--r-- | src/runtime/java/INSTALL | 32 | ||||
| -rw-r--r-- | src/runtime/java/JPGFJar.jardesc | 16 | ||||
| -rw-r--r-- | src/runtime/java/Makefile | 30 |
7 files changed, 40 insertions, 315 deletions
diff --git a/src/runtime/java/.classpath b/src/runtime/java/.classpath deleted file mode 100644 index 348eb9a2e..000000000 --- a/src/runtime/java/.classpath +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path=""/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> - <attributes> - <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="/home/krasimir/www.grammaticalframework.org/src/runtime/java/Release\ (posix)"/> - </attributes> - </classpathentry> - <classpathentry kind="output" path=""/> -</classpath> diff --git a/src/runtime/java/.cproject b/src/runtime/java/.cproject deleted file mode 100644 index 2e167b3b0..000000000 --- a/src/runtime/java/.cproject +++ /dev/null @@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> - <storageModule moduleId="org.eclipse.cdt.core.settings"> - <cconfiguration id="cdt.managedbuild.config.gnu.so.debug.400252551"> - <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.so.debug.400252551" moduleId="org.eclipse.cdt.core.settings" name="Release (posix)"> - <externalSettings> - <externalSetting> - <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/jpgf"/> - <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/jpgf/Debug"/> - <entry flags="RESOLVED" kind="libraryFile" name="jpgf"/> - </externalSetting> - </externalSettings> - <extensions> - <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> - <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - </extensions> - </storageModule> - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> - <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.so.debug.400252551" name="Release (posix)" parent="cdt.managedbuild.config.gnu.so.debug"> - <folderInfo id="cdt.managedbuild.config.gnu.so.debug.400252551." name="/" resourcePath=""> - <toolChain id="cdt.managedbuild.toolchain.gnu.so.debug.1905300886" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.so.debug"> - <targetPlatform id="cdt.managedbuild.target.gnu.platform.so.debug.132269439" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.so.debug"/> - <builder buildPath="${workspace_loc:/jpgf/Debug}" id="cdt.managedbuild.target.gnu.builder.so.debug.615272281" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.so.debug"/> - <tool id="cdt.managedbuild.tool.gnu.archiver.base.1325033150" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/> - <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug.1459920520" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug"> - <option id="gnu.cpp.compiler.so.debug.option.optimization.level.475858942" name="Optimization Level" superClass="gnu.cpp.compiler.so.debug.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/> - <option id="gnu.cpp.compiler.so.debug.option.debugging.level.1323080663" name="Debug Level" superClass="gnu.cpp.compiler.so.debug.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/> - <option id="gnu.cpp.compiler.option.other.other.560771143" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" value="-c -fmessage-length=0" valueType="string"/> - <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.59690088" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/> - </tool> - <tool id="cdt.managedbuild.tool.gnu.c.compiler.so.debug.1600970468" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.so.debug"> - <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.so.debug.option.optimization.level.1028605957" name="Optimization Level" superClass="gnu.c.compiler.so.debug.option.optimization.level" value="gnu.c.optimization.level.most" valueType="enumerated"/> - <option id="gnu.c.compiler.so.debug.option.debugging.level.1237207564" name="Debug Level" superClass="gnu.c.compiler.so.debug.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> - <option id="gnu.c.compiler.option.misc.other.1175867299" name="Other flags" superClass="gnu.c.compiler.option.misc.other" value="-c -fmessage-length=0 -std=c99" valueType="string"/> - <option id="gnu.c.compiler.option.include.paths.1273937011" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> - <listOptionValue builtIn="false" value="/usr/lib/jvm/java-7-openjdk/include"/> - </option> - <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1522940706" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> - </tool> - <tool id="cdt.managedbuild.tool.gnu.c.linker.so.debug.470664219" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.so.debug"> - <option defaultValue="true" id="gnu.c.link.so.debug.option.shared.1395047256" name="Shared (-shared)" superClass="gnu.c.link.so.debug.option.shared" valueType="boolean"/> - </tool> - <tool command="gcc" id="cdt.managedbuild.tool.gnu.cpp.linker.so.debug.306083539" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.so.debug"> - <option defaultValue="true" id="gnu.cpp.link.so.debug.option.shared.1316858145" name="Shared (-shared)" superClass="gnu.cpp.link.so.debug.option.shared" valueType="boolean"/> - <option id="gnu.cpp.link.option.libs.601396999" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs"> - <listOptionValue builtIn="false" value="pgf"/> - <listOptionValue builtIn="false" value="gu"/> - </option> - <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.573177258" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> - <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> - <additionalInput kind="additionalinput" paths="$(LIBS)"/> - </inputType> - </tool> - <tool id="cdt.managedbuild.tool.gnu.assembler.so.debug.1889047242" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.so.debug"> - <inputType id="cdt.managedbuild.tool.gnu.assembler.input.2068327306" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> - </tool> - </toolChain> - </folderInfo> - </configuration> - </storageModule> - <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> - </cconfiguration> - <cconfiguration id="cdt.managedbuild.config.gnu.so.debug.400252551.415443871"> - <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.so.debug.400252551.415443871" moduleId="org.eclipse.cdt.core.settings" name="Release (mingw)"> - <externalSettings> - <externalSetting> - <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/jpgf"/> - <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/jpgf/Release (mingw)"/> - <entry flags="RESOLVED" kind="libraryFile" name="jpgf"/> - </externalSetting> - </externalSettings> - <extensions> - <extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/> - <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> - </extensions> - </storageModule> - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> - <configuration artifactExtension="dll" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.so.debug.400252551.415443871" name="Release (mingw)" parent="cdt.managedbuild.config.gnu.so.debug"> - <folderInfo id="cdt.managedbuild.config.gnu.so.debug.400252551.415443871." name="/" resourcePath=""> - <toolChain id="cdt.managedbuild.toolchain.gnu.mingw.base.756002497" name="MinGW GCC" superClass="cdt.managedbuild.toolchain.gnu.mingw.base"> - <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.PE" id="cdt.managedbuild.target.gnu.platform.mingw.base.1994470539" name="Debug Platform" osList="win32" superClass="cdt.managedbuild.target.gnu.platform.mingw.base"/> - <builder buildPath="${workspace_loc:/jpgf/Release (mingw)}" id="cdt.managedbuild.tool.gnu.builder.mingw.base.764852467" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="cdt.managedbuild.tool.gnu.builder.mingw.base"/> - <tool id="cdt.managedbuild.tool.gnu.assembler.mingw.base.227733196" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.base"> - <inputType id="cdt.managedbuild.tool.gnu.assembler.input.84396068" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> - </tool> - <tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.970459230" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/> - <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base.195782523" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base"> - <option id="gnu.cpp.compiler.option.optimization.level.2015381354" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/> - <option id="gnu.cpp.compiler.option.debugging.level.1457772208" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/> - <option id="gnu.cpp.compiler.option.other.other.323180951" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" value="-c -fmessage-length=0" valueType="string"/> - <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.232555129" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/> - </tool> - <tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.base.1259094523" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.base"> - <option id="gnu.c.compiler.option.include.paths.1776995237" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> - <listOptionValue builtIn="false" value=""C:\Program Files (x86)\Java\jdk1.7.0_51\include""/> - <listOptionValue builtIn="false" value=""C:\Program Files (x86)\Java\jdk1.7.0_51\include\win32""/> - <listOptionValue builtIn="false" value=""C:\MinGW\msys\1.0\local\include""/> - </option> - <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1404563836" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/> - <option id="gnu.c.compiler.option.debugging.level.1676149610" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/> - <option id="gnu.c.compiler.option.misc.other.377825244" name="Other flags" superClass="gnu.c.compiler.option.misc.other" value="-c -fmessage-length=0 -std=c99" valueType="string"/> - <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1736887742" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> - </tool> - <tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.base.1953423488" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.base"> - <option defaultValue="true" id="gnu.c.link.option.shared.1262136350" name="Shared (-shared)" superClass="gnu.c.link.option.shared" valueType="boolean"/> - </tool> - <tool command="gcc" id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base.878685990" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base"> - <option id="gnu.cpp.link.option.libs.1815503138" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs"> - <listOptionValue builtIn="false" value="pgf"/> - <listOptionValue builtIn="false" value="gu"/> - </option> - <option defaultValue="true" id="gnu.cpp.link.option.shared.3654012" name="Shared (-shared)" superClass="gnu.cpp.link.option.shared" valueType="boolean"/> - <option id="gnu.cpp.link.option.other.1495789190" name="Other options (-Xlinker [option])" superClass="gnu.cpp.link.option.other" valueType="stringList"> - <listOptionValue builtIn="false" value="-add-stdcall-alias"/> - </option> - <option id="gnu.cpp.link.option.paths.896448277" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths"> - <listOptionValue builtIn="false" value=""C:\MinGW\msys\1.0\local\lib""/> - </option> - <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.281376813" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> - <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> - <additionalInput kind="additionalinput" paths="$(LIBS)"/> - </inputType> - <outputType id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.output.base.896725969" outputPrefix="" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.so.output.base"/> - </tool> - </toolChain> - </folderInfo> - </configuration> - </storageModule> - <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> - </cconfiguration> - </storageModule> - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> - <project id="jpgf.cdt.managedbuild.target.gnu.so.1549632642" name="Shared Library" projectType="cdt.managedbuild.target.gnu.so"/> - </storageModule> - <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> - <storageModule moduleId="refreshScope" versionNumber="1"> - <resource resourceType="PROJECT" workspacePath="/jpgf"/> - </storageModule> - <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> - <storageModule moduleId="scannerConfiguration"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.debug.400252551.415443871;cdt.managedbuild.config.gnu.so.debug.400252551.415443871.;cdt.managedbuild.tool.gnu.c.compiler.mingw.base.1259094523;cdt.managedbuild.tool.gnu.c.compiler.input.1736887742"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> - </scannerConfigBuildInfo> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.debug.400252551.415443871;cdt.managedbuild.config.gnu.so.debug.400252551.415443871.;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base.195782523;cdt.managedbuild.tool.gnu.cpp.compiler.input.232555129"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/> - </scannerConfigBuildInfo> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.release.808271744;cdt.managedbuild.config.gnu.so.release.808271744.;cdt.managedbuild.tool.gnu.c.compiler.so.release.1919617596;cdt.managedbuild.tool.gnu.c.compiler.input.1998701425"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> - </scannerConfigBuildInfo> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.debug.400252551;cdt.managedbuild.config.gnu.so.debug.400252551.;cdt.managedbuild.tool.gnu.cpp.compiler.so.debug.1459920520;cdt.managedbuild.tool.gnu.cpp.compiler.input.59690088"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/> - </scannerConfigBuildInfo> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.release.808271744;cdt.managedbuild.config.gnu.so.release.808271744.;cdt.managedbuild.tool.gnu.cpp.compiler.so.release.883481825;cdt.managedbuild.tool.gnu.cpp.compiler.input.338464915"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/> - </scannerConfigBuildInfo> - <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.so.debug.400252551;cdt.managedbuild.config.gnu.so.debug.400252551.;cdt.managedbuild.tool.gnu.c.compiler.so.debug.1600970468;cdt.managedbuild.tool.gnu.c.compiler.input.1522940706"> - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> - </scannerConfigBuildInfo> - </storageModule> -</cproject> diff --git a/src/runtime/java/.project b/src/runtime/java/.project deleted file mode 100644 index ee427e472..000000000 --- a/src/runtime/java/.project +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>jpgf</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> - <triggers>clean,full,incremental,</triggers> - <arguments> - <dictionary> - <key>?name?</key> - <value></value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.append_environment</key> - <value>true</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.autoBuildTarget</key> - <value>all</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.buildArguments</key> - <value></value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.buildCommand</key> - <value>make</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.buildLocation</key> - <value>${workspace_loc:/jpgf/Debug}</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> - <value>clean</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.contents</key> - <value>org.eclipse.cdt.make.core.activeConfigSettings</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.enableAutoBuild</key> - <value>false</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.enableCleanBuild</key> - <value>true</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.enableFullBuild</key> - <value>true</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.fullBuildTarget</key> - <value>all</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.stopOnError</key> - <value>true</value> - </dictionary> - <dictionary> - <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> - <value>true</value> - </dictionary> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> - <triggers>full,incremental,</triggers> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.cdt.core.cnature</nature> - <nature>org.eclipse.cdt.core.ccnature</nature> - <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> - <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> - </natures> -</projectDescription> diff --git a/src/runtime/java/.settings/org.eclipse.jdt.core.prefs b/src/runtime/java/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8000cd6ca..000000000 --- a/src/runtime/java/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/src/runtime/java/INSTALL b/src/runtime/java/INSTALL index b5be636fa..6d97dd279 100644 --- a/src/runtime/java/INSTALL +++ b/src/runtime/java/INSTALL @@ -1,22 +1,10 @@ -Before compiling Java binding you first need to have the C runtime -compiled and installed. In order to compile the binding itself you need -Eclipse plus the plugin for compiling C projects in -Eclipse (https://www.eclipse.org/cdt). Follow the instructions on -the web site. - -After you have done the above, import the directory where you have found -this INSTALL file as an existing project in Eclipse. The project has -two configurations one for Posix (Linux) systems and one for Windows. -You can change the configuration by right clicking on the project -and choosing "Properties" from the menu. Then go to C/C++ Build -and click on the button "Manage Configurations". Change the active -configuration from there. Now go to "C/C++ Build / Tool Chain Editor" -and check whether the current tool chain is the one for your platform. - -Build the project by selecting the menu "Project / Build Project". - -On Windows you might also have to change the following directories -from the "Properties" dialog: - -C/C++ Build / Settings / GCC C Compiler / Includes / Include paths -C/C++ Build / Settings / MinGW C++ Linker / Libraries / Library search paths +Before compiling the Java binding you first need to have the C runtime +compiled and installed. You also need to find where your jni.h header +is installed. It is part of the Java JDK, but it might be placed +in different places on different platforms. The path to the jni.h +header should be assigned to the JNI_PATH variable in the beginning +of the Makefile that you will find in the root directory of +the binding. Once this is done type: + +$ make +$ make install diff --git a/src/runtime/java/JPGFJar.jardesc b/src/runtime/java/JPGFJar.jardesc deleted file mode 100644 index 1c35491fb..000000000 --- a/src/runtime/java/JPGFJar.jardesc +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<jardesc> - <jar path="jpgf/jpgf.jar"/> - <options buildIfNeeded="true" compress="true" descriptionLocation="/jpgf/JPGFJar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/> - <storedRefactorings deprecationInfo="true" structuralOnly="false"/> - <selectedProjects/> - <manifest generateManifest="true" manifestLocation="" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true"> - <sealing sealJar="false"> - <packagesToSeal/> - <packagesToUnSeal/> - </sealing> - </manifest> - <selectedElements exportClassFiles="true" exportJavaFiles="false" exportOutputFolder="false"> - <javaElement handleIdentifier="=jpgf/<org.grammaticalframework.pgf"/> - </selectedElements> -</jardesc> diff --git a/src/runtime/java/Makefile b/src/runtime/java/Makefile new file mode 100644 index 000000000..cb8000fd2 --- /dev/null +++ b/src/runtime/java/Makefile @@ -0,0 +1,30 @@ +C_SOURCES = jpgf.c jsg.c +JAVA_SOURCES = $(wildcard org/grammaticalframework/pgf/*.java) \ + $(wildcard org/grammaticalframework/sg/*.java) + +JNI_PATH = /usr/lib/jvm/default-java/include +INSTALL_PATH = /usr/local/lib + +all: libjpgf.la jpgf.jar + +libjpgf.la: $(patsubst %.c, %.lo, $(C_SOURCES)) + libtool --mode=link gcc -g -O -o libjpgf.la -shared $^ -rpath $(INSTALL_PATH) -lgu -lpgf -lsg + +%.lo : %.c + libtool --mode=compile gcc -g -O -c -I$(JNI_PATH) -std=c99 -shared $< -o $@ + +jpgf.jar: $(patsubst %.java, %.class, $(JAVA_SOURCES)) + jar -cf $@ $^ + +%.class : %.java + javac $< + +install: libjpgf.la jpgf.jar + libtool --mode=install install -s libjpgf.la $(INSTALL_PATH) + +clean: + rm -f *.lo + rm -f *.la + rm -f -r .libs + rm -f *.jar + rm -f org/grammaticalframework/*/*.class |
