Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorVivian Kong2008-03-13 10:18:02 -0400
committerVivian Kong2008-03-13 10:18:02 -0400
commitf7b9c1941b78c72d3bde201b9e31f46103373684 (patch)
tree0da2feac0431a296c36dcc535c69f9ed6b8c3c27 /releng
parent8cfa0b6b690295abaae98099a19ce7a5a4bcc57e (diff)
downloadorg.eclipse.cdt-f7b9c1941b78c72d3bde201b9e31f46103373684.tar.gz
org.eclipse.cdt-f7b9c1941b78c72d3bde201b9e31f46103373684.tar.xz
org.eclipse.cdt-f7b9c1941b78c72d3bde201b9e31f46103373684.zip
add lrparser to build (bug 222474)
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.cdt.releng/build.xml26
-rw-r--r--releng/org.eclipse.cdt.releng/buildindex.html5
-rw-r--r--releng/org.eclipse.cdt.releng/buildsite.xml7
-rw-r--r--releng/org.eclipse.cdt.releng/lrparser/build.properties95
-rw-r--r--releng/org.eclipse.cdt.releng/lrparser/customTargets.xml138
-rw-r--r--releng/org.eclipse.cdt.releng/maps/cdt.map12
6 files changed, 243 insertions, 40 deletions
diff --git a/releng/org.eclipse.cdt.releng/build.xml b/releng/org.eclipse.cdt.releng/build.xml
index eb3523e44d3..6914062dfa2 100644
--- a/releng/org.eclipse.cdt.releng/build.xml
+++ b/releng/org.eclipse.cdt.releng/build.xml
@@ -56,14 +56,9 @@
<ant antfile="build.xml" dir="${pde.build.scripts}" target="preBuild">
<property name="builder" value="${basedir}/gdbjtag"/>
</ant>
- <!--
- <ant antfile="build.xml" dir="${pde.build.scripts}" target="preBuild">
- <property name="builder" value="${basedir}/c99"/>
- </ant>
<ant antfile="build.xml" dir="${pde.build.scripts}" target="preBuild">
- <property name="builder" value="${basedir}/upc"/>
+ <property name="builder" value="${basedir}/lrparser"/>
</ant>
- -->
<ant antfile="build.xml" dir="${pde.build.scripts}" target="preBuild">
<property name="builder" value="${basedir}/xlc"/>
</ant>
@@ -79,14 +74,9 @@
<ant antfile="build.xml" dir="${pde.build.scripts}" target="fetch">
<property name="builder" value="${basedir}/gdbjtag"/>
</ant>
- <!--
- <ant antfile="build.xml" dir="${pde.build.scripts}" target="fetch">
- <property name="builder" value="${basedir}/c99"/>
- </ant>
<ant antfile="build.xml" dir="${pde.build.scripts}" target="fetch">
- <property name="builder" value="${basedir}/upc"/>
+ <property name="builder" value="${basedir}/lrparser"/>
</ant>
- -->
<ant antfile="build.xml" dir="${pde.build.scripts}" target="fetch">
<property name="builder" value="${basedir}/xlc"/>
</ant>
@@ -364,21 +354,13 @@
<antcall target="tagone">
<param name="tagmodule" value="org.eclipse.cdt/jtag/org.eclipse.cdt.debug.gdbjtag-feature"/>
</antcall>
- <!--
- <antcall target="tagone">
- <param name="tagmodule" value="org.eclipse.cdt/c99/org.eclipse.cdt.core.parser.c99"/>
- </antcall>
<antcall target="tagone">
- <param name="tagmodule" value="org.eclipse.cdt/c99/org.eclipse.cdt.core.parser.c99.feature"/>
+ <param name="tagmodule" value="org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser"/>
</antcall>
<antcall target="tagone">
- <param name="tagmodule" value="org.eclipse.cdt/upc/org.eclipse.cdt.core.parser.upc"/>
+ <param name="tagmodule" value="org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser.feature"/>
</antcall>
<antcall target="tagone">
- <param name="tagmodule" value="org.eclipse.cdt/upc/org.eclipse.cdt.core.parser.upc.feature"/>
- </antcall>
- -->
- <antcall target="tagone">
<param name="tagmodule" value="org.eclipse.cdt/xlc/org.eclipse.cdt.managedbuilder.xlc.core"/>
</antcall>
<antcall target="tagone">
diff --git a/releng/org.eclipse.cdt.releng/buildindex.html b/releng/org.eclipse.cdt.releng/buildindex.html
index 3f92499ff98..12b4b7dc6fa 100644
--- a/releng/org.eclipse.cdt.releng/buildindex.html
+++ b/releng/org.eclipse.cdt.releng/buildindex.html
@@ -22,10 +22,7 @@ you want to install. You will at nead require the C/C++ Development Tooling feat
<li>CDT SDK Feature - superset of runtime that adds source and extension point schemas</li>
<li>GDB Hardware Debugging - Provides a launch configuration for launching gdb to do hardware debugging.</li>
<li>XL C/C++ Compiler Support - Provides an error parser and managed build support for IBM's XL C/C++ compilers.</li>
-<!--
-<li>ISO C99 Support - Provides a parser for the ISO/IEC 9899:1999 variant of the C programming language (aka C99), generated from a grammar using the LPG parser generator. The grammar can be reused and extended to create your own parser for variants on the C programming language.</li>
-<li>Unified Parallel C Support - Provides support for the Unified Parallel C programming langugage. Provides parsing/indexing infrastructure and language definition, allowing the UPC language to be recognized by CDT. Requires the C99 parser feature.</li>
--->
+<li>LR Parser - Provides a parser for the ISO/IEC 9899:1999 variant of the C programming language (aka C99), generated from a grammar using the LPG parser generator. The grammar can be reused and extended to create your own parser for variants on the C programming language.</li>
<li>CDT Testing Feature - includes all test plugins required for running automated JUnit tests</li>
</ul>
</body>
diff --git a/releng/org.eclipse.cdt.releng/buildsite.xml b/releng/org.eclipse.cdt.releng/buildsite.xml
index b15ec424ffe..f1d0b705dcf 100644
--- a/releng/org.eclipse.cdt.releng/buildsite.xml
+++ b/releng/org.eclipse.cdt.releng/buildsite.xml
@@ -12,14 +12,9 @@
<feature id="org.eclipse.cdt.debug.gdbjtag" url="features/org.eclipse.cdt.debug.gdbjtag_@buildVersion@.jar" version="@buildVersion@">
<category name="CDT Optional Features"/>
</feature>
- <!--
- <feature id="org.eclipse.cdt.core.parser.c99.feature" url="features/org.eclipse.cdt.core.parser.c99.feature_@buildVersion@.jar" version="@buildVersion@">
+ <feature id="org.eclipse.cdt.core.lrparser.feature" url="features/org.eclipse.cdt.core.lrparser.feature_@buildVersion@.jar" version="@buildVersion@">
<category name="CDT Optional Features"/>
</feature>
- <feature id="org.eclipse.cdt.core.parser.upc.feature" url="features/org.eclipse.cdt.core.parser.upc.feature_@buildVersion@.jar" version="@buildVersion@">
- <category name="CDT Optional Features"/>
- </feature>
- -->
<feature id="org.eclipse.cdt.xlc.feature" url="features/org.eclipse.cdt.xlc.feature_@buildVersion@.jar" version="@buildVersion@">
<category name="CDT Optional Features"/>
</feature>
diff --git a/releng/org.eclipse.cdt.releng/lrparser/build.properties b/releng/org.eclipse.cdt.releng/lrparser/build.properties
new file mode 100644
index 00000000000..879dabfe13b
--- /dev/null
+++ b/releng/org.eclipse.cdt.releng/lrparser/build.properties
@@ -0,0 +1,95 @@
+###############################################################################
+# Copyright (c) 2005, 2008 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+# Markus Schorn (Wind River Systems)
+###############################################################################
+#####################
+# Parameters describing how and where to execute the build.
+# Typical users need only update the following properties:
+# baseLocation - where things you are building against are installed
+# bootclasspath - The base jars to compile against (typicaly rt.jar)
+# configs - the list of {os, ws, arch} configurations to build.
+#
+# Of course any of the settings here can be overridden by spec'ing
+# them on the command line (e.g., -DbaseLocation=d:/eclipse
+
+############# CVS CONTROL ################
+# The CVS tag to use when fetching the map files from the repository
+mapVersionTag=HEAD
+
+# The CVS tag to use when fetching elements to build. By default the
+# builder will use whatever is in the maps. Use this value to override
+# for example, when doing a nightly build out of HEAD
+# fetchTag=HEAD
+
+cdtTag=HEAD
+
+############## BUILD / GENERATION CONTROL ################
+# The directory into which the build elements will be fetched and where
+# the build will take place. buildDirectory and install should be the same
+# value.
+buildDirectory=build
+
+# Type of build. Used in naming the build output. Typically this value is
+# one of I, N, M, S, ...
+buildType=I
+
+# ID of the build. Used in naming the build output.
+buildId=TestBuild
+
+# Label for the build. Used in naming the build output
+buildLabel=${buildType}.${buildId}
+
+# Timestamp for the build. Used in naming the build output
+timestamp=007
+
+# Base location for anything the build needs to compile against. For example,
+# when building GEF, the baseLocation should be the location of a previously
+# installed Eclipse against which the GEF code will be compiled.
+baseLocation=
+
+#Os/Ws/Arch/nl of the eclipse specified by baseLocation
+#baseos
+#basews
+#basearch
+#basenl
+
+# The location underwhich all of the build output will be collected. This will be
+# the root path in the resultant zip file.
+collPlace=eclipse
+
+# The directory in which to execute zip of the ${collPlace} directory
+collBase=.
+
+# The list of {os, ws, arch} configurations to build. This
+# value is a '&' separated list of ',' separate triples. For example,
+# configs=win32,win32,x86 & linux,motif,x86
+# By default the value is *,*,*
+configs=*,*,*
+
+archivesFormat=*,*,*-zip
+
+#Arguments to send to the zip executable
+zipargs=
+
+############# JAVA COMPILER OPTIONS ##############
+# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE
+#bootclasspath=d:/ibm1.3.1/jre/lib/rt.jar
+
+# Whether or not to include debug info in the output jars
+javacDebugInfo=on
+
+# Whether or not to fail the build if there are compiler errors
+javacfailonerror=true
+
+# The version of the source code
+javacSource=1.5
+
+# The version of the byte code targeted
+javacTarget=1.5
diff --git a/releng/org.eclipse.cdt.releng/lrparser/customTargets.xml b/releng/org.eclipse.cdt.releng/lrparser/customTargets.xml
new file mode 100644
index 00000000000..a86d65b6414
--- /dev/null
+++ b/releng/org.eclipse.cdt.releng/lrparser/customTargets.xml
@@ -0,0 +1,138 @@
+<project name="Build specific targets and properties" default="noDefault" >
+
+<property name="basews" value="gtk" />
+<property name="baseos" value="linux" />
+<property name="basearch" value="x86" />
+<property name="basenl" value="en_US" />
+
+<!-- ===================================================================== -->
+<!-- Run a given ${target} on all elements being built -->
+<!-- Add on <ant> task for each top level element being built. -->
+<!-- ===================================================================== -->
+<target name="allElements">
+ <ant antfile="${genericTargets}" target="${target}" >
+ <property name="type" value="feature" />
+ <property name="id" value="org.eclipse.cdt.core.lrparser.feature" />
+ </ant>
+</target>
+
+<!-- ===================================================================== -->
+<!-- Targets to assemble the built elements for particular configurations -->
+<!-- These generally call the generated assemble scripts (named in -->
+<!-- ${assembleScriptName}) but may also add pre and post processing -->
+<!-- Add one target for each root element and each configuration -->
+<!-- ===================================================================== -->
+
+<target name="assemble.org.eclipse.cdt.core.lrparser.feature">
+ <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
+ <property name="archiveName" value="cdt-lrparser-${branchVersion}-${buildId}.zip"/>
+ </ant>
+</target>
+
+<!-- ===================================================================== -->
+<!-- Check out map files from correct repository -->
+<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
+<!-- ===================================================================== -->
+<target name="getMapFiles">
+ <copy file="${builder}/../maps/cdt.map" todir="${buildDirectory}/maps"/>
+ <replace file="${buildDirectory}/maps/cdt.map">
+ <replacefilter token="@cdtTag@" value="${cdtTag}"/>
+ </replace>
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do before setup -->
+<!-- ===================================================================== -->
+<target name="preSetup">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do after setup but before starting the build proper -->
+<!-- ===================================================================== -->
+<target name="postSetup">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do before fetching the build elements -->
+<!-- ===================================================================== -->
+<target name="preFetch">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do after fetching the build elements -->
+<!-- ===================================================================== -->
+<target name="postFetch">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do before generating the build scripts. -->
+<!-- ===================================================================== -->
+<target name="preGenerate">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do after generating the build scripts. -->
+<!-- ===================================================================== -->
+<target name="postGenerate">
+</target>
+
+
+<!-- ===================================================================== -->
+<!-- Steps to do before running the build.xmls for the elements being built. -->
+<!-- ===================================================================== -->
+<target name="preProcess">
+ <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
+ <include name="**/about.mappings" />
+ </replace>
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do after running the build.xmls for the elements being built. -->
+<!-- ===================================================================== -->
+<target name="postProcess">
+</target>
+
+
+<!-- ===================================================================== -->
+<!-- Steps to do before running assemble. -->
+<!-- ===================================================================== -->
+<target name="preAssemble">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do after running assemble. -->
+<!-- ===================================================================== -->
+ <target name="postAssemble">
+ <!-- Add the LPG Java Runtime bundle into runtime zip -->
+ <zip destfile="${buildDirectory}/${buildLabel}/cdt-lrparser-${branchVersion}-${buildId}.zip" update="true">
+ <zipfileset dir="${buildDirectory}/plugins"
+ includes="net.sourceforge.lpg.lpgjavaruntime_1.1.*.jar"
+ prefix="eclipse/plugins"/>
+ </zip>
+ </target>
+<!-- ===================================================================== -->
+<!-- Steps to do after the build is done. -->
+<!-- ===================================================================== -->
+<target name="postBuild">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do to test the build results -->
+<!-- ===================================================================== -->
+<target name="test">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Steps to do to publish the build results -->
+<!-- ===================================================================== -->
+<target name="publish">
+</target>
+
+<!-- ===================================================================== -->
+<!-- Default target -->
+<!-- ===================================================================== -->
+<target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+</target>
+
+</project>
diff --git a/releng/org.eclipse.cdt.releng/maps/cdt.map b/releng/org.eclipse.cdt.releng/maps/cdt.map
index b542c96aabf..8f2f48332de 100644
--- a/releng/org.eclipse.cdt.releng/maps/cdt.map
+++ b/releng/org.eclipse.cdt.releng/maps/cdt.map
@@ -72,11 +72,7 @@ plugin@org.eclipse.cdt.managedbuilder.xlc.ui=@cdtTag@,:pserver:anonymous@dev.ecl
feature@org.eclipse.cdt.xlc.feature=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/xlc/org.eclipse.cdt.xlc.feature
feature@org.eclipse.cdt.xlc.sdk=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/xlc/org.eclipse.cdt.xlc.sdk-feature
-! C99 parser
-!plugin@org.eclipse.cdt.core.parser.c99=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/c99/org.eclipse.cdt.core.parser.c99
-!plugin@net.sourceforge.lpg.lpgjavaruntime,1.1.0=GET,http://download.eclipse.org/tools/orbit/downloads/drops/R200706131308/bundles/net.sourceforge.lpg.lpgjavaruntime_1.1.0.v200706111738.jar
-!feature@org.eclipse.cdt.core.parser.c99.feature=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/c99/org.eclipse.cdt.core.parser.c99.feature
-
-! UPC parser - also uses LPG but since we already download it above no need to download again
-!plugin@org.eclipse.cdt.core.parser.upc=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/upc/org.eclipse.cdt.core.parser.upc
-!feature@org.eclipse.cdt.core.parser.upc.feature=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/upc/org.eclipse.cdt.core.parser.upc.feature \ No newline at end of file
+! LR parser
+plugin@org.eclipse.cdt.core.lrparser=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser
+plugin@net.sourceforge.lpg.lpgjavaruntime,1.1.0=GET,http://download.eclipse.org/tools/orbit/downloads/drops/S20080209163815/bundles/net.sourceforge.lpg.lpgjavaruntime_1.1.0.v200711021030.jar
+feature@org.eclipse.cdt.core.lrparser.feature=@cdtTag@,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,,org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser.feature

Back to the top