Port main/testgraphical to gbuild. Not that it does anything.

Patch by: me



git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1859207 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/main/Module_ooo.mk b/main/Module_ooo.mk
index 5ca61a2..a27cd06 100644
--- a/main/Module_ooo.mk
+++ b/main/Module_ooo.mk
@@ -101,6 +101,7 @@
 	svtools \
 	svx \
 	sw \
+	testgraphical \
 	toolkit \
 	tools \
 	twain \
diff --git a/main/testgraphical/Ant_ConvwatchGUIProject.mk b/main/testgraphical/Ant_ConvwatchGUIProject.mk
new file mode 100644
index 0000000..a92778e
--- /dev/null
+++ b/main/testgraphical/Ant_ConvwatchGUIProject.mk
@@ -0,0 +1,28 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF 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.
+#  
+#**************************************************************
+
+
+# FIXME: move to correct location and get it to actually build:
+
+$(eval $(call gb_Ant_Ant,ConvwatchGUIProject,$(SRCDIR)/testgraphical/ui/java/ConvwatchGUIProject/build.xml))
+
+# vim: set noet sw=4 ts=4:
+
diff --git a/main/testgraphical/Makefile b/main/testgraphical/Makefile
new file mode 100644
index 0000000..c1d144c
--- /dev/null
+++ b/main/testgraphical/Makefile
@@ -0,0 +1,32 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF 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.
+#  
+#**************************************************************
+
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set!)
+endif
+
+gb_PARTIALBUILD := T
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
+
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/main/testgraphical/Module_testgraphical.mk b/main/testgraphical/Module_testgraphical.mk
new file mode 100644
index 0000000..f220650
--- /dev/null
+++ b/main/testgraphical/Module_testgraphical.mk
@@ -0,0 +1,34 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF 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.
+#  
+#**************************************************************
+
+
+
+$(eval $(call gb_Module_Module,testgraphical))
+
+$(eval $(call gb_Module_add_targets,testgraphical,\
+))
+
+# Didn't build anything in dmake either:
+#
+# Ant_ConvwatchGUIProject \
+#
+
+# vim: set noet sw=4 ts=4:
diff --git a/main/testgraphical/prj/build.lst b/main/testgraphical/prj/build.lst
index 8d617c0..d808041 100644
--- a/main/testgraphical/prj/build.lst
+++ b/main/testgraphical/prj/build.lst
@@ -1,3 +1,2 @@
 gfxcmp    testgraphical     :       instsetoo_native qadevOOo NULL
-gfxcmp    testgraphical                             usr1     -  all    gfxcmp_mkout NULL
-gfxcmp    testgraphical\ui\java\ConvwatchGUIProject nmake    -  all    gfxcmp_java_ui NULL
+gfxcmp    testgraphical\prj                             nmake     -  all    gfxcmp_prj NULL
diff --git a/main/testgraphical/prj/makefile.mk b/main/testgraphical/prj/makefile.mk
new file mode 100644
index 0000000..353f9e0
--- /dev/null
+++ b/main/testgraphical/prj/makefile.mk
@@ -0,0 +1,44 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF 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.
+#  
+#**************************************************************
+
+
+
+PRJ=..
+TARGET=prj
+
+.INCLUDE : settings.mk
+
+.IF "$(VERBOSE)"!=""
+VERBOSEFLAG :=
+.ELSE
+VERBOSEFLAG := -s
+.ENDIF
+
+.IF "$(DEBUG)"!=""
+DEBUG_ARGUMENT=DEBUG=$(DEBUG)
+.ELIF "$(debug)"!=""
+DEBUG_ARGUMENT=debug=$(debug)
+.ELSE
+DEBUG_ARGUMENT=
+.ENDIF
+
+all:
+	cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) $(DEBUG_ARGUMENT) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog