summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-12-17 23:47:32 +0100
committerMichael Stahl <mstahl@redhat.com>2011-12-17 23:47:32 +0100
commitac8733d8bed779b40af1606afe5c753676abc68b (patch)
tree004f6a10544210098cbb392707aae417880df1b5 /extensions
parent87612dadc166fb078074e50796cc864dc981b483 (diff)
extensions: convert bibliography to gbuild
Diffstat (limited to 'extensions')
-rw-r--r--extensions/AllLangResTarget_bib.mk53
-rw-r--r--extensions/Library_bib.mk75
-rw-r--r--extensions/Module_extensions.mk3
-rw-r--r--extensions/Package_bib.mk35
-rw-r--r--extensions/prj/build.lst3
-rw-r--r--extensions/source/bibliography/makefile.mk98
6 files changed, 167 insertions, 100 deletions
diff --git a/extensions/AllLangResTarget_bib.mk b/extensions/AllLangResTarget_bib.mk
new file mode 100644
index 000000000000..36b22c392b1f
--- /dev/null
+++ b/extensions/AllLangResTarget_bib.mk
@@ -0,0 +1,53 @@
+# -*- 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,bib))
+
+$(eval $(call gb_AllLangResTarget_add_srs,bib,bib/res))
+
+$(eval $(call gb_SrsTarget_SrsTarget,bib/res))
+
+$(eval $(call gb_SrsTarget_set_include,bib/res,\
+ $$(INCLUDE) \
+ -I$(realpath $(SRCDIR)/extensions/inc) \
+))
+
+$(eval $(call gb_SrsTarget_add_files,bib/res,\
+ extensions/source/bibliography/bib.src \
+ extensions/source/bibliography/datman.src \
+ extensions/source/bibliography/sections.src \
+ extensions/source/bibliography/toolbar.src \
+))
+
+$(eval $(call gb_SrsTarget_add_templates,bib/res,\
+ extensions/source/bibliography/bib.hrc \
+))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/extensions/Library_bib.mk b/extensions/Library_bib.mk
new file mode 100644
index 000000000000..3a9c0107a568
--- /dev/null
+++ b/extensions/Library_bib.mk
@@ -0,0 +1,75 @@
+# -*- 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,bib))
+
+$(eval $(call gb_Library_set_componentfile,bib,extensions/source/bibliography/bib))
+
+$(eval $(call gb_Library_set_include,bib,\
+ $$(INCLUDE) \
+ -I$(realpath $(SRCDIR)/extensions/inc) \
+))
+
+$(eval $(call gb_Library_add_api,bib,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_exception_objects,bib,\
+ extensions/source/bibliography/bibbeam \
+ extensions/source/bibliography/bibconfig \
+ extensions/source/bibliography/bibcont \
+ extensions/source/bibliography/bibload \
+ extensions/source/bibliography/bibmod \
+ extensions/source/bibliography/bibview \
+ extensions/source/bibliography/datman \
+ extensions/source/bibliography/formcontrolcontainer \
+ extensions/source/bibliography/framectr \
+ extensions/source/bibliography/general \
+ extensions/source/bibliography/loadlisteneradapter \
+ extensions/source/bibliography/toolbar \
+))
+
+$(eval $(call gb_Library_add_linked_libs,bib,\
+ dbtools \
+ sot \
+ svt \
+ svl \
+ tk \
+ vcl \
+ utl \
+ tl \
+ comphelper \
+ cppuhelper \
+ cppu \
+ sal \
+))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/extensions/Module_extensions.mk b/extensions/Module_extensions.mk
index caaa8fb62404..ebf6d26d19ad 100644
--- a/extensions/Module_extensions.mk
+++ b/extensions/Module_extensions.mk
@@ -27,16 +27,19 @@
$(eval $(call gb_Module_Module,extensions))
$(eval $(call gb_Module_add_targets,extensions,\
+ AllLangResTarget_bib \
AllLangResTarget_pcr \
AllLangResTarget_san \
AllLangResTarget_upd \
AllLangResTarget_updchk \
Configuration_updchk \
+ Library_bib \
Library_pcr \
Library_scn \
Library_updatecheckui \
Library_updatefeed \
Library_updchk \
+ Package_bib \
Package_pcr \
))
diff --git a/extensions/Package_bib.mk b/extensions/Package_bib.mk
new file mode 100644
index 000000000000..46b9c3c37818
--- /dev/null
+++ b/extensions/Package_bib.mk
@@ -0,0 +1,35 @@
+# -*- 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_Package_Package,bib,$(SRCDIR)/extensions/source/bibliography/uiconfig/sbibliography/menubar))
+
+$(eval $(call gb_Package_add_file,bib,xml/uiconfig/modules/sbibliography/menubar/menubar.xml,menubar.xml))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/extensions/prj/build.lst b/extensions/prj/build.lst
index eb8585cf7404..2a76f92db053 100644
--- a/extensions/prj/build.lst
+++ b/extensions/prj/build.lst
@@ -6,12 +6,11 @@ ex extensions\inc\ucbhelper get - all ex_incucbh ex_in
ex extensions\source\activex\msidl nmake - w ex_axmsidl ex_inc NULL
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\bibliography nmake - all ex_bib ex_inc NULL
ex extensions\source\xmlextract nmake - all ex_xmlextr ex_inc NULL
ex extensions\source\dbpilots nmake - all ex_dbpilots ex_inc NULL
ex extensions\source\abpilot nmake - all ex_abpilot ex_inc NULL
ex extensions\source\logging nmake - all ex_logging ex_inc NULL
-ex extensions\util nmake - all ex_util ex_abpilot ex_dbpilots ex_logging ex_bib NULL
+ex extensions\util nmake - all ex_util ex_abpilot ex_dbpilots ex_logging NULL
ex extensions\prj nmake - all ex_prj NULL
# Fails at the moment
diff --git a/extensions/source/bibliography/makefile.mk b/extensions/source/bibliography/makefile.mk
deleted file mode 100644
index b681c6c90b19..000000000000
--- a/extensions/source/bibliography/makefile.mk
+++ /dev/null
@@ -1,98 +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=extensions
-TARGET=bib
-ENABLE_EXCEPTIONS=TRUE
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : $(PRJ)$/util$/makefile.pmk
-
-# --- Files --------------------------------------------------------
-
-SLOFILES= $(SLO)$/formcontrolcontainer.obj \
- $(SLO)$/loadlisteneradapter.obj \
- $(SLO)$/bibconfig.obj \
- $(SLO)$/bibcont.obj \
- $(SLO)$/bibload.obj \
- $(SLO)$/bibmod.obj \
- $(SLO)$/general.obj \
- $(SLO)$/framectr.obj \
- $(SLO)$/bibview.obj \
- $(SLO)$/bibbeam.obj \
- $(SLO)$/toolbar.obj \
- $(SLO)$/datman.obj \
-
-
-SRS1NAME=$(TARGET)
-SRC1FILES= bib.src \
- datman.src \
- sections.src \
- toolbar.src
-
-RESLIB1NAME=bib
-RESLIB1SRSFILES= $(SRS)$/bib.srs
-RESLIB1DEPN= bib.src bib.hrc
-
-
-SHL1STDLIBS= \
- $(SOTLIB) \
- $(SVTOOLLIB) \
- $(TKLIB) \
- $(VCLLIB) \
- $(SVLLIB) \
- $(UNOTOOLSLIB) \
- $(TOOLSLIB) \
- $(DBTOOLSLIB) \
- $(COMPHELPERLIB) \
- $(CPPUHELPERLIB) \
- $(CPPULIB) \
- $(SALLIB)
-
-
-SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
-SHL1LIBS= $(SLB)$/$(TARGET).lib
-SHL1IMPLIB= i$(TARGET)
-SHL1DEPN= $(SHL1LIBS)
-SHL1DEF= $(MISC)$/$(SHL1TARGET).def
-SHL1VERSIONMAP=$(SOLARENV)/src/component.map
-DEF1NAME= $(SHL1TARGET)
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
-
-
-ALLTAR : $(MISC)/bib.component
-
-$(MISC)/bib.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
- bib.component
- $(XSLTPROC) --nonet --stringparam uri \
- '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
- $(SOLARENV)/bin/createcomponent.xslt bib.component