diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-06 04:42:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:37 +0100 |
commit | 03a5d0472fb9012c0b586a07953a843f8e5374f9 (patch) | |
tree | 2314cc7c9b27d4b39293fe1a1292562640118a44 /external | |
parent | 01a56100a41da49ed5b589b106d592f04eafa666 (diff) |
fix windows build of glew
Change-Id: I8aab94aefd737195a26696635f52f754764ea1b4
Diffstat (limited to 'external')
-rw-r--r-- | external/glew/ExternalPackage_glew.mk | 3 | ||||
-rw-r--r-- | external/glew/ExternalProject_glew.mk | 11 | ||||
-rw-r--r-- | external/glew/UnpackedTarball_glew.mk | 6 | ||||
-rw-r--r-- | external/glew/glew-fix-rc-error.patch.1 | 15 |
4 files changed, 35 insertions, 0 deletions
diff --git a/external/glew/ExternalPackage_glew.mk b/external/glew/ExternalPackage_glew.mk index 273c46e90601..9f18cfb41f28 100644 --- a/external/glew/ExternalPackage_glew.mk +++ b/external/glew/ExternalPackage_glew.mk @@ -14,6 +14,9 @@ $(eval $(call gb_ExternalPackage_use_external_project,glew,glew)) ifeq ($(OS),MACOSX) else ifeq ($(OS)-$(COM),WNT-GCC) else ifeq ($(COM),MSC) +$(eval $(call gb_ExternalPackage_add_files,glew,$(LIBO_LIB_FOLDER), \ + bin/$(if $(MSVC_USE_DEBUG_RUNTIME),Debug/Win32/glew32d.dll,Release/Win32/glew32.dll) \ +)) 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 diff --git a/external/glew/ExternalProject_glew.mk b/external/glew/ExternalProject_glew.mk index e51f744824a6..f419ef5e13df 100644 --- a/external/glew/ExternalProject_glew.mk +++ b/external/glew/ExternalProject_glew.mk @@ -13,9 +13,20 @@ $(eval $(call gb_ExternalProject_register_targets,glew,\ build \ )) +ifeq ($(COM),MSC) +$(call gb_ExternalProject_get_state_target,glew,build) : + $(call gb_ExternalProject_run,build,\ + msbuild.exe glew_shared.vcxproj /p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \ + $(if $(filter 110,$(VCVER)),/p:PlatformToolset=v110 /p:VisualStudioVersion=11.0) \ + ,build/vc10) + +else + $(call gb_ExternalProject_get_state_target,glew,build) : $(call gb_ExternalProject_run,glew,\ $(MAKE) \ ) +endif + # vim: set noet sw=4 ts=4: diff --git a/external/glew/UnpackedTarball_glew.mk b/external/glew/UnpackedTarball_glew.mk index 528d677b5b37..689ad420bc64 100644 --- a/external/glew/UnpackedTarball_glew.mk +++ b/external/glew/UnpackedTarball_glew.mk @@ -13,4 +13,10 @@ $(eval $(call gb_UnpackedTarball_set_tarball,glew,$(GLEW_TARBALL))) $(eval $(call gb_UnpackedTarball_set_patchlevel,glew,0)) +ifeq ($(OS)$(COM),WNTMSC) +$(eval $(call gb_UnpackedTarball_add_patches,glew,\ + external/glew/glew-fix-rc-error.patch.1 \ +)) +endif + # vim: set noet sw=4 ts=4: diff --git a/external/glew/glew-fix-rc-error.patch.1 b/external/glew/glew-fix-rc-error.patch.1 new file mode 100644 index 000000000000..3739fd7646b8 --- /dev/null +++ b/external/glew/glew-fix-rc-error.patch.1 @@ -0,0 +1,15 @@ +Only in glew/bin: Release +diff -ur glew.org/build/glew.rc glew/build/glew.rc +--- glew.org/build/glew.rc 2014-01-28 06:54:52.910765800 +0100 ++++ glew/build/glew.rc 2014-01-28 06:56:46.719717700 +0100 +@@ -56,7 +56,7 @@ + BEGIN
+ BLOCK "040904b0"
+ BEGIN
+- VALUE "Comments", "The OpenGL Extension Wrangler Library\r\nCopyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>\r\nCopyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>\r\nCopyright (C) 2002, Lev Povalahev\r\nAll rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without \r\nmodification, are permitted provided that the following conditions are met:\r\n\r\n* Redistributions of source code must retain the above copyright notice, \r\n this list of conditions and the following disclaimer.\r\n* Redistributions in binary form must reproduce the above copyright notice, \r\n this list of conditions and the following disclaimer in the documentation \r\n and/or other materials provided with the distribution.\r\n* The name of the author may be used to endorse or promote products \r\n derived from this software without specific prior written permission.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ''AS IS'' \r\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \r\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \r\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \r\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r\nTHE POSSIBILITY OF SUCH DAMAGE.\r\n\r\n\r\nMesa 3-D graphics library\r\n\r\nVersion: 7.0\r\n\r\nCopyright (C) 1999-2007 Brian Paul All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and associated documentation files (the ''Software''),\r\nto deal in the Software without restriction, including without limitation\r\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\r\nand/or sell copies of the Software, and to permit persons to whom the\r\nSoftware is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\r\nBRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN\r\nAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n\r\nCopyright (c) 2007 The Khronos Group Inc.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and/or associated documentation files (the\r\n''Materials''), to deal in the Materials without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Materials, and to\r\npermit persons to whom the Materials are furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Materials.\r\n\r\nTHE MATERIALS ARE PROVIDED ''AS IS'', WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nMATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\0"
++ VALUE "Comments", "The OpenGL Extension Wrangler Library\0"
+ VALUE "CompanyName", "\0"
+ VALUE "FileDescription", "The OpenGL Extension Wrangler Library\0"
+ VALUE "FileVersion", "1,10,0,0\0"
+Only in glew/build/vc10: build.log +Only in glew/build/vc10: tmp |