summaryrefslogtreecommitdiffstats
path: root/src/samples
diff options
context:
space:
mode:
authorcarnold <[email protected]>2007-07-28 00:09:16 +0000
committercarnold <[email protected]>2007-07-28 00:09:16 +0000
commit6761c397128d7fbaa4724ab014d4c4be9c867d09 (patch)
tree4ac521242d28d3fe7672837ceea086dc951a8bc1 /src/samples
parent13baa997b4ef5ded998b6ead02d14bcfd81d32e3 (diff)
Bug 1760649: Add Maven buildable documentation, break dependency of ant/proposal/xdocs
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/cpptasks/trunk@126 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src/samples')
-rw-r--r--src/samples/hello/build.xml26
-rw-r--r--src/samples/hello/src/main/c/hello.c25
2 files changed, 51 insertions, 0 deletions
diff --git a/src/samples/hello/build.xml b/src/samples/hello/build.xml
new file mode 100644
index 0000000..afefbc7
--- /dev/null
+++ b/src/samples/hello/build.xml
@@ -0,0 +1,26 @@
+<!--
+ Licensed to the Ant-Contrib Project under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project name="hello" default="compile">
+ <taskdef resource="cpptasks.tasks"/>
+ <target name="compile">
+ <mkdir dir="target/main/obj"/>
+ <cc outtype="executable" subsystem="console" outfile="target/hello" objdir="target/main/obj">
+ <fileset dir="src/main/c" includes="*.c"/>
+ </cc>
+ </target>
+</project>
diff --git a/src/samples/hello/src/main/c/hello.c b/src/samples/hello/src/main/c/hello.c
new file mode 100644
index 0000000..b0183a5
--- /dev/null
+++ b/src/samples/hello/src/main/c/hello.c
@@ -0,0 +1,25 @@
+/*
+
+ Licensed to the Ant-Contrib Project under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+*/
+
+#include <stdio.h>
+
+int main(int argc, const char** argv) {
+ puts("Hello, World.");
+ return 1;
+}