Kaydet (Commit) d3df5839 authored tarafından Michael Stahl's avatar Michael Stahl

xmlfix3: convert unoxml to gbuild

üst 1076aee6
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# 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_JunitTest_JunitTest,unordf_complex))
$(eval $(call gb_JunitTest_set_defs,unordf_complex,\
$$(DEFS) \
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/unoxml/qa/complex/unoxml/testdocuments \
))
$(eval $(call gb_JunitTest_add_jars,unordf_complex,\
$(OUTDIR)/bin/OOoRunner.jar \
$(OUTDIR)/bin/ridl.jar \
$(OUTDIR)/bin/test.jar \
$(OUTDIR)/bin/unoil.jar \
$(OUTDIR)/bin/jurt.jar \
))
$(eval $(call gb_JunitTest_add_sourcefiles,unordf_complex,\
unoxml/qa/complex/unoxml/RDFRepositoryTest \
unoxml/qa/complex/unoxml/TestDocument \
))
$(eval $(call gb_JunitTest_add_classes,unordf_complex,\
complex.unoxml.RDFRepositoryTest \
))
# vim: set noet sw=4 ts=4:
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# 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_JunitTest_JunitTest,unoxml_complex))
$(eval $(call gb_JunitTest_set_defs,unoxml_complex,\
$$(DEFS) \
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/unoxml/qa/complex/unoxml/testdocuments \
))
$(eval $(call gb_JunitTest_add_jars,unoxml_complex,\
$(OUTDIR)/bin/OOoRunner.jar \
$(OUTDIR)/bin/ridl.jar \
$(OUTDIR)/bin/test.jar \
$(OUTDIR)/bin/unoil.jar \
$(OUTDIR)/bin/jurt.jar \
))
$(eval $(call gb_JunitTest_add_sourcefiles,unoxml_complex,\
unoxml/qa/complex/unoxml/DOMTest \
unoxml/qa/complex/unoxml/TestDocument \
))
$(eval $(call gb_JunitTest_add_classes,unoxml_complex,\
complex.unoxml.DOMTest \
))
# vim: set noet sw=4 ts=4:
......@@ -2,7 +2,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -14,61 +14,59 @@
#
# 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
# 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
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=..$/..
$(eval $(call gb_Library_Library,unordf))
PRJNAME=unoxml
TARGET=domimpl
$(eval $(call gb_Library_set_componentfile,unordf,unoxml/source/rdf/unordf))
ENABLE_EXCEPTIONS=TRUE
$(eval $(call gb_Library_set_include,unordf,\
$$(INCLUDE) \
-I$(OUTDIR)/inc/offuh \
))
# --- Settings -----------------------------------------------------
$(eval $(call gb_Library_set_defs,unordf,\
$$(DEFS) \
))
.INCLUDE : settings.mk
$(eval $(call gb_Library_add_linked_libs,unordf,\
cppuhelper \
cppu \
sal \
rdf \
xslt \
))
.IF "$(SYSTEM_LIBXML)" == "YES"
CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
.ENDIF
$(eval $(call gb_Library_add_exception_objects,unordf,\
unoxml/source/rdf/CBlankNode \
unoxml/source/rdf/CURI \
unoxml/source/rdf/CLiteral \
unoxml/source/rdf/librdf_repository \
unoxml/source/rdf/librdf_services \
))
# --- Files --------------------------------------------------------
ifeq ($(SYSTEM_REDLAND),YES)
$(eval $(call gb_Library_set_cxxflags,unordf,\
$$(CXXFLAGS) \
-DSYSTEM_REDLAND $$(REDLAND_CFLAGS) \
))
endif
SLOFILES = \
$(SLO)$/attr.obj \
$(SLO)$/cdatasection.obj \
$(SLO)$/characterdata.obj \
$(SLO)$/comment.obj \
$(SLO)$/document.obj \
$(SLO)$/documentbuilder.obj \
$(SLO)$/documentfragment.obj \
$(SLO)$/documenttype.obj \
$(SLO)$/element.obj \
$(SLO)$/entity.obj \
$(SLO)$/entityreference.obj \
$(SLO)$/node.obj \
$(SLO)$/notation.obj \
$(SLO)$/processinginstruction.obj \
$(SLO)$/text.obj \
$(SLO)$/domimplementation.obj \
$(SLO)$/elementlist.obj \
$(SLO)$/childlist.obj \
$(SLO)$/notationsmap.obj \
$(SLO)$/entitiesmap.obj \
$(SLO)$/attributesmap.obj \
$(SLO)$/saxbuilder.obj
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
ifeq ($(SYSTEM_LIBXSLT),YES)
$(eval $(call gb_Library_set_cxxflags,unordf,\
$$(CXXFLAGS) \
$$(LIBXSLT_CFLAGS) \
))
endif
# vim: set noet sw=4 ts=4:
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -14,79 +14,81 @@
#
# 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
# 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
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=..$/..
PRJNAME=unoxml
TARGET=unordf
LIBTARGET=NO
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(SYSTEM_REDLAND)" == "YES"
CFLAGS+=-DSYSTEM_REDLAND $(REDLAND_CFLAGS)
.ENDIF
.IF "$(SYSTEM_LIBXSLT)" == "YES"
CFLAGS+= $(LIBXSLT_CFLAGS)
.ELSE
LIBXSLTINCDIR=external$/libxslt
CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
.ENDIF
# --- Files --------------------------------------------------------
.IF "$(L10N_framework)"==""
SLOFILES = \
$(SLO)$/CBlankNode.obj \
$(SLO)$/CURI.obj \
$(SLO)$/CLiteral.obj \
$(SLO)$/librdf_repository.obj \
$(SLO)$/librdf_services.obj
SHL1DEPN= makefile.mk
SHL1OBJS= $(SLOFILES)
SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
SHL1IMPLIB= i$(TARGET)
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
SHL1STDLIBS= \
$(REDLANDLIB) \
$(XSLTLIB) \
$(CPPUHELPERLIB) \
$(CPPULIB) \
$(SALLIB) \
.ENDIF
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
ALLTAR : $(MISC)/unordf.component
$(eval $(call gb_Library_Library,unoxml))
$(eval $(call gb_Library_set_componentfile,unoxml,unoxml/source/service/unoxml))
$(eval $(call gb_Library_set_include,unoxml,\
$$(INCLUDE) \
-I$(OUTDIR)/inc/offuh \
))
$(eval $(call gb_Library_set_defs,unoxml,\
$$(DEFS) \
))
$(eval $(call gb_Library_add_linked_libs,unoxml,\
ucbhelper \
sax \
comphelper \
cppuhelper \
cppu \
sal \
xml2 \
))
$(eval $(call gb_Library_add_exception_objects,unoxml,\
unoxml/source/dom/node \
unoxml/source/dom/document \
unoxml/source/dom/element \
unoxml/source/dom/attr \
unoxml/source/dom/cdatasection \
unoxml/source/dom/characterdata \
unoxml/source/dom/comment \
unoxml/source/dom/documentbuilder \
unoxml/source/dom/documentfragment \
unoxml/source/dom/documenttype \
unoxml/source/dom/entity \
unoxml/source/dom/entityreference \
unoxml/source/dom/notation \
unoxml/source/dom/processinginstruction \
unoxml/source/dom/text \
unoxml/source/dom/domimplementation \
unoxml/source/dom/elementlist \
unoxml/source/dom/childlist \
unoxml/source/dom/notationsmap \
unoxml/source/dom/entitiesmap \
unoxml/source/dom/attributesmap \
unoxml/source/dom/saxbuilder \
unoxml/source/xpath/xpathobject \
unoxml/source/xpath/nodelist \
unoxml/source/xpath/xpathapi \
unoxml/source/events/event \
unoxml/source/events/eventdispatcher \
unoxml/source/events/mutationevent \
unoxml/source/events/uievent \
unoxml/source/events/mouseevent \
unoxml/source/events/testlistener \
unoxml/source/service/services \
))
ifeq ($(SYSTEM_LIBXML),YES)
$(eval $(call gb_Library_set_cxxflags,unoxml,\
$$(CXXFLAGS) \
-DSYSTEM_LIBXML $$(LIBXML_CFLAGS) \
))
endif
# vim: set noet sw=4 ts=4:
$(MISC)/unordf.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
unordf.component
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt unordf.component
......@@ -25,32 +25,14 @@
#
#*************************************************************************
PRJ=../..
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
PRJNAME=unoxml
TARGET=eventsimpl
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(SYSTEM_LIBXML)" == "YES"
CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
.ENDIF
# --- Files --------------------------------------------------------
SLOFILES =\
$(SLO)$/event.obj \
$(SLO)$/eventdispatcher.obj \
$(SLO)$/mutationevent.obj \
$(SLO)$/uievent.obj \
$(SLO)$/mouseevent.obj \
$(SLO)$/testlistener.obj \
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
gb_PARTIALBUILD := T
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -14,46 +14,27 @@
#
# 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
# 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
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#***********************************************************************/
.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
nothing .PHONY:
.ELSE
PRJ = ../../..
PRJNAME = unoxml
TARGET = qa_complex_unoxml
.IF "$(OOO_JUNIT_JAR)" != ""
PACKAGE = complex/unoxml
JAVATESTFILES = \
RDFRepositoryTest.java
JAVAFILES = $(JAVATESTFILES) \
TestDocument.java
JARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar jurt.jar
EXTRAJARFILES = $(OOO_JUNIT_JAR)
# Sample how to debug
# JAVAIFLAGS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
.END
.INCLUDE: settings.mk
.INCLUDE: target.mk
.INCLUDE: installationtest.mk
#*************************************************************************
ALLTAR : javatest
$(eval $(call gb_Module_Module,unoxml))
.END
$(eval $(call gb_Module_add_targets,unoxml,\
Library_unoxml \
Library_unordf \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,unoxml,\
JunitTest_unoxml_complex \
JunitTest_unordf_complex \
))
# vim: set noet sw=4 ts=4:
ux unoxml : offuh cppuhelper LIBXML2:libxml2 LIBXSLT:libxslt REDLAND:redland sax comphelper ucbhelper NULL
ux unoxml\source\dom nmake - all ux_dom NULL
ux unoxml\source\xpath nmake - all ux_xpath ux_dom NULL
ux unoxml\source\events nmake - all ux_events ux_dom NULL
ux unoxml\source\service nmake - all ux_service ux_dom ux_xpath ux_events NULL
ux unoxml\source\rdf nmake - all ux_librdf NULL
ux unoxml\qa\complex\unoxml nmake - all ux_complex ux_librdf NULL
ux unoxml\prj nmake - all ux_prj NULL
..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%\lib*.so
..\%__SRC%\lib\lib*.dylib %_DEST%\lib%_EXT%\lib*.dylib
..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll
..\%__SRC%\misc\unordf.component %_DEST%\xml%_EXT%\unordf.component
..\%__SRC%\misc\unoxml.component %_DEST%\xml%_EXT%\unoxml.component
......@@ -25,28 +25,16 @@
#
#*************************************************************************
PRJ=../..
PRJ=..
TARGET=prj
PRJNAME=unoxml
TARGET=xpathimpl
ENABLE_EXCEPTIONS=TRUE
.INCLUDE : settings.mk
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(SYSTEM_LIBXML)" == "YES"
CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/xpathobject.obj \
$(SLO)$/nodelist.obj \
$(SLO)$/xpathapi.obj
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
all:
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET)
......@@ -29,10 +29,11 @@ package complex.unoxml;
import java.io.File;
import org.openoffice.test.OfficeFileUrl;
import org.openoffice.test.Argument;
final class TestDocument {
public static String getUrl(String name) {
return OfficeFileUrl.getAbsolute(new File("testdocuments", name));
return OfficeFileUrl.getAbsolute(new File(Argument.get("tdoc"), name));
}
private TestDocument() {}
......
......@@ -38,7 +38,7 @@ using namespace ::com::sun::star;
extern "C"
{
void SAL_CALL
SAL_DLLPUBLIC_EXPORT void SAL_CALL
component_getImplementationEnvironment(const sal_Char **o_ppEnvironmentTypeName,
uno_Environment ** /* ppEnvironment */)
{
......@@ -65,7 +65,8 @@ static ::cppu::ImplementationEntry const entries[] = {
{ 0, 0, 0, 0, 0, 0 }
};
extern "C" void * SAL_CALL component_getFactory(
SAL_DLLPUBLIC_EXPORT void * SAL_CALL
component_getFactory(
const char * implName, void * serviceManager, void * registryKey)
{
return ::cppu::component_getFactoryHelper(
......
#*************************************************************************
#
# 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=unoxml
TARGET=unoxml
LIBTARGET=NO
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(SYSTEM_LIBXML)" == "YES"
CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
.ENDIF
# --- Files --------------------------------------------------------
SLOFILES = \
$(SLO)$/services.obj
SHL1DEPN= makefile.mk
SHL1OBJS= $(SLOFILES)
SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
SHL1IMPLIB= i$(TARGET)
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
SHL1LIBS= \
$(SLB)$/domimpl.lib \
$(SLB)$/xpathimpl.lib \
$(SLB)$/eventsimpl.lib
SHL1STDLIBS= \
$(UCBHELPERLIB) \
$(LIBXML2LIB) \
$(COMPHELPERLIB) \
$(CPPUHELPERLIB) \
$(CPPULIB) \
$(SAXLIB) \
$(SALLIB)\
$(EXPATASCII3RDLIB)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
ALLTAR : $(MISC)/unoxml.component
$(MISC)/unoxml.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
unoxml.component
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt unoxml.component
......@@ -54,13 +54,13 @@ using namespace ::com::sun::star::registry;
extern "C"
{
void SAL_CALL
SAL_DLLPUBLIC_EXPORT void SAL_CALL
component_getImplementationEnvironment(const sal_Char **ppEnvironmentTypeName, uno_Environment ** /*ppEnvironment */)
{
*ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME ;
}
void* SAL_CALL
SAL_DLLPUBLIC_EXPORT void* SAL_CALL
component_getFactory(const sal_Char *pImplementationName, void *pServiceManager, void * /*pRegistryKey*/)
{
void* pReturn = NULL ;
......
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