diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-05 11:28:48 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-05 11:31:58 +0200 |
commit | 0bd11cfd85cea5fb2dec0c2fc0da49fb522ab7b3 (patch) | |
tree | d68f156780b93a4aa92b757c2a8e738b88d7f1d2 | |
parent | tweak assert (diff) | |
download | core-0bd11cfd85cea5fb2dec0c2fc0da49fb522ab7b3.tar.gz core-0bd11cfd85cea5fb2dec0c2fc0da49fb522ab7b3.zip |
Use the old way to build libcmis and cmis ucp ATM
-rw-r--r-- | libcmis/libcmis-0.1.0.patch | 35 | ||||
-rw-r--r-- | libcmis/makefile.mk | 58 | ||||
-rw-r--r-- | libcmis/prj/build.lst | 5 | ||||
-rw-r--r-- | libcmis/prj/d.lst | 7 | ||||
-rw-r--r-- | solenv/inc/libs.mk | 5 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/makefile.mk | 18 |
6 files changed, 120 insertions, 8 deletions
diff --git a/libcmis/libcmis-0.1.0.patch b/libcmis/libcmis-0.1.0.patch new file mode 100644 index 000000000000..dc4d2da49cef --- /dev/null +++ b/libcmis/libcmis-0.1.0.patch @@ -0,0 +1,35 @@ +--- misc/libcmis-0.1.0/src/libcmis/makefile.mk 2011-10-05 10:55:51.349325061 +0200 ++++ misc/build/libcmis-0.1.0/src/libcmis/makefile.mk 2011-10-05 10:54:58.290853952 +0200 +@@ -1 +1,31 @@ +-dummy ++EXTERNAL_WARNINGS_NOT_ERRORS := TRUE ++ ++PRJ=..$/..$/..$/..$/..$/.. ++ ++PRJNAME=libcmis ++TARGET=cmislib ++ENABLE_EXCEPTIONS=TRUE ++LIBTARGET=NO ++ ++.INCLUDE : settings.mk ++ ++.IF "$(GUI)$(COM)"=="WNTMSC" ++CFLAGS+=-GR ++.ENDIF ++.IF "$(COM)"=="GCC" ++CFLAGSCXX+=-frtti ++.ENDIF ++ ++SLOFILES= \ ++ $(SLO)$/session-factory.obj \ ++ $(SLO)$/atom-document.obj \ ++ $(SLO)$/atom-folder.obj \ ++ $(SLO)$/atom-object.obj \ ++ $(SLO)$/atom-session.obj \ ++ $(SLO)$/atom-utils.obj ++ ++LIB1ARCHIV=$(LB)$/libcmislib.a ++LIB1TARGET=$(SLB)$/$(TARGET).lib ++LIB1OBJFILES= $(SLOFILES) ++ ++.INCLUDE : target.mk diff --git a/libcmis/makefile.mk b/libcmis/makefile.mk new file mode 100644 index 000000000000..50a83241f984 --- /dev/null +++ b/libcmis/makefile.mk @@ -0,0 +1,58 @@ +#************************************************************************* +# +# 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=cmis +TARGET=cmis + +# --- Settings ----------------------------------------------------- + +.INCLUDE : settings.mk + +# --- Files -------------------------------------------------------- + +.IF "$(SYSTEM_LIBcmis)" == "YES" +@all: + @echo "Using system libcmis..." +.ENDIF + +TARFILE_NAME=libcmis-0.1.0 +TARFILE_MD5=7c2549f6b0a8bb604e6c4c729ffdcfe6 +ADDITIONAL_FILES=src$/libcmis$/makefile.mk + +PATCH_FILES=$(TARFILE_NAME).patch + +BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) +BUILD_DIR=src$/libcmis + +# --- Targets ------------------------------------------------------ + +.INCLUDE : set_ext.mk +.INCLUDE : target.mk +.INCLUDE : tg_ext.mk + diff --git a/libcmis/prj/build.lst b/libcmis/prj/build.lst index cbc0827d82b3..c2beeeb41dd6 100644 --- a/libcmis/prj/build.lst +++ b/libcmis/prj/build.lst @@ -1,2 +1,3 @@ -lc libcmis : BOOST:boost soltools NULL -lc libcmis/prj nmake - all lc_prj NULL +lc libcmis : BOOST:boost soltools NULL +lc libcmis usr1 - all lc_mkout NULL +lc libcmis nmake - all lc_libcmis NULL diff --git a/libcmis/prj/d.lst b/libcmis/prj/d.lst index e69de29bb2d1..2b702135a022 100644 --- a/libcmis/prj/d.lst +++ b/libcmis/prj/d.lst @@ -0,0 +1,7 @@ + +..\%__SRC%\lib\lib*.* %_DEST%\lib\lib*.* +..\%__SRC%\lib\ilib*.* %_DEST%\lib\ilib*.* +..\%__SRC%\bin\l*.dll %_DEST%\bin\*.dll + +mkdir: %_DEST%\inc\libcmis +..\%__SRC%\misc\build\libcmis*\src\libcmis\*.hxx %_DEST%\inc\libcmis\*.hxx diff --git a/solenv/inc/libs.mk b/solenv/inc/libs.mk index 3d1e09b3654d..91161f19ecce 100644 --- a/solenv/inc/libs.mk +++ b/solenv/inc/libs.mk @@ -248,11 +248,6 @@ REDLANDLIB=$(REDLAND_LIBS) .ELSE REDLANDLIB=-lrdf .ENDIF -.IF "$(SYSTEM_LIBCMIS)"=="YES" -CMISLIB=$(LIBCMIS_LIBS) -.ELSE -CMISLIB=-lcmis-0.2 -.ENDIF # #110743# # For BinFilters, some libs were added. diff --git a/ucb/source/ucp/cmis/makefile.mk b/ucb/source/ucp/cmis/makefile.mk index a416316bf0ea..5db9e92f7a66 100644 --- a/ucb/source/ucp/cmis/makefile.mk +++ b/ucb/source/ucp/cmis/makefile.mk @@ -39,6 +39,20 @@ NO_BSYMBOLIC=TRUE .IF "$(ENABLE_CMIS)"=="TRUE" +.IF "$(GUI)"=="UNX" || "$(GUI)$(COM)"=="WNTGCC" + +.IF "$(SYSTEM_LIBCMIS)"=="YES" +CMISLIB=$(LIBCMIS_LIBS) +.ELSE +CMISLIB=-lcmislib +.ENDIF + +.ELSE + +CMISLIB=$(LIBPRE) cmislib.lib + +.ENDIF + # no "lib" prefix DLLPRE = @@ -57,7 +71,9 @@ SHL1STDLIBS=\ $(SALHELPERLIB) \ $(UCBHELPERLIB) \ $(TOOLSLIB) \ - $(CMISLIB) + $(CMISLIB) \ + $(CURLLIB) \ + $(LIBXML2LIB) SHL1VERSIONMAP=$(SOLARENV)/src/component.map |