diff options
author | David Tardon <dtardon@redhat.com> | 2011-09-15 07:10:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-09-15 07:10:22 +0200 |
commit | 45589f1f27be2d93c250e900102d66af0d2b694d (patch) | |
tree | 065fd3eb1679c31c96f460a9d02c7ced4e65604c /automation/source | |
parent | 6c8a7e0e6ad223051442ef6ce1d1103086c3f4a0 (diff) |
gbuildize automation
Diffstat (limited to 'automation/source')
-rw-r--r-- | automation/source/app/makefile.mk | 52 | ||||
-rw-r--r-- | automation/source/communi/makefile.mk | 46 | ||||
-rw-r--r-- | automation/source/inc/cmdbasestream.hxx | 4 | ||||
-rw-r--r-- | automation/source/inc/svcommstream.hxx | 4 | ||||
-rw-r--r-- | automation/source/miniapp/makefile.mk | 54 | ||||
-rw-r--r-- | automation/source/server/makefile.mk | 69 | ||||
-rw-r--r-- | automation/source/simplecm/makefile.mk | 46 | ||||
-rw-r--r-- | automation/source/testtool/Makefile | 57 | ||||
-rw-r--r-- | automation/source/testtool/makefile.mk | 107 |
9 files changed, 63 insertions, 376 deletions
diff --git a/automation/source/app/makefile.mk b/automation/source/app/makefile.mk deleted file mode 100644 index 8a430b3c3a96..000000000000 --- a/automation/source/app/makefile.mk +++ /dev/null @@ -1,52 +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. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=app - -# --- Settings ------------------------------------------------------------ - -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -CXXFILES = \ - testbasi.cxx - - -OBJFILES = \ - $(OBJ)$/testbasi.obj - - -LIBTARGET = NO - - -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/communi/makefile.mk b/automation/source/communi/makefile.mk deleted file mode 100644 index b4ca9c67e508..000000000000 --- a/automation/source/communi/makefile.mk +++ /dev/null @@ -1,46 +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. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=communi - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES= $(EXCEPTIONSFILES) - -EXCEPTIONSFILES= \ - $(SLO)$/communi.obj - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/inc/cmdbasestream.hxx b/automation/source/inc/cmdbasestream.hxx index 7011299408ad..296be50fbb21 100644 --- a/automation/source/inc/cmdbasestream.hxx +++ b/automation/source/inc/cmdbasestream.hxx @@ -37,10 +37,12 @@ #ifndef _CMDBASESTREAM_HXX_ #define _CMDBASESTREAM_HXX_ +#include "automation/stsdllapi.h" + #include <automation/commtypes.hxx> #include "icommstream.hxx" -class CmdBaseStream +class STS_DLLPUBLIC CmdBaseStream { protected: ICommStream* pCommStream; diff --git a/automation/source/inc/svcommstream.hxx b/automation/source/inc/svcommstream.hxx index 7a122ba4cef2..0245fb98f6b7 100644 --- a/automation/source/inc/svcommstream.hxx +++ b/automation/source/inc/svcommstream.hxx @@ -26,13 +26,15 @@ * ************************************************************************/ +#include "automation/stsdllapi.h" + #include <tools/stream.hxx> #include <automation/commtypes.hxx> #include "icommstream.hxx" -class SvCommStream : public ICommStream +class STS_DLLPUBLIC SvCommStream : public ICommStream { protected: SvStream* pStream; diff --git a/automation/source/miniapp/makefile.mk b/automation/source/miniapp/makefile.mk deleted file mode 100644 index 10c16d8ab7f6..000000000000 --- a/automation/source/miniapp/makefile.mk +++ /dev/null @@ -1,54 +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. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=miniapp - -# --- Settings ------------------------------------------------------------ - -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -OBJFILES = \ - $(EXCEPTIONSFILES) - - -EXCEPTIONSFILES= \ - $(OBJ)$/editwin.obj \ - $(OBJ)$/servres.obj \ - $(OBJ)$/testapp.obj - -SRS1NAME=$(TARGET) -SRC1FILES = \ - servres.src - -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/server/makefile.mk b/automation/source/server/makefile.mk deleted file mode 100644 index a6e1ec711b4c..000000000000 --- a/automation/source/server/makefile.mk +++ /dev/null @@ -1,69 +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. -# -#************************************************************************* -PRJ=..$/.. - -PRJNAME=automation -TARGET=server - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES = \ - $(EXCEPTIONSFILES) \ - $(SLO)$/cmdbasestream.obj \ - $(SLO)$/editwin.obj \ - $(SLO)$/retstrm.obj \ - $(SLO)$/scmdstrm.obj \ - $(SLO)$/svcommstream.obj - - -OBJFILES = \ - $(OBJ)$/cmdbasestream.obj \ - $(OBJ)$/svcommstream.obj - -EXCEPTIONSFILES = \ - $(SLO)$/XMLParser.obj \ - $(SLO)$/profiler.obj \ - $(SLO)$/recorder.obj \ - $(SLO)$/server.obj \ - $(SLO)$/sta_list.obj \ - $(SLO)$/statemnt.obj - -NOOPTFILES = $(SLO)$/statemnt.obj - -.IF "$(OS)"=="SOLARIS" -SLOFILES += $(SLO)$/prof_usl.obj -.ELSE -SLOFILES += $(SLO)$/prof_nul.obj -.ENDIF - -# --- Tagets ------------------------------------------------------- - -.INCLUDE : target.mk diff --git a/automation/source/simplecm/makefile.mk b/automation/source/simplecm/makefile.mk deleted file mode 100644 index b6318ab4fd46..000000000000 --- a/automation/source/simplecm/makefile.mk +++ /dev/null @@ -1,46 +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. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=simplecm - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES= \ - $(SLO)$/tcpio.obj \ - $(SLO)$/packethandler.obj \ - $(SLO)$/simplecm.obj \ - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/testtool/Makefile b/automation/source/testtool/Makefile new file mode 100644 index 000000000000..f0d1d13de009 --- /dev/null +++ b/automation/source/testtool/Makefile @@ -0,0 +1,57 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +include $(GBUILDDIR)/gbuild_simple.mk + +BASEDIR := $(dir $(firstword $(MAKEFILE_LIST))) + +define filter_header +$(1).hxx : $(3)/$(2) + $(PERL) $(BASEDIR)/filter.pl $(3) $(2) $(1) $(4) + +endef + +$(eval $(call filter_header,classes,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),M_)) +$(eval $(call filter_header,keycodes,vcl/keycodes.hxx,$(OUTDIR)/inc,KEY_)) +$(eval $(call filter_header,r_cmds,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),RC_)) +$(eval $(call filter_header,res_type,tools/wintypes.hxx,$(OUTDIR)/inc,WINDOW_)) + +$(CURDIR)/testtool.ini : $(BASEDIR)/testtool.ini +ifeq ($(GUI),UNX) + sed -e s/!INIFILESUFFIX!/rc/ -e s/!BRANDPATH!// $< > $@ +else ifeq ($(GUI),WNT) + sed -e s/!INIFILESUFFIX!/.ini/ -e s/!BRANDPATH!/../ $< > $@ +endif + +.DEFAULT_GOAL := all +.PHONY : all +all : \ + classes.hxx \ + keycodes.hxx \ + r_cmds.hxx \ + res_type.hxx \ + $(CURDIR)/testtool.ini + +# vim: set ts=4 sw=4 noet: diff --git a/automation/source/testtool/makefile.mk b/automation/source/testtool/makefile.mk deleted file mode 100644 index d23069e7821d..000000000000 --- a/automation/source/testtool/makefile.mk +++ /dev/null @@ -1,107 +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. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=testtool - -# --- Settings ------------------------------------------------------------ - -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -OBJFILES = \ - $(EXCEPTIONSFILES) \ - $(OBJ)$/cretstrm.obj \ - $(OBJ)$/httprequest.obj \ - - -EXCEPTIONSFILES= \ - $(OBJ)$/cmdstrm.obj \ - $(OBJ)$/comm_bas.obj \ - $(OBJ)$/objtest.obj \ - $(OBJ)$/tcommuni.obj - -HXXFILES = $(INCCOM)$/keycodes.hxx \ - $(INCCOM)$/classes.hxx \ - $(INCCOM)$/r_cmds.hxx \ - $(INCCOM)$/res_type.hxx - -.IF "$(GUI)" == "WNT" -OBJFILES += $(OBJ)$/sysdir_win.obj -OBJFILES += $(OBJ)$/registry_win.obj -.ENDIF -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk - - -$(OBJFILES) : $(HXXFILES) -$(HXXFILES) : $(MISC)$/xfilter.pl - - -$(INCCOM)$/keycodes.hxx : $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/vcl$/keycodes.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT) vcl$/keycodes.hxx $(INCCOM)$/keycodes KEY_ - -$(INCCOM)$/classes.hxx : ..$/inc$/rcontrol.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl ..$/inc rcontrol.hxx $(INCCOM)$/classes M_ - -$(INCCOM)$/r_cmds.hxx : ..$/inc$/rcontrol.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl ..$/inc rcontrol.hxx $(INCCOM)$/r_cmds RC_ - -$(INCCOM)$/res_type.hxx : $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/tools$/wintypes.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT) tools$/wintypes.hxx $(INCCOM)$/res_type WINDOW_ - - - -$(MISC)$/xfilter.pl : filter.pl - tr -d "\015" < filter.pl > $(MISC)$/xfilter.pl - chmod 664 $(MISC)$/xfilter.pl - - - -.IF "$(GUI)"=="UNX" -INIFILESUFFIX=rc -BRANDPATH=none -.ELIF "$(GUI)"=="WNT" -INIFILESUFFIX=.ini -BRANDPATH=.. -.END - -$(BIN)$/testtool$(INIFILESUFFIX): testtool.ini - $(SED) -e s/$(EMQ)!INIFILESUFFIX$(EMQ)!/$(INIFILESUFFIX)/ \ - -e s/$(EMQ)!BRANDPATH$(EMQ)!/$(BRANDPATH)/ < $< > $@ - -ALLTAR: \ - $(BIN)$/testtool$(INIFILESUFFIX) - |