diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-05 17:40:16 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:37 +0100 |
commit | 01a56100a41da49ed5b589b106d592f04eafa666 (patch) | |
tree | ee1870260684be0fa2f096d494a80aca7380a79c /external | |
parent | a74fd3f900826d8f525075ed7bbf6ca8ffda2847 (diff) |
make glew a normal external shared project
Change-Id: I6306e23b3f20817de87951a8848de373fc5dbf85
Diffstat (limited to 'external')
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/glew/ExternalPackage_glew.mk | 21 | ||||
-rw-r--r-- | external/glew/ExternalProject_glew.mk | 21 | ||||
-rw-r--r-- | external/glew/Makefile | 7 | ||||
-rw-r--r-- | external/glew/Module_glew.mk | 18 | ||||
-rw-r--r-- | external/glew/UnpackedTarball_glew.mk | 16 |
6 files changed, 84 insertions, 0 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk index b3fd60642190..e344b7e73d96 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -40,6 +40,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,FONTCONFIG,fontconfig) \ $(call gb_Helper_optional,FREEHAND,libfreehand) \ $(call gb_Helper_optional,FREETYPE,freetype) \ + $(call gb_Helper_optional,GLEW,glew) \ $(call gb_Helper_optional,GLM,glm) \ $(call gb_Helper_optional,GRAPHITE,graphite) \ $(call gb_Helper_optional,HARFBUZZ,harfbuzz) \ diff --git a/external/glew/ExternalPackage_glew.mk b/external/glew/ExternalPackage_glew.mk new file mode 100644 index 000000000000..273c46e90601 --- /dev/null +++ b/external/glew/ExternalPackage_glew.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_ExternalPackage_ExternalPackage,glew,glew)) + +$(eval $(call gb_ExternalPackage_use_external_project,glew,glew)) + +ifeq ($(OS),MACOSX) +else ifeq ($(OS)-$(COM),WNT-GCC) +else ifeq ($(COM),MSC) +else ifeq ($(filter IOS ANDROID,$(OS)),) +$(eval $(call gb_ExternalPackage_add_file,glew,$(LIBO_LIB_FOLDER)/libGLEW.so.1.10,lib/libGLEW.so.1.10.0)) +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/glew/ExternalProject_glew.mk b/external/glew/ExternalProject_glew.mk new file mode 100644 index 000000000000..e51f744824a6 --- /dev/null +++ b/external/glew/ExternalProject_glew.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_ExternalProject_ExternalProject,glew)) + +$(eval $(call gb_ExternalProject_register_targets,glew,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,glew,build) : + $(call gb_ExternalProject_run,glew,\ + $(MAKE) \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/glew/Makefile b/external/glew/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/glew/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/external/glew/Module_glew.mk b/external/glew/Module_glew.mk new file mode 100644 index 000000000000..1d1b9a7154aa --- /dev/null +++ b/external/glew/Module_glew.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_Module_Module,glew)) + +$(eval $(call gb_Module_add_targets,glew,\ + ExternalProject_glew \ + UnpackedTarball_glew \ + ExternalPackage_glew \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/glew/UnpackedTarball_glew.mk b/external/glew/UnpackedTarball_glew.mk new file mode 100644 index 000000000000..528d677b5b37 --- /dev/null +++ b/external/glew/UnpackedTarball_glew.mk @@ -0,0 +1,16 @@ +# -*- 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,glew)) + +$(eval $(call gb_UnpackedTarball_set_tarball,glew,$(GLEW_TARBALL))) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,glew,0)) + +# vim: set noet sw=4 ts=4: |