summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-02-22 10:23:41 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-06-16 10:20:08 +0200
commit2151303db47b9dc6a262df884939db4240d291a5 (patch)
tree669af9ede4f4d28916732f51c7e321901ff02fa0
parent86e7ed8c72184b7a04b836848743979aa3f5fd3d (diff)
CWS gnumake4: convert idl to new build system
-rw-r--r--idl/Executable_svidl.mk65
-rw-r--r--idl/Makefile (renamed from idl/source/objects/makefile.mk)28
-rw-r--r--idl/Module_idl.mk35
-rw-r--r--idl/prj/build.lst8
-rw-r--r--idl/prj/d.lst2
-rw-r--r--idl/prj/makefile.mk (renamed from idl/source/cmptools/makefile.mk)27
-rw-r--r--idl/util/idlpch.cxx49
7 files changed, 119 insertions, 95 deletions
diff --git a/idl/Executable_svidl.mk b/idl/Executable_svidl.mk
new file mode 100644
index 000000000000..961f9c16626e
--- /dev/null
+++ b/idl/Executable_svidl.mk
@@ -0,0 +1,65 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# 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.
+#
+#*************************************************************************
+
+$(eval $(call gb_Executable_Executable,svidl))
+
+$(eval $(call gb_Executable_set_include,svidl,\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/ \
+ -I$(OUTDIR)/inc/offuh/ \
+ -I$(SRCDIR)/idl/inc/pch \
+ -I$(SRCDIR)/idl/inc \
+))
+
+$(eval $(call gb_Executable_set_cxxflags,svidl,\
+ $$(CXXFLAGS) \
+ -DIDL_COMPILER \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,svidl,\
+ sal \
+ tl \
+ $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,svidl,\
+ idl/source/cmptools/char \
+ idl/source/cmptools/hash \
+ idl/source/cmptools/lex \
+ idl/source/objects/basobj \
+ idl/source/objects/bastype \
+ idl/source/objects/module \
+ idl/source/objects/object \
+ idl/source/objects/slot \
+ idl/source/objects/types \
+ idl/source/prj/command \
+ idl/source/prj/database \
+ idl/source/prj/globals \
+ idl/source/prj/svidl \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/idl/source/objects/makefile.mk b/idl/Makefile
index e141d85540de..a79aff831024 100644
--- a/idl/source/objects/makefile.mk
+++ b/idl/Makefile
@@ -25,26 +25,14 @@
#
#*************************************************************************
-PRJ=..$/..
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set!)
+endif
-PRJNAME=idl
-TARGET=objects
+gb_PARTIALBUILD := T
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
-# --- Settings -----------------------------------------------------------
-
-.INCLUDE : settings.mk
-
-CDEFS+=-DIDL_COMPILER
-# --- Files --------------------------------------------------------------
-
-OBJFILES= $(OBJ)$/bastype.obj \
- $(OBJ)$/basobj.obj \
- $(OBJ)$/types.obj \
- $(OBJ)$/object.obj \
- $(OBJ)$/slot.obj \
- $(OBJ)$/module.obj
-
-# --- Targets ------------------------------------------------------------
-
-.INCLUDE : target.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/idl/Module_idl.mk b/idl/Module_idl.mk
new file mode 100644
index 000000000000..f23ac7f04d9a
--- /dev/null
+++ b/idl/Module_idl.mk
@@ -0,0 +1,35 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# 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.
+#
+#*************************************************************************
+
+
+$(eval $(call gb_Module_Module,idl))
+
+$(eval $(call gb_Module_add_targets,idl,\
+ Executable_svidl \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/idl/prj/build.lst b/idl/prj/build.lst
index e5f36475eeed..92d343a24021 100644
--- a/idl/prj/build.lst
+++ b/idl/prj/build.lst
@@ -1,8 +1,2 @@
id idl : tools NULL
-id idl usr1 - all idl_mkout NULL
-id idl\prj get - all idl_gprj NULL
-id idl\inc nmake - all idl_inc NULL
-id idl\source\cmptools nmake - all idl_cmp idl_inc NULL
-id idl\source\objects nmake - all idl_obj idl_inc NULL
-id idl\source\prj nmake - all idl_prj idl_inc NULL
-id idl\util nmake - all idl_util idl_cmp idl_obj idl_prj NULL
+id idl\prj nmake - all idl_gprj NULL
diff --git a/idl/prj/d.lst b/idl/prj/d.lst
index bd88bc495f72..e69de29bb2d1 100644
--- a/idl/prj/d.lst
+++ b/idl/prj/d.lst
@@ -1,2 +0,0 @@
-..\%__SRC%\bin\svidl.exe %_DEST%\bin%_EXT%\svidl.exe
-..\%__SRC%\bin\svidl %_DEST%\bin%_EXT%\svidl
diff --git a/idl/source/cmptools/makefile.mk b/idl/prj/makefile.mk
index bf53623dfd0d..88cd9dfe08b8 100644
--- a/idl/source/cmptools/makefile.mk
+++ b/idl/prj/makefile.mk
@@ -25,23 +25,16 @@
#
#*************************************************************************
-PRJ=..$/..
+PRJ=..
+TARGET=prj
-PRJNAME=idl
-TARGET=cmptools
+.INCLUDE : settings.mk
-# --- Settings -----------------------------------------------------------
-
-.INCLUDE : settings.mk
-
-CDEFS+=-DIDL_COMPILER
-# --- Files --------------------------------------------------------------
-
-OBJFILES= $(OBJ)$/lex.obj \
- $(OBJ)$/char.obj \
- $(OBJ)$/hash.obj
-
-# --- Targets ------------------------------------------------------------
-
-.INCLUDE : target.mk
+.IF "$(VERBOSE)"!=""
+VERBOSEFLAG :=
+.ELSE
+VERBOSEFLAG := -s
+.ENDIF
+all:
+ cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
diff --git a/idl/util/idlpch.cxx b/idl/util/idlpch.cxx
deleted file mode 100644
index 7421e04ca5db..000000000000
--- a/idl/util/idlpch.cxx
+++ /dev/null
@@ -1,49 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * 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.
- *
- ************************************************************************/
-
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_idl.hxx"
-#include <memory.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <limits.h>
-
-#include <tlbigint.hxx>
-#include <tlfsys.hxx>
-#include <char.hxx>
-#include <command.hxx>
-#include <hash.hxx>
-#include <lex.hxx>
-#include <attrib.hxx>
-#include <globals.hxx>
-#include <bastype.hxx>
-#include <object.hxx>
-#include <slot.hxx>
-#include <module.hxx>
-#include <database.hxx>
-