summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-12-18 00:23:55 +0100
committerMichael Stahl <mstahl@redhat.com>2011-12-18 00:23:55 +0100
commitbc4fda7310c25b202b0e65a16bbc6f600931cbe4 (patch)
tree4d5e85b1350950fed60f50e90afdf5a193f9c16b /extensions
parentextensions: convert dbpilots to gbuild (diff)
downloadcore-bc4fda7310c25b202b0e65a16bbc6f600931cbe4.tar.gz
core-bc4fda7310c25b202b0e65a16bbc6f600931cbe4.zip
extensions: convert abpilot to gbuild
Diffstat (limited to 'extensions')
-rw-r--r--extensions/AllLangResTarget_abp.mk48
-rw-r--r--extensions/Library_abp.mk91
-rw-r--r--extensions/Module_extensions.mk2
-rw-r--r--extensions/prj/build.lst3
-rw-r--r--extensions/source/abpilot/exports.dxp1
-rw-r--r--extensions/source/abpilot/makefile.mk115
6 files changed, 142 insertions, 118 deletions
diff --git a/extensions/AllLangResTarget_abp.mk b/extensions/AllLangResTarget_abp.mk
new file mode 100644
index 000000000000..30371f93a648
--- /dev/null
+++ b/extensions/AllLangResTarget_abp.mk
@@ -0,0 +1,48 @@
+# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+#
+# 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.
+#
+# The Initial Developer of the Original Code is
+# Peter Foley <pefoley2@verizon.net>
+# Portions created by the Initial Developer are Copyright (C) 2011 the
+# Initial Developer. All Rights Reserved.
+#
+# Major Contributor(s):
+#
+# 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.
+#
+
+$(eval $(call gb_AllLangResTarget_AllLangResTarget,abp))
+
+$(eval $(call gb_AllLangResTarget_set_reslocation,abp,extensions/res))
+
+$(eval $(call gb_AllLangResTarget_add_srs,abp,abp/res))
+
+$(eval $(call gb_SrsTarget_SrsTarget,abp/res))
+
+$(eval $(call gb_SrsTarget_set_include,abp/res,\
+ $$(INCLUDE) \
+ -I$(realpath $(SRCDIR)/extensions/inc) \
+))
+
+$(eval $(call gb_SrsTarget_add_files,abp/res,\
+ extensions/source/abpilot/abspilot.src \
+))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/extensions/Library_abp.mk b/extensions/Library_abp.mk
new file mode 100644
index 000000000000..411c2d823ccf
--- /dev/null
+++ b/extensions/Library_abp.mk
@@ -0,0 +1,91 @@
+# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+#
+# 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.
+#
+# The Initial Developer of the Original Code is
+# Peter Foley <pefoley2@verizon.net>
+# Portions created by the Initial Developer are Copyright (C) 2011 the
+# Initial Developer. All Rights Reserved.
+#
+# Major Contributor(s):
+#
+# 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.
+#
+
+$(eval $(call gb_Library_Library,abp))
+
+$(eval $(call gb_Library_set_componentfile,abp,extensions/source/abpilot/abp))
+
+$(eval $(call gb_Library_set_include,abp,\
+ $$(INCLUDE) \
+ -I$(realpath $(SRCDIR)/extensions/inc) \
+ -I$(realpath $(SRCDIR)/extensions/source/inc) \
+))
+
+ifneq ($(WITH_MOZILLA),NO)
+ifneq ($(SYSTEM_MOZILLA),YES)
+$(eval $(call gb_Library_add_defs,abp,\
+ -DWITH_MOZILLA \
+))
+endif
+endif
+
+$(eval $(call gb_Library_add_defs,abp,\
+ -DCOMPMOD_NAMESPACE=abp \
+ -DCOMPMOD_RESPREFIX=abp \
+))
+
+$(eval $(call gb_Library_add_api,abp,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_exception_objects,abp,\
+ extensions/source/abpilot/abpfinalpage \
+ extensions/source/abpilot/abpservices \
+ extensions/source/abpilot/abspage \
+ extensions/source/abpilot/abspilot \
+ extensions/source/abpilot/admininvokationimpl \
+ extensions/source/abpilot/admininvokationpage \
+ extensions/source/abpilot/datasourcehandling \
+ extensions/source/abpilot/fieldmappingimpl \
+ extensions/source/abpilot/fieldmappingpage \
+ extensions/source/abpilot/moduleabp \
+ extensions/source/abpilot/tableselectionpage \
+ extensions/source/abpilot/typeselectionpage \
+ extensions/source/abpilot/unodialogabp \
+))
+
+$(eval $(call gb_Library_add_linked_libs,abp,\
+ comphelper \
+ cppuhelper \
+ cppu \
+ sal \
+ sfx \
+ svl \
+ svt \
+ svxcore \
+ svx \
+ tk \
+ tl \
+ utl \
+ vcl \
+))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/extensions/Module_extensions.mk b/extensions/Module_extensions.mk
index 12c47f90104f..4bd1aa12574a 100644
--- a/extensions/Module_extensions.mk
+++ b/extensions/Module_extensions.mk
@@ -27,6 +27,7 @@
$(eval $(call gb_Module_Module,extensions))
$(eval $(call gb_Module_add_targets,extensions,\
+ AllLangResTarget_abp \
AllLangResTarget_bib \
AllLangResTarget_dbp \
AllLangResTarget_pcr \
@@ -34,6 +35,7 @@ $(eval $(call gb_Module_add_targets,extensions,\
AllLangResTarget_upd \
AllLangResTarget_updchk \
Configuration_updchk \
+ Library_abp \
Library_bib \
Library_dbp \
Library_log \
diff --git a/extensions/prj/build.lst b/extensions/prj/build.lst
index 338c79061e28..e6bf64aa3120 100644
--- a/extensions/prj/build.lst
+++ b/extensions/prj/build.lst
@@ -7,8 +7,7 @@ ex extensions\source\activex\msidl nmake - w ex_axmsidl ex_in
ex extensions\source\activex\main nmake - w ex_axmain ex_axmsidl.w ex_inc NULL
ex extensions\source\resource nmake - all ex_resrc ex_inc NULL
ex extensions\source\xmlextract nmake - all ex_xmlextr ex_inc NULL
-ex extensions\source\abpilot nmake - all ex_abpilot ex_inc NULL
-ex extensions\util nmake - all ex_util ex_abpilot NULL
+ex extensions\util nmake - all ex_util NULL
ex extensions\prj nmake - all ex_prj NULL
# Fails at the moment
diff --git a/extensions/source/abpilot/exports.dxp b/extensions/source/abpilot/exports.dxp
deleted file mode 100644
index 70033078921a..000000000000
--- a/extensions/source/abpilot/exports.dxp
+++ /dev/null
@@ -1 +0,0 @@
-component_getFactory
diff --git a/extensions/source/abpilot/makefile.mk b/extensions/source/abpilot/makefile.mk
deleted file mode 100644
index 7f84828247bb..000000000000
--- a/extensions/source/abpilot/makefile.mk
+++ /dev/null
@@ -1,115 +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=..$/..
-PRJINC=..$/inc
-
-PRJNAME=extensions
-TARGET=abp
-USE_DEFFILE=TRUE
-VISIBILITY_HIDDEN=TRUE
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : $(PRJ)$/util$/makefile.pmk
-
-# --- defines ------------------------------------------------------
-
-CDEFS+=-DCOMPMOD_NAMESPACE=abp
-CDEFS+=-DCOMPMOD_RESPREFIX=abp
-
-# --- Files --------------------------------------------------------
-
-EXCEPTIONSFILES= \
- $(SLO)$/abpfinalpage.obj \
- $(SLO)$/abpservices.obj \
- $(SLO)$/abspage.obj \
- $(SLO)$/abspilot.obj \
- $(SLO)$/admininvokationimpl.obj \
- $(SLO)$/admininvokationpage.obj \
- $(SLO)$/datasourcehandling.obj \
- $(SLO)$/fieldmappingimpl.obj \
- $(SLO)$/fieldmappingpage.obj \
- $(SLO)$/moduleabp.obj \
- $(SLO)$/tableselectionpage.obj \
- $(SLO)$/typeselectionpage.obj \
- $(SLO)$/unodialogabp.obj \
-
-SLOFILES= \
- $(EXCEPTIONSFILES)
-
-
-.IF "$(WITH_MOZILLA)" != "NO"
-.IF "$(SYSTEM_MOZILLA)" != "YES"
-CDEFS+=-DWITH_MOZILLA
-.ENDIF
-.ENDIF
-
-SRS1NAME=$(TARGET)
-SRC1FILES= abspilot.src
-
-RESLIB1NAME=abp
-RESLIB1IMAGES=$(PRJ)$/res
-RESLIB1SRSFILES= $(SRS)$/abp.srs
-
-SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
-SHL1VERSIONMAP=$(SOLARENV)/src/component.map
-
-SHL1STDLIBS= \
- $(COMPHELPERLIB) \
- $(CPPUHELPERLIB) \
- $(CPPULIB) \
- $(SALLIB) \
- $(SFXLIB) \
- $(SVLLIB) \
- $(SVTLIB) \
- $(SVTOOLLIB) \
- $(SVXCORELIB) \
- $(SVXLIB) \
- $(TKLIB) \
- $(TOOLSLIB) \
- $(UNOTOOLSLIB) \
- $(VCLLIB) \
-
-SHL1LIBS= $(SLB)$/$(TARGET).lib
-SHL1IMPLIB= i$(TARGET)
-SHL1DEPN= $(SHL1LIBS)
-SHL1DEF= $(MISC)$/$(SHL1TARGET).def
-
-DEF1NAME= $(SHL1TARGET)
-DEF1EXPORTFILE= exports.dxp
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
-
-ALLTAR : $(MISC)/abp.component
-
-$(MISC)/abp.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
- abp.component
- $(XSLTPROC) --nonet --stringparam uri \
- '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
- $(SOLARENV)/bin/createcomponent.xslt abp.component