diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-04 13:21:43 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-08 12:51:00 +0200 |
commit | 0c6fbcad3ff71fb755406ec914da0ae15e2d21e0 (patch) | |
tree | 44f60faf4e1ffcbd71b5f60f79b85d6fe30d2ee7 /libcdr | |
parent | 105edf31b9e9be7cbc033d8ed09b382457fd1264 (diff) |
libcdr: convert to gbuild
Change-Id: I067ab0a4559bf7ee0da36a67567e0db9a6e34f87
Diffstat (limited to 'libcdr')
-rw-r--r-- | libcdr/Makefile | 7 | ||||
-rw-r--r-- | libcdr/Module_libcdr.mk | 22 | ||||
-rw-r--r-- | libcdr/Package_libcdr.mk | 21 | ||||
-rw-r--r-- | libcdr/StaticLibrary_cdr.mk | 44 | ||||
-rw-r--r-- | libcdr/UnpackedTarball_cdr.mk | 18 | ||||
-rw-r--r-- | libcdr/makefile.mk | 74 | ||||
-rw-r--r-- | libcdr/prj/d.lst | 7 | ||||
-rw-r--r-- | libcdr/prj/dmake | 0 |
8 files changed, 112 insertions, 81 deletions
diff --git a/libcdr/Makefile b/libcdr/Makefile new file mode 100644 index 000000000000..ccb1c85a04da --- /dev/null +++ b/libcdr/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/libcdr/Module_libcdr.mk b/libcdr/Module_libcdr.mk new file mode 100644 index 000000000000..6fb369ab0eca --- /dev/null +++ b/libcdr/Module_libcdr.mk @@ -0,0 +1,22 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Module_Module,libcdr)) + +ifeq ($(SYSTEM_LIBCDR),NO) + +$(eval $(call gb_Module_add_targets,libcdr,\ + Package_libcdr \ + StaticLibrary_cdr \ + UnpackedTarball_cdr \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/libcdr/Package_libcdr.mk b/libcdr/Package_libcdr.mk new file mode 100644 index 000000000000..e7d21bcba5b6 --- /dev/null +++ b/libcdr/Package_libcdr.mk @@ -0,0 +1,21 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Package_Package,libcdr_inc,$(call gb_UnpackedTarball_get_dir,cdr/src/lib))) + +$(eval $(call gb_Package_use_unpacked,libcdr_inc,cdr)) + +$(eval $(call gb_Package_add_files,libcdr_inc,inc/external/libcdr,\ + libcdr.h \ + CDRDocument.h \ + CDRStringVector.h \ + CMXDocument.h \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libcdr/StaticLibrary_cdr.mk b/libcdr/StaticLibrary_cdr.mk new file mode 100644 index 000000000000..d0f07a27e63f --- /dev/null +++ b/libcdr/StaticLibrary_cdr.mk @@ -0,0 +1,44 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_StaticLibrary_StaticLibrary,cdrlib)) + +$(eval $(call gb_StaticLibrary_use_unpacked,cdrlib,cdr)) + +$(eval $(call gb_StaticLibrary_use_package,cdrlib,libcdr_inc)) + +$(eval $(call gb_StaticLibrary_use_externals,cdrlib,\ + lcms2 \ + wpd \ + wpg \ + zlib \ +)) + +$(eval $(call gb_StaticLibrary_set_cxx_suffix,cdrlib,cpp)) + +$(eval $(call gb_StaticLibrary_add_generated_exception_objects,cdrlib,\ + UnpackedTarball/cdr/src/lib/CDRCollector \ + UnpackedTarball/cdr/src/lib/CDRContentCollector \ + UnpackedTarball/cdr/src/lib/CDRDocument \ + UnpackedTarball/cdr/src/lib/CDRInternalStream \ + UnpackedTarball/cdr/src/lib/CDROutputElementList \ + UnpackedTarball/cdr/src/lib/CDRParser \ + UnpackedTarball/cdr/src/lib/CDRPath \ + UnpackedTarball/cdr/src/lib/CDRStringVector \ + UnpackedTarball/cdr/src/lib/CDRStylesCollector \ + UnpackedTarball/cdr/src/lib/CDRSVGGenerator \ + UnpackedTarball/cdr/src/lib/CDRTypes \ + UnpackedTarball/cdr/src/lib/CDRZipStream \ + UnpackedTarball/cdr/src/lib/CMXDocument \ + UnpackedTarball/cdr/src/lib/CMXParser \ + UnpackedTarball/cdr/src/lib/CommonParser \ + UnpackedTarball/cdr/src/lib/libcdr_utils \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libcdr/UnpackedTarball_cdr.mk b/libcdr/UnpackedTarball_cdr.mk new file mode 100644 index 000000000000..29ef930d21e9 --- /dev/null +++ b/libcdr/UnpackedTarball_cdr.mk @@ -0,0 +1,18 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,cdr)) + +$(eval $(call gb_UnpackedTarball_set_tarball,cdr,$(CDR_TARBALL))) + +$(eval $(call gb_UnpackedTarball_add_patches,cdr,\ + libcdr/libcdr-0.0.8-msc.patch \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libcdr/makefile.mk b/libcdr/makefile.mk deleted file mode 100644 index 771ac46b0778..000000000000 --- a/libcdr/makefile.mk +++ /dev/null @@ -1,74 +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=cdr -TARGET=cdr - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -.IF "$(SYSTEM_LIBCDR)" == "YES" -@all: - @echo "Using system libcdr..." -.ENDIF - -# libcdr depends on the libwpd, libwpg and lcms2 -.IF "$(SYSTEM_LIBWPD)" == "YES" -INCPRE+=$(WPD_CFLAGS) -.ELSE -INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpd -INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpd-stream -.ENDIF -.IF "$(SYSTEM_LIBWPG)" == "YES" -INCPRE+=$(WPG_CFLAGS) -.ELSE -INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/libwpg -.ENDIF -.IF "$(SYSTEM_LCMS2)" == "YES" -INCPRE+=$(LCMS2_CFLAGS) -.ELSE -INCPRE+=$(SOLARVER)$/$(INPATH)$/inc$/lcms2 -.ENDIF - -TARFILE_NAME=libcdr-0.0.8 -TARFILE_MD5=ce5a1def34578b75959ac31210f031f6 - -PATCH_FILES = libcdr-0.0.8-msc.patch - -BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) -BUILD_DIR=src$/lib - -# --- Targets ------------------------------------------------------ - -.INCLUDE : set_ext.mk -.INCLUDE : target.mk -.INCLUDE : tg_ext.mk diff --git a/libcdr/prj/d.lst b/libcdr/prj/d.lst index e3ec3bdb5075..e69de29bb2d1 100644 --- a/libcdr/prj/d.lst +++ b/libcdr/prj/d.lst @@ -1,7 +0,0 @@ -mkdir: %_DEST%\inc\libcdr -..\%__SRC%\misc\build\libcdr*\src\lib\libcdr.h %_DEST%\inc\libcdr -..\%__SRC%\misc\build\libcdr*\src\lib\CDRDocument.h %_DEST%\inc\libcdr\ -..\%__SRC%\misc\build\libcdr*\src\lib\CDRStringVector.h %_DEST%\inc\libcdr\ -..\%__SRC%\misc\build\libcdr*\src\lib\CMXDocument.h %_DEST%\inc\libcdr\ -..\%__SRC%\lib\*.a %_DEST%\lib\*.a -..\%__SRC%\slb\*.lib %_DEST%\lib\*.lib diff --git a/libcdr/prj/dmake b/libcdr/prj/dmake deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/libcdr/prj/dmake +++ /dev/null |