Kaydet (Commit) f9a70973 authored tarafından Daniel Rentz [dr]'s avatar Daniel Rentz [dr]

dr78: switch module oox to new gbuild system

üst fd291757
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2011 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
# #
...@@ -25,25 +25,14 @@ ...@@ -25,25 +25,14 @@
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
PRJNAME=oox gb_PARTIALBUILD := T
TARGET=shape GBUILDDIR := $(SOLARENV)/gbuild
AUTOSEG=true include $(GBUILDDIR)/gbuild.mk
ENABLE_EXCEPTIONS=TRUE $(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# --- Settings ----------------------------------------------------- # vim: set noet sw=4 ts=4:
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/ShapeContextHandler.obj \
$(SLO)$/ShapeFilterBase.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2011 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
# #
...@@ -14,36 +14,24 @@ ...@@ -14,36 +14,24 @@
# #
# OpenOffice.org is distributed in the hope that it will be useful, # OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details # GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code). # (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 # You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see # version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html> # <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. $(eval $(call gb_Module_Module,oox))
PRJNAME=oox $(eval $(call gb_Module_add_targets,oox,\
TARGET=docprop Library_oox \
AUTOSEG=true Package_inc \
Package_source \
Package_workdir \
))
ENABLE_EXCEPTIONS=TRUE # vim: set noet ts=4 sw=4:
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/ooxmldocpropimport.obj \
$(SLO)$/docprophandler.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2011 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
# #
...@@ -14,53 +14,32 @@ ...@@ -14,53 +14,32 @@
# #
# OpenOffice.org is distributed in the hope that it will be useful, # OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details # GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code). # (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 # You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see # version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html> # <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. $(eval $(call gb_Package_Package,oox_inc,$(SRCDIR)/oox/inc))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/dllapi.h,oox/dllapi.h))
PRJNAME=oox $(eval $(call gb_Package_add_file,oox_inc,inc/oox/core/filterbase.hxx,oox/core/filterbase.hxx))
TARGET=core $(eval $(call gb_Package_add_file,oox_inc,inc/oox/core/filterdetect.hxx,oox/core/filterdetect.hxx))
AUTOSEG=true $(eval $(call gb_Package_add_file,oox_inc,inc/oox/core/relations.hxx,oox/core/relations.hxx))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/core/xmlfilterbase.hxx,oox/core/xmlfilterbase.hxx))
ENABLE_EXCEPTIONS=TRUE $(eval $(call gb_Package_add_file,oox_inc,inc/oox/drawingml/chart/chartconverter.hxx,oox/drawingml/chart/chartconverter.hxx))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/drawingml/table/tablestylelist.hxx,oox/drawingml/table/tablestylelist.hxx))
# --- Settings ----------------------------------------------------- $(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/binarystreambase.hxx,oox/helper/binarystreambase.hxx))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/helper.hxx,oox/helper/helper.hxx))
.INCLUDE : settings.mk $(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/refmap.hxx,oox/helper/refmap.hxx))
.INCLUDE: $(PRJ)$/util$/makefile.pmk $(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/refvector.hxx,oox/helper/refvector.hxx))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/storagebase.hxx,oox/helper/storagebase.hxx))
.IF "$(SYSTEM_OPENSSL)" == "YES" $(eval $(call gb_Package_add_file,oox_inc,inc/oox/helper/zipstorage.hxx,oox/helper/zipstorage.hxx))
CFLAGS+= $(OPENSSL_CFLAGS) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/vbaproject.hxx,oox/ole/vbaproject.hxx))
.ENDIF $(eval $(call gb_Package_add_file,oox_inc,inc/oox/vml/vmldrawing.hxx,oox/vml/vmldrawing.hxx))
$(eval $(call gb_Package_add_file,oox_inc,inc/oox/vml/vmlshape.hxx,oox/vml/vmlshape.hxx))
# --- Files -------------------------------------------------------- $(eval $(call gb_Package_add_file,oox_inc,inc/oox/xls/excelvbaproject.hxx,oox/xls/excelvbaproject.hxx))
SLOFILES = \
$(SLO)$/binarycodec.obj \
$(SLO)$/binaryfilterbase.obj \
$(SLO)$/contexthandler.obj \
$(SLO)$/contexthandler2.obj \
$(SLO)$/fastparser.obj \
$(SLO)$/fasttokenhandler.obj \
$(SLO)$/filterbase.obj \
$(SLO)$/filterdetect.obj \
$(SLO)$/fragmenthandler.obj \
$(SLO)$/fragmenthandler2.obj \
$(SLO)$/recordparser.obj \
$(SLO)$/relations.obj \
$(SLO)$/relationshandler.obj \
$(SLO)$/services.obj \
$(SLO)$/xmlfilterbase.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2011 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
# #
...@@ -14,40 +14,16 @@ ...@@ -14,40 +14,16 @@
# #
# OpenOffice.org is distributed in the hope that it will be useful, # OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details # GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code). # (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 # You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see # version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html> # <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
#************************************************************************* #*************************************************************************
PRJ=..$/.. $(eval $(call gb_Package_Package,oox_source,$(SRCDIR)/oox/source))
$(eval $(call gb_Package_add_file,oox_source,inc/oox/token/tokens.txt,token/tokens.txt))
PRJNAME=oox
TARGET=dump
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/biffdumper.obj \
$(SLO)$/dffdumper.obj \
$(SLO)$/dumperbase.obj \
$(SLO)$/oledumper.obj \
$(SLO)$/pptxdumper.obj \
$(SLO)$/xlsbdumper.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2011 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_Package_Package,oox_workdir,$(WORKDIR)/Misc/oox))
$(eval $(call gb_Package_add_file,oox_workdir,inc/oox/token/namespaces.hxx,token/namespaces.hxx))
$(eval $(call gb_Package_add_file,oox_workdir,inc/oox/token/namespaces.txt,token/namespaces.txt))
$(eval $(call gb_Package_add_file,oox_workdir,inc/oox/token/properties.hxx,token/properties.hxx))
$(eval $(call gb_Package_add_file,oox_workdir,inc/oox/token/tokens.hxx,token/tokens.hxx))
oox oox : vos cppu cppuhelper comphelper sal offapi sax basegfx xmlscript tools vcl BOOST:boost OPENSSL:openssl LIBXSLT:libxslt NULL oox oox : vos cppu cppuhelper comphelper sal offapi sax basegfx xmlscript tools vcl BOOST:boost OPENSSL:openssl LIBXSLT:libxslt NULL
oox oox usr1 - all oox_mkout NULL oox oox usr1 - all oox_mkout NULL
oox oox\prj get - all oox_prj NULL oox oox\prj nmake - all oox_prj NULL
oox oox\source\token nmake - all oox_token NULL
oox oox\source\helper nmake - all oox_helper oox_token NULL
oox oox\source\core nmake - all oox_core oox_token NULL
oox oox\source\ole nmake - all oox_ole oox_token NULL
oox oox\source\docprop nmake - all oox_docprop oox_token NULL
oox oox\source\drawingml nmake - all oox_drawingml oox_token NULL
oox oox\source\drawingml\diagram nmake - all oox_diagram oox_token NULL
oox oox\source\drawingml\chart nmake - all oox_chart oox_token NULL
oox oox\source\drawingml\table nmake - all oox_table oox_token NULL
oox oox\source\ppt nmake - all oox_ppt oox_token NULL
oox oox\source\vml nmake - all oox_vml oox_token NULL
oox oox\source\xls nmake - all oox_xls oox_token NULL
oox oox\source\dump nmake - all oox_dump oox_token NULL
oox oox\source\shape nmake - all oox_shape oox_token NULL
oox oox\util nmake - all oox_util oox_token oox_helper oox_core oox_ole oox_vml oox_drawingml oox_diagram oox_chart oox_table oox_ppt oox_xls oox_dump oox_shape oox_docprop NULL
mkdir: %_DEST%\inc%_EXT%\oox
mkdir: %_DEST%\inc%_EXT%\oox\core
mkdir: %_DEST%\inc%_EXT%\oox\drawingml
mkdir: %_DEST%\inc%_EXT%\oox\drawingml\chart
mkdir: %_DEST%\inc%_EXT%\oox\drawingml\table
mkdir: %_DEST%\inc%_EXT%\oox\helper
mkdir: %_DEST%\inc%_EXT%\oox\ole
mkdir: %_DEST%\inc%_EXT%\oox\token
mkdir: %_DEST%\inc%_EXT%\oox\vml
mkdir: %_DEST%\inc%_EXT%\oox\xls
..\%__SRC%\misc\*.map %_DEST%\bin%_EXT%\*.map
..\%__SRC%\lib\ixo.lib %_DEST%\lib%_EXT%\ixo.lib
..\%__SRC%\lib\xol.lib %_DEST%\lib%_EXT%\xol.lib
..\%__SRC%\lib\libxol.a %_DEST%\lib%_EXT%\libxol.a
..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll
..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%\lib*.so
..\%__SRC%\lib\i*.lib %_DEST%\lib%_EXT%\i*.lib
..\%__SRC%\lib\*.dylib %_DEST%\lib%_EXT%\*.dylib
..\%__SRC%\inc\oox\token\tokens.hxx %_DEST%\inc%_EXT%\oox\token\tokens.hxx
..\%__SRC%\misc\namespaces.txt %_DEST%\inc%_EXT%\oox\namespaces.txt
..\source\token\tokens.txt %_DEST%\inc%_EXT%\oox\token.txt
..\inc\oox\dllapi.h %_DEST%\inc%_EXT%\oox\dllapi.h
..\inc\oox\helper\binarystreambase.hxx %_DEST%\inc%_EXT%\oox\helper\binarystreambase.hxx
..\inc\oox\helper\helper.hxx %_DEST%\inc%_EXT%\oox\helper\helper.hxx
..\inc\oox\helper\refmap.hxx %_DEST%\inc%_EXT%\oox\helper\refmap.hxx
..\inc\oox\helper\refvector.hxx %_DEST%\inc%_EXT%\oox\helper\refvector.hxx
..\inc\oox\helper\storagebase.hxx %_DEST%\inc%_EXT%\oox\helper\storagebase.hxx
..\inc\oox\helper\zipstorage.hxx %_DEST%\inc%_EXT%\oox\helper\zipstorage.hxx
..\inc\oox\core\filterbase.hxx %_DEST%\inc%_EXT%\oox\core\filterbase.hxx
..\inc\oox\core\filterdetect.hxx %_DEST%\inc%_EXT%\oox\core\filterdetect.hxx
..\inc\oox\core\relations.hxx %_DEST%\inc%_EXT%\oox\core\relations.hxx
..\inc\oox\core\xmlfilterbase.hxx %_DEST%\inc%_EXT%\oox\core\xmlfilterbase.hxx
..\inc\oox\drawingml\chart\chartconverter.hxx %_DEST%\inc%_EXT%\oox\drawingml\chart\chartconverter.hxx
..\inc\oox\drawingml\table\tablestylelist.hxx %_DEST%\inc%_EXT%\oox\drawingml\table\tablestylelist.hxx
..\inc\oox\ole\vbaproject.hxx %_DEST%\inc%_EXT%\oox\ole\vbaproject.hxx
..\inc\oox\vml\vmldrawing.hxx %_DEST%\inc%_EXT%\oox\vml\vmldrawing.hxx
..\inc\oox\vml\vmlshape.hxx %_DEST%\inc%_EXT%\oox\vml\vmlshape.hxx
..\inc\oox\xls\excelvbaproject.hxx %_DEST%\inc%_EXT%\oox\xls\excelvbaproject.hxx
dos: sh -c "if test %OS% = MACOSX; then create-bundle %_DEST%\lib%_EXT%\*.dylib; fi"
..\xml\components.xml %_DEST%\xml%_EXT%\components.xml
..\%__SRC%\misc\oox.component %_DEST%\xml%_EXT%\oox.component
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2011 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
# #
...@@ -25,6 +25,16 @@ ...@@ -25,6 +25,16 @@
# #
#************************************************************************* #*************************************************************************
# Reduction of exported symbols: PRJ=..
CDEFS += -DOOX_DLLIMPLEMENTATION TARGET=prj
VISIBILITY_HIDDEN=TRUE
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET)
#*************************************************************************
#
# 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=oox
TARGET=chart
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/axiscontext.obj \
$(SLO)$/axisconverter.obj \
$(SLO)$/axismodel.obj \
$(SLO)$/chartcontextbase.obj \
$(SLO)$/chartconverter.obj \
$(SLO)$/chartdrawingfragment.obj \
$(SLO)$/chartspaceconverter.obj \
$(SLO)$/chartspacefragment.obj \
$(SLO)$/chartspacemodel.obj \
$(SLO)$/converterbase.obj \
$(SLO)$/datasourcecontext.obj \
$(SLO)$/datasourceconverter.obj \
$(SLO)$/datasourcemodel.obj \
$(SLO)$/modelbase.obj \
$(SLO)$/objectformatter.obj \
$(SLO)$/plotareacontext.obj \
$(SLO)$/plotareaconverter.obj \
$(SLO)$/plotareamodel.obj \
$(SLO)$/seriescontext.obj \
$(SLO)$/seriesconverter.obj \
$(SLO)$/seriesmodel.obj \
$(SLO)$/titlecontext.obj \
$(SLO)$/titleconverter.obj \
$(SLO)$/titlemodel.obj \
$(SLO)$/typegroupcontext.obj \
$(SLO)$/typegroupconverter.obj \
$(SLO)$/typegroupmodel.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=diagram
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/diagram.obj \
$(SLO)$/diagramfragmenthandler.obj \
$(SLO)$/diagramdefinitioncontext.obj \
$(SLO)$/diagramlayoutatoms.obj \
$(SLO)$/datamodelcontext.obj \
$(SLO)$/layoutnodecontext.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=drawingml
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/clrscheme.obj\
$(SLO)$/clrschemecontext.obj\
$(SLO)$/color.obj\
$(SLO)$/colorchoicecontext.obj\
$(SLO)$/connectorshapecontext.obj\
$(SLO)$/customshapegeometry.obj\
$(SLO)$/customshapeproperties.obj\
$(SLO)$/drawingmltypes.obj\
$(SLO)$/embeddedwavaudiofile.obj\
$(SLO)$/fillproperties.obj\
$(SLO)$/fillpropertiesgroupcontext.obj\
$(SLO)$/graphicshapecontext.obj\
$(SLO)$/guidcontext.obj\
$(SLO)$/hyperlinkcontext.obj\
$(SLO)$/lineproperties.obj\
$(SLO)$/linepropertiescontext.obj\
$(SLO)$/objectdefaultcontext.obj\
$(SLO)$/shape.obj\
$(SLO)$/shapecontext.obj\
$(SLO)$/shapegroupcontext.obj\
$(SLO)$/shapepropertiescontext.obj\
$(SLO)$/shapepropertymap.obj\
$(SLO)$/shapestylecontext.obj\
$(SLO)$/spdefcontext.obj\
$(SLO)$/textbody.obj\
$(SLO)$/textbodycontext.obj\
$(SLO)$/textbodyproperties.obj\
$(SLO)$/textbodypropertiescontext.obj\
$(SLO)$/textcharacterproperties.obj\
$(SLO)$/textcharacterpropertiescontext.obj\
$(SLO)$/textfield.obj\
$(SLO)$/textfieldcontext.obj\
$(SLO)$/textfont.obj\
$(SLO)$/textliststyle.obj \
$(SLO)$/textliststylecontext.obj\
$(SLO)$/textparagraph.obj\
$(SLO)$/textparagraphproperties.obj\
$(SLO)$/textparagraphpropertiescontext.obj\
$(SLO)$/textrun.obj\
$(SLO)$/textspacingcontext.obj\
$(SLO)$/texttabstoplistcontext.obj\
$(SLO)$/theme.obj\
$(SLO)$/themeelementscontext.obj\
$(SLO)$/themefragmenthandler.obj\
$(SLO)$/transform2dcontext.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=table
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/tablecontext.obj \
$(SLO)$/tableproperties.obj \
$(SLO)$/tablerow.obj \
$(SLO)$/tablerowcontext.obj \
$(SLO)$/tablecell.obj \
$(SLO)$/tablecellcontext.obj \
$(SLO)$/tablestylelist.obj \
$(SLO)$/tablestylelistfragmenthandler.obj \
$(SLO)$/tablestylecontext.obj \
$(SLO)$/tablestyle.obj \
$(SLO)$/tablebackgroundstylecontext.obj \
$(SLO)$/tablepartstylecontext.obj \
$(SLO)$/tablestyletextstylecontext.obj \
$(SLO)$/tablestylecellstylecontext.obj \
$(SLO)$/tablestylepart.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=helper
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/attributelist.obj \
$(SLO)$/binaryinputstream.obj \
$(SLO)$/binaryoutputstream.obj \
$(SLO)$/binarystreambase.obj \
$(SLO)$/containerhelper.obj \
$(SLO)$/graphichelper.obj \
$(SLO)$/modelobjecthelper.obj \
$(SLO)$/progressbar.obj \
$(SLO)$/propertymap.obj \
$(SLO)$/propertyset.obj \
$(SLO)$/storagebase.obj \
$(SLO)$/textinputstream.obj \
$(SLO)$/zipstorage.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=ole
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/axbinaryreader.obj \
$(SLO)$/axcontrol.obj \
$(SLO)$/axcontrolfragment.obj \
$(SLO)$/olehelper.obj \
$(SLO)$/oleobjecthelper.obj \
$(SLO)$/olestorage.obj \
$(SLO)$/vbacontrol.obj \
$(SLO)$/vbahelper.obj \
$(SLO)$/vbainputstream.obj \
$(SLO)$/vbamodule.obj \
$(SLO)$/vbaproject.obj \
$(SLO)$/vbaprojectfilter.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=ppt
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/animationspersist.obj \
$(SLO)$/animationtypes.obj \
$(SLO)$/animvariantcontext.obj \
$(SLO)$/backgroundproperties.obj\
$(SLO)$/buildlistcontext.obj \
$(SLO)$/commonbehaviorcontext.obj \
$(SLO)$/commontimenodecontext.obj \
$(SLO)$/conditioncontext.obj \
$(SLO)$/customshowlistcontext.obj \
$(SLO)$/headerfootercontext.obj \
$(SLO)$/layoutfragmenthandler.obj\
$(SLO)$/pptfilterhelpers.obj\
$(SLO)$/pptimport.obj\
$(SLO)$/pptshape.obj \
$(SLO)$/pptshapecontext.obj \
$(SLO)$/pptshapegroupcontext.obj \
$(SLO)$/pptshapepropertiescontext.obj \
$(SLO)$/presentationfragmenthandler.obj\
$(SLO)$/slidefragmenthandler.obj\
$(SLO)$/slidemastertextstylescontext.obj \
$(SLO)$/slidepersist.obj\
$(SLO)$/slidetimingcontext.obj\
$(SLO)$/slidetransition.obj\
$(SLO)$/slidetransitioncontext.obj\
$(SLO)$/soundactioncontext.obj \
$(SLO)$/timeanimvaluecontext.obj \
$(SLO)$/timenode.obj\
$(SLO)$/timenodelistcontext.obj \
$(SLO)$/timetargetelementcontext.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=token
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/namespacemap.obj \
$(SLO)$/propertynames.obj \
$(SLO)$/tokenmap.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
GENHEADERPATH = $(INCCOM)$/oox$/token
$(MISC)$/tokenhash.gperf $(INCCOM)$/tokennames.inc $(GENHEADERPATH)$/tokens.hxx $(INCCOM)$/namespacenames.inc $(MISC)$/namespaces.txt $(GENHEADERPATH)$/namespaces.hxx $(INCCOM)$/propertynames.inc $(GENHEADERPATH)$/properties.hxx :
@@noop $(assign do_phony:=.PHONY)
$(SLO)$/tokenmap.obj : $(INCCOM)$/tokenhash.inc $(INCCOM)$/tokennames.inc $(GENHEADERPATH)$/tokens.hxx $(MISC)$/do_tokens
$(INCCOM)$/tokenhash.inc : $(MISC)$/tokenhash.gperf $(MISC)$/do_tokens
$(AUGMENT_LIBRARY_PATH) gperf --compare-strncmp $(MISC)$/tokenhash.gperf | $(SED) -e "s/(char\*)0/(char\*)0, 0/g" | $(GREP) -v "^#line" >$(INCCOM)$/tokenhash.inc
$(MISC)$/do_tokens $(do_phony) : tokens.txt tokens.pl tokens.hxx.head tokens.hxx.tail $(GENHEADERPATH)$/tokens.hxx $(INCCOM)$/tokennames.inc $(MISC)$/tokenhash.gperf
@@-$(RM) $@
$(MKDIRHIER) $(GENHEADERPATH)
$(PERL) tokens.pl tokens.txt $(MISC)$/tokenids.inc $(INCCOM)$/tokennames.inc $(MISC)$/tokenhash.gperf && $(TYPE) tokens.hxx.head $(MISC)$/tokenids.inc tokens.hxx.tail > $(GENHEADERPATH)$/tokens.hxx && $(TOUCH) $@
$(SLO)$/namespacemap.obj : $(INCCOM)$/namespacenames.inc $(MISC)$/namespaces.txt $(GENHEADERPATH)$/namespaces.hxx $(MISC)$/do_namespaces
$(MISC)$/do_namespaces $(do_phony) : namespaces.txt namespaces.pl namespaces.hxx.head namespaces.hxx.tail $(INCCOM)$/namespacenames.inc $(MISC)$/namespaces.txt $(GENHEADERPATH)$/namespaces.hxx
@@-$(RM) $@
$(MKDIRHIER) $(GENHEADERPATH)
$(PERL) namespaces.pl namespaces.txt $(MISC)$/namespaceids.inc $(INCCOM)$/namespacenames.inc $(MISC)$/namespaces.txt && $(TYPE) namespaces.hxx.head $(MISC)$/namespaceids.inc namespaces.hxx.tail > $(GENHEADERPATH)$/namespaces.hxx && $(TOUCH) $@
$(SLO)$/propertynames.obj : $(INCCOM)$/propertynames.inc $(GENHEADERPATH)$/properties.hxx $(MISC)$/do_properties
$(MISC)$/do_properties $(do_phony) : properties.txt properties.pl properties.hxx.head properties.hxx.tail $(INCCOM)$/propertynames.inc $(GENHEADERPATH)$/properties.hxx
@@-$(RM) $@
$(MKDIRHIER) $(GENHEADERPATH)
$(PERL) properties.pl properties.txt $(MISC)$/propertyids.inc $(INCCOM)$/propertynames.inc && $(TYPE) properties.hxx.head $(MISC)$/propertyids.inc properties.hxx.tail > $(GENHEADERPATH)$/properties.hxx && $(TOUCH) $@
...@@ -36,7 +36,7 @@ NamespaceMap::NamespaceMap() ...@@ -36,7 +36,7 @@ NamespaceMap::NamespaceMap()
static const struct NamespaceUrl { sal_Int32 mnId; const sal_Char* mpcUrl; } spNamespaceUrls[] = static const struct NamespaceUrl { sal_Int32 mnId; const sal_Char* mpcUrl; } spNamespaceUrls[] =
{ {
// include auto-generated C array with namespace URLs as C strings // include auto-generated C array with namespace URLs as C strings
#include "namespacenames.inc" #include <token/namespacenames.inc>
{ -1, "" } { -1, "" }
}; };
......
...@@ -25,17 +25,19 @@ ...@@ -25,17 +25,19 @@
# #
#************************************************************************* #*************************************************************************
$ARGV0 = shift @ARGV; # operation mode (1 = identifiers, 2 = names, 3 = plain)
$ARGV1 = shift @ARGV; $op = shift @ARGV;
$ARGV2 = shift @ARGV; die "Error: invalid operation" unless( $op >= 1 && $op <= 3);
$ARGV3 = shift @ARGV;
# parse input file # number of bits to shift the namespace identifier
$shift = 16;
if( $op == 1 ) {
print( "const size_t NMSP_SHIFT = $shift;\n" );
}
open( INFILE, $ARGV0 ) or die "cannot open input file: $!"; $i = 1;
my %namespaces; while( <> ) {
while( <INFILE> )
{
# trim newline # trim newline
chomp( $_ ); chomp( $_ );
# trim leading/trailing whitespace # trim leading/trailing whitespace
...@@ -44,36 +46,14 @@ while( <INFILE> ) ...@@ -44,36 +46,14 @@ while( <INFILE> )
# trim comments # trim comments
$_ =~ s/^#.*//; $_ =~ s/^#.*//;
# skip empty lines # skip empty lines
if( $_ ) if( $_ ) {
{
# check for valid characters # check for valid characters
$_ =~ /^([a-zA-Z]+)\s+([a-zA-Z0-9-.:\/]+)\s*$/ or die "Error: invalid character in input data"; $_ =~ /^([a-zA-Z]+)\s+([a-zA-Z0-9-.:\/]+)\s*$/ or die "Error: invalid entry: '$_'";
$namespaces{$1} = $2; # generate output
$id = $i << $shift;
if( $op == 1 ) { print( "const sal_Int32 NMSP_$1 = $i << NMSP_SHIFT;\n" ); }
elsif( $op == 2 ) { print( "{ $id, \"$2\" },\n" ); }
elsif( $op == 3 ) { print( "$id $1 $2\n" ); }
++$i;
} }
} }
close( INFILE );
# generate output files
open( IDFILE, ">$ARGV1" ) or die "Error: cannot open output file: $!";
open( NAMEFILE, ">$ARGV2" ) or die "Error: cannot open output file: $!";
open( TXTFILE, ">$ARGV3" ) or die "Error: cannot open output file: $!";
# number of bits to shift the namespace identifier
$shift = 16;
print ( IDFILE "const size_t NMSP_SHIFT = $shift;\n" );
$i = 1;
foreach( keys( %namespaces ) )
{
print( IDFILE "const sal_Int32 NMSP_$_ = $i << NMSP_SHIFT;\n" );
$id = $i << $shift;
print( NAMEFILE "{ $id, \"$namespaces{$_}\" },\n" );
print( TXTFILE "$id $_ $namespaces{$_}\n" );
++$i;
}
close( IDFILE );
close( nameFILE );
close( TXTFILE );
...@@ -25,43 +25,33 @@ ...@@ -25,43 +25,33 @@
# #
#************************************************************************* #*************************************************************************
$ARGV0 = shift @ARGV; # operation mode (1 = identifiers, 2 = names)
$ARGV1 = shift @ARGV; $op = shift @ARGV;
$ARGV2 = shift @ARGV; die "Error: invalid operation" unless( $op >= 1 && $op <= 2);
# parse input file $i = 0;
while( <> ) {
open( INFILE, $ARGV0 ) or die "Error: cannot open input file: $!";
my %props;
while( <INFILE> )
{
# trim newline # trim newline
chomp( $_ ); chomp( $_ );
# trim leading/trailing whitespace # trim leading/trailing whitespace
$_ =~ s/^\s*//g; $_ =~ s/^\s*//g;
$_ =~ s/\s*$//g; $_ =~ s/\s*$//g;
# check for valid characters # skip empty lines
$_ =~ /^[A-Z][a-zA-Z0-9]*$/ or die "Error: invalid character in property '$_'"; if( $_ ) {
$id = "PROP_$_"; # check for valid characters
$props{$_} = $id; $_ =~ /^[A-Z][a-zA-Z0-9]+$/ or die "Error: invalid entry: '$_'";
# generate output
if( $op == 1 ) {
print( "const sal_Int32 PROP_$_ = $i;\n" );
} elsif( $op == 2 ) {
print( "/* $i */ \"$_\",\n" );
}
++$i;
}
} }
close( INFILE );
# generate output files
open( IDFILE, ">$ARGV1" ) or die "Error: cannot open output file: $!";
open( NAMEFILE, ">$ARGV2" ) or die "Error: cannot open output file: $!";
$i = 0; if( $op == 1 ) {
foreach( sort( keys( %props ) ) ) print( "const sal_Int32 PROP_COUNT = $i;\nconst sal_Int32 PROP_INVALID = -1;\n" );
{ } elsif( $op == 2 ) {
print( IDFILE "const sal_Int32 $props{$_} = $i;\n" ); print( " \"\"" );
print( NAMEFILE "/* $i */ \"$_\",\n" );
++$i;
} }
print( IDFILE "const sal_Int32 PROP_COUNT = $i;\n" );
print( IDFILE "const sal_Int32 PROP_INVALID = -1;\n" );
close( IDFILE );
close( NAMEFILE );
...@@ -36,8 +36,7 @@ PropertyNameVector::PropertyNameVector() ...@@ -36,8 +36,7 @@ PropertyNameVector::PropertyNameVector()
static const sal_Char* sppcPropertyNames[] = static const sal_Char* sppcPropertyNames[] =
{ {
// include auto-generated C array with property names as C strings // include auto-generated C array with property names as C strings
#include "propertynames.inc" #include <token/propertynames.inc>
""
}; };
size_t nArraySize = (sizeof( sppcPropertyNames ) / sizeof( *sppcPropertyNames )) - 1; size_t nArraySize = (sizeof( sppcPropertyNames ) / sizeof( *sppcPropertyNames )) - 1;
......
...@@ -44,7 +44,7 @@ using ::rtl::OUString; ...@@ -44,7 +44,7 @@ using ::rtl::OUString;
namespace { namespace {
// include auto-generated Perfect_Hash // include auto-generated Perfect_Hash
#include "tokenhash.inc" #include <token/tokenhash.inc>
} // namespace } // namespace
// ============================================================================ // ============================================================================
...@@ -55,7 +55,7 @@ TokenMap::TokenMap() : ...@@ -55,7 +55,7 @@ TokenMap::TokenMap() :
static const sal_Char* sppcTokenNames[] = static const sal_Char* sppcTokenNames[] =
{ {
// include auto-generated C array with token names as C strings // include auto-generated C array with token names as C strings
#include "tokennames.inc" #include <token/tokennames.inc>
"" ""
}; };
......
...@@ -25,56 +25,50 @@ ...@@ -25,56 +25,50 @@
# #
#************************************************************************* #*************************************************************************
$ARGV0 = shift @ARGV; # operation mode (1 = identifiers, 2 = names, 3 = gperf)
$ARGV1 = shift @ARGV; $op = shift @ARGV;
$ARGV2 = shift @ARGV; die "Error: invalid operation" unless( $op >= 1 && $op <= 3);
$ARGV3 = shift @ARGV;
open( INFILE, $ARGV0 ) or die "Error: cannot open input file: $!"; if( $op == 3 ) {
my %tokens; print( "%language=C++\n" );
while ( <INFILE> ) print( "%global-table\n" );
print( "%null-strings\n" );
print( "%struct-type\n" );
print( "struct xmltoken {\n" );
print( " const sal_Char *name;\n" );
print( " sal_Int32 nToken;\n" );
print( "};\n" );
print( "%%\n" );
}
$i = 0;
while( <> )
{ {
# trim newline # trim newline
chomp( $_ ); chomp( $_ );
# trim leading/trailing whitespace # trim leading/trailing whitespace
$_ =~ s/^\s*//g; $_ =~ s/^\s*//g;
$_ =~ s/\s*$//g; $_ =~ s/\s*$//g;
# check for valid characters # skip empty lines
$_ =~ /^[a-zA-Z0-9-_]+$/ or die "Error: invalid character in token '$_'"; if( $_ ) {
$id = "XML_$_"; # check for valid characters
$id =~ s/-/_/g; $_ =~ /^[a-zA-Z0-9-_]+$/ or die "Error: invalid entry: '$_'";
$tokens{$_} = $id; # generate output
$id = "XML_$_";
$id =~ s/-/_/g;
if( $op == 1 ) {
print( "const sal_Int32 $id = $i;\n" );
} elsif( $op == 2 ) {
print( "\"$_\",\n" );
} elsif( $op == 3 ) {
print( "$_,$id\n" );
}
++$i;
}
} }
close ( INFILE );
# generate output files
open ( IDFILE, ">$ARGV1" ) or die "Error: cannot open output file: $!";
open ( NAMEFILE, ">$ARGV2" ) or die "Error: cannot open output file: $!";
open ( GPERFFILE, ">$ARGV3" ) or die "Error: cannot open output file: $!";
print( GPERFFILE "%language=C++\n" ); if( $op == 1 ) {
print( GPERFFILE "%global-table\n" ); print( "const sal_Int32 XML_TOKEN_COUNT = $i;\n" );
print( GPERFFILE "%null-strings\n" ); } elsif( $op == 3 ) {
print( GPERFFILE "%struct-type\n" ); print( "%%\n" );
print( GPERFFILE "struct xmltoken {\n" );
print( GPERFFILE " const sal_Char *name;\n" );
print( GPERFFILE " sal_Int32 nToken;\n" );
print( GPERFFILE "};\n" );
print( GPERFFILE "%%\n" );
$i = 0;
foreach( sort( keys( %tokens ) ) )
{
print( IDFILE "const sal_Int32 $tokens{$_} = $i;\n" );
print( NAMEFILE "\"$_\",\n" );
print( GPERFFILE "$_,$tokens{$_}\n" );
++$i;
} }
print( IDFILE "const sal_Int32 XML_TOKEN_COUNT = $i;\n" );
print( GPERFFILE "%%\n" );
close( IDFILE );
close( NAMEFILE );
close( GPERFFILE );
#*************************************************************************
#
# 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=oox
TARGET=vml
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/vmldrawing.obj \
$(SLO)$/vmldrawingfragment.obj \
$(SLO)$/vmlformatting.obj \
$(SLO)$/vmlinputstream.obj \
$(SLO)$/vmlshape.obj \
$(SLO)$/vmlshapecontainer.obj \
$(SLO)$/vmlshapecontext.obj \
$(SLO)$/vmltextbox.obj \
$(SLO)$/vmltextboxcontext.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=xls
AUTOSEG=true
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/addressconverter.obj \
$(SLO)$/autofilterbuffer.obj \
$(SLO)$/autofiltercontext.obj \
$(SLO)$/biffcodec.obj \
$(SLO)$/biffdetector.obj \
$(SLO)$/biffhelper.obj \
$(SLO)$/biffinputstream.obj \
$(SLO)$/biffoutputstream.obj \
$(SLO)$/chartsheetfragment.obj \
$(SLO)$/commentsbuffer.obj \
$(SLO)$/commentsfragment.obj \
$(SLO)$/condformatbuffer.obj \
$(SLO)$/condformatcontext.obj \
$(SLO)$/connectionsbuffer.obj \
$(SLO)$/connectionsfragment.obj \
$(SLO)$/defnamesbuffer.obj \
$(SLO)$/drawingbase.obj \
$(SLO)$/drawingfragment.obj \
$(SLO)$/drawingmanager.obj \
$(SLO)$/excelchartconverter.obj \
$(SLO)$/excelfilter.obj \
$(SLO)$/excelhandlers.obj \
$(SLO)$/excelvbaproject.obj \
$(SLO)$/externallinkbuffer.obj \
$(SLO)$/externallinkfragment.obj \
$(SLO)$/formulabase.obj \
$(SLO)$/formulaparser.obj \
$(SLO)$/numberformatsbuffer.obj \
$(SLO)$/ooxformulaparser.obj \
$(SLO)$/pagesettings.obj \
$(SLO)$/pivotcachebuffer.obj \
$(SLO)$/pivotcachefragment.obj \
$(SLO)$/pivottablebuffer.obj \
$(SLO)$/pivottablefragment.obj \
$(SLO)$/querytablebuffer.obj \
$(SLO)$/querytablefragment.obj \
$(SLO)$/richstring.obj \
$(SLO)$/richstringcontext.obj \
$(SLO)$/scenariobuffer.obj \
$(SLO)$/scenariocontext.obj \
$(SLO)$/sharedformulabuffer.obj \
$(SLO)$/sharedstringsbuffer.obj \
$(SLO)$/sharedstringsfragment.obj \
$(SLO)$/sheetdatacontext.obj \
$(SLO)$/stylesbuffer.obj \
$(SLO)$/stylesfragment.obj \
$(SLO)$/tablebuffer.obj \
$(SLO)$/tablefragment.obj \
$(SLO)$/themebuffer.obj \
$(SLO)$/unitconverter.obj \
$(SLO)$/viewsettings.obj \
$(SLO)$/workbookfragment.obj \
$(SLO)$/workbookhelper.obj \
$(SLO)$/workbooksettings.obj \
$(SLO)$/worksheetbuffer.obj \
$(SLO)$/worksheetfragment.obj \
$(SLO)$/worksheethelper.obj \
$(SLO)$/worksheetsettings.obj
# --- Targets -------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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=oox
TARGET=oox
USE_DEFFILE=TRUE
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(L10N_framework)"==""
# --- Allgemein ----------------------------------------------------
LIB1TARGET= $(SLB)$/$(TARGET).lib
LIB1FILES= \
$(SLB)$/token.lib\
$(SLB)$/helper.lib\
$(SLB)$/core.lib\
$(SLB)$/ole.lib\
$(SLB)$/ppt.lib\
$(SLB)$/xls.lib\
$(SLB)$/vml.lib\
$(SLB)$/drawingml.lib\
$(SLB)$/diagram.lib\
$(SLB)$/chart.lib\
$(SLB)$/table.lib\
$(SLB)$/shape.lib\
$(SLB)$/dump.lib\
$(SLB)$/docprop.lib
# --- Shared-Library -----------------------------------------------
SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
SHL1IMPLIB= i$(TARGET)
SHL1USE_EXPORTS=name
SHL1STDLIBS= \
$(CPPULIB) \
$(CPPUHELPERLIB)\
$(COMPHELPERLIB)\
$(RTLLIB) \
$(SALLIB) \
$(BASEGFXLIB) \
$(SAXLIB) \
$(XMLSCRIPTLIB)
# link openssl, copied this bit from ucb/source/ucp/webdav/makefile.mk
.IF "$(GUI)"=="WNT"
SHL1STDLIBS+= $(OPENSSLLIB)
.ELSE # WNT
.IF "$(OS)"=="SOLARIS"
SHL1STDLIBS+= -lnsl -lsocket -ldl
.ENDIF # SOLARIS
.IF "$(SYSTEM_OPENSSL)"=="YES"
SHL1STDLIBS+= $(OPENSSLLIB)
.ELSE
SHL1STDLIBS+= $(OPENSSLLIBST)
.ENDIF
.ENDIF # WNT
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
SHL1LIBS= $(LIB1TARGET)
DEF1NAME =$(SHL1TARGET)
DEFLIB1NAME =$(TARGET)
# --- Targets ----------------------------------------------------------
.ENDIF # L10N_framework
.INCLUDE : target.mk
ALLTAR : $(MISC)/oox.component
$(MISC)/oox.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
oox.component
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt oox.component
...@@ -174,8 +174,8 @@ GENERATEDFILES= \ ...@@ -174,8 +174,8 @@ GENERATEDFILES= \
$(TOKENXMLTMP) \ $(TOKENXMLTMP) \
$(TOKENXML) $(TOKENXML)
$(TOKENXMLTMP): $(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/token.txt $(TOKENXMLTMP): $(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/token$/tokens.txt
@$(TYPE) $(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/token.txt | $(SED) "s#\(.*\)#<fasttoken>\1</fasttoken>#" > $@ @$(TYPE) $(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/token$/tokens.txt | $(SED) "s#\(.*\)#<fasttoken>\1</fasttoken>#" > $@
$(TOKENXML): tokenxmlheader $(TOKENXMLTMP) tokenxmlfooter $(TOKENXML): tokenxmlheader $(TOKENXMLTMP) tokenxmlfooter
@$(TYPE) tokenxmlheader $(TOKENXMLTMP) tokenxmlfooter > $@ @$(TYPE) tokenxmlheader $(TOKENXMLTMP) tokenxmlfooter > $@
......
...@@ -130,7 +130,7 @@ SPRMIDSHXX=$(DOCTOKHXXOUTDIR)$/sprmids.hxx ...@@ -130,7 +130,7 @@ SPRMIDSHXX=$(DOCTOKHXXOUTDIR)$/sprmids.hxx
OOXMLRESOURCEIDSHXX=$(OOXMLHXXOUTDIR)$/resourceids.hxx OOXMLRESOURCEIDSHXX=$(OOXMLHXXOUTDIR)$/resourceids.hxx
NSXSL=$(MISC)$/namespacesmap.xsl NSXSL=$(MISC)$/namespacesmap.xsl
NAMESPACESTXT=$(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/namespaces.txt NAMESPACESTXT=$(SOLARVER)$/$(INPATH)$/inc$(UPDMINOREXT)$/oox$/token$/namespaces.txt
GENERATEDHEADERS=$(DOCTOKRESOURCEIDSHXX) $(OOXMLRESOURCEIDSHXX) $(SPRMIDSHXX) GENERATEDHEADERS=$(DOCTOKRESOURCEIDSHXX) $(OOXMLRESOURCEIDSHXX) $(SPRMIDSHXX)
GENERATEDFILES= \ GENERATEDFILES= \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment