diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-06 18:19:34 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-08 12:55:35 +0200 |
commit | 707194e7b9263a33508905438281090bd201e34d (patch) | |
tree | b3fb26aa5a7ef4e2189d6b237b6fb488c2bb51c0 /libcmis | |
parent | 85e34a4f3a157663f49611d566554785a28848a7 (diff) |
libcmis: convert to gbuild
Change-Id: I4586cb27505bbdc20a543fc812d8b480b4b94236
Diffstat (limited to 'libcmis')
-rw-r--r-- | libcmis/Makefile | 7 | ||||
-rw-r--r-- | libcmis/Module_libcmis.mk | 22 | ||||
-rw-r--r-- | libcmis/Package_libcmis.mk | 38 | ||||
-rw-r--r-- | libcmis/StaticLibrary_cmis.mk | 38 | ||||
-rw-r--r-- | libcmis/UnpackedTarball_cmis.mk | 25 | ||||
-rw-r--r-- | libcmis/prj/d.lst | 6 | ||||
-rw-r--r-- | libcmis/prj/dmake | 0 |
7 files changed, 130 insertions, 6 deletions
diff --git a/libcmis/Makefile b/libcmis/Makefile new file mode 100644 index 000000000000..ccb1c85a04da --- /dev/null +++ b/libcmis/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/libcmis/Module_libcmis.mk b/libcmis/Module_libcmis.mk new file mode 100644 index 000000000000..c2c09f0f489a --- /dev/null +++ b/libcmis/Module_libcmis.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,libcmis)) + +ifeq ($(SYSTEM_LIBCMIS),NO) + +$(eval $(call gb_Module_add_targets,libcmis,\ + Package_libcmis \ + StaticLibrary_cmis \ + UnpackedTarball_cmis \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/libcmis/Package_libcmis.mk b/libcmis/Package_libcmis.mk new file mode 100644 index 000000000000..6039aadd45ff --- /dev/null +++ b/libcmis/Package_libcmis.mk @@ -0,0 +1,38 @@ +# -*- 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,libcmis_inc,$(call gb_UnpackedTarball_get_dir,cmis/src/libcmis))) + +$(eval $(call gb_Package_use_unpacked,libcmis_inc,cmis)) + +$(eval $(call gb_Package_add_files,libcmis_inc,inc/external/libcmis,\ + allowable-actions.hxx \ + atom-document.hxx \ + atom-folder.hxx \ + atom-object-type.hxx \ + atom-object.hxx \ + atom-session.hxx \ + atom-utils.hxx \ + atom-workspace.hxx \ + document.hxx \ + exception.hxx \ + folder.hxx \ + object-type.hxx \ + object.hxx \ + property-type.hxx \ + property.hxx \ + repository.hxx \ + session-factory.hxx \ + session.hxx \ + test-helpers.hxx \ + xml-utils.hxx \ + xmlserializable.hxx \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libcmis/StaticLibrary_cmis.mk b/libcmis/StaticLibrary_cmis.mk new file mode 100644 index 000000000000..01aa3723673a --- /dev/null +++ b/libcmis/StaticLibrary_cmis.mk @@ -0,0 +1,38 @@ +# -*- 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,cmislib)) + +$(eval $(call gb_StaticLibrary_set_warnings_not_errors,cmislib)) + +$(eval $(call gb_StaticLibrary_use_unpacked,cmislib,cmis)) + +$(eval $(call gb_StaticLibrary_use_package,cmislib,libcmis_inc)) + +$(eval $(call gb_StaticLibrary_use_externals,cmislib,\ + curl \ + libxml2 \ +)) + +$(eval $(call gb_StaticLibrary_add_generated_exception_objects,cmislib,\ + UnpackedTarball/cmis/src/libcmis/allowable-actions \ + UnpackedTarball/cmis/src/libcmis/atom-document \ + UnpackedTarball/cmis/src/libcmis/atom-folder \ + UnpackedTarball/cmis/src/libcmis/atom-object-type \ + UnpackedTarball/cmis/src/libcmis/atom-object \ + UnpackedTarball/cmis/src/libcmis/atom-session \ + UnpackedTarball/cmis/src/libcmis/atom-utils \ + UnpackedTarball/cmis/src/libcmis/atom-workspace \ + UnpackedTarball/cmis/src/libcmis/property-type \ + UnpackedTarball/cmis/src/libcmis/property \ + UnpackedTarball/cmis/src/libcmis/session-factory \ + UnpackedTarball/cmis/src/libcmis/xml-utils \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/libcmis/UnpackedTarball_cmis.mk b/libcmis/UnpackedTarball_cmis.mk new file mode 100644 index 000000000000..d75c5f673419 --- /dev/null +++ b/libcmis/UnpackedTarball_cmis.mk @@ -0,0 +1,25 @@ +# -*- 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,cmis)) + +$(eval $(call gb_UnpackedTarball_set_tarball,cmis,$(CMIS_TARBALL))) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,cmis,1)) + +$(eval $(call gb_UnpackedTarball_add_patches,cmis,\ + libcmis/libcmis-0.2.3.patch \ + libcmis/libcmis-0.2.3-backports.patch \ +)) + +ifeq ($(OS)$(COM),WNTMSC) +$(eval $(call gb_UnpackedTarball_add_patches,cmis,libcmis/boost-win.patch)) +endif + +# vim: set noet sw=4 ts=4: diff --git a/libcmis/prj/d.lst b/libcmis/prj/d.lst index fb52e94af688..e69de29bb2d1 100644 --- a/libcmis/prj/d.lst +++ b/libcmis/prj/d.lst @@ -1,6 +0,0 @@ - -..\%__SRC%\lib\*.a %_DEST%\lib\*.a -..\%__SRC%\slb\*.lib %_DEST%\lib\*.lib - -mkdir: %_DEST%\inc\libcmis -..\%__SRC%\misc\build\libcmis*\src\libcmis\*.hxx %_DEST%\inc\libcmis\*.hxx diff --git a/libcmis/prj/dmake b/libcmis/prj/dmake deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/libcmis/prj/dmake +++ /dev/null |