From 482d7ce61b423600b41b459eb26a2cc221cd0acf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 25 Nov 2016 20:25:27 +0000 Subject: change from glew to epoxy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because that works under wayland out of the box and gtk3 uses it already Change-Id: Iefaac31e325534a81a5389f752804af917c1baef Reviewed-on: https://gerrit.libreoffice.org/31213 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- RepositoryExternal.mk | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) (limited to 'RepositoryExternal.mk') diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index fd6f4c8b144b..dcc47a68c47a 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -183,51 +183,43 @@ endef endif # SYSTEM_CPPUNIT -ifneq ($(SYSTEM_GLEW),) +ifneq ($(SYSTEM_EPOXY),) -define gb_LinkTarget__use_glew +define gb_LinkTarget__use_epoxy $(call gb_LinkTarget_set_include,$(1),\ $$(INCLUDE) \ - $(GLEW_CFLAGS) \ + $(EPOXY_CFLAGS) \ ) -$(call gb_LinkTarget_add_libs,$(1),$(GLEW_LIBS)) +$(call gb_LinkTarget_add_libs,$(1),$(EPOXY_LIBS)) endef -gb_ExternalProject__use_glew := +gb_ExternalProject__use_epoxy := -else # !SYSTEM_GLEW +else # !SYSTEM_EPOXY -$(eval $(call gb_Helper_register_packages_for_install,ooo,\ - glew \ -)) - -define gb_LinkTarget__use_glew -$(call gb_LinkTarget_use_package,$(1),glew) +define gb_LinkTarget__use_epoxy $(call gb_LinkTarget_set_include,$(1),\ - -I$(call gb_UnpackedTarball_get_dir,glew/include) \ - -DGLEW_NO_GLU \ - $$(INCLUDE) \ + -I$(call gb_UnpackedTarball_get_dir,epoxy/include) \ + $$(INCLUDE) \ ) -ifeq ($(COM),MSC) -$(call gb_LinkTarget_add_libs,$(1),\ - $(call gb_UnpackedTarball_get_dir,glew)/lib/$(if $(MSVC_USE_DEBUG_RUNTIME),Debug/$(wnt_arch_subdir_mandatory)/glew32d.lib,Release/$(wnt_arch_subdir_mandatory)/glew32.lib) \ -) -else -$(call gb_LinkTarget_add_libs,$(1),\ - -L$(call gb_UnpackedTarball_get_dir,glew)/lib/ -lGLEW \ +$(call gb_LinkTarget_use_libraries,$(1),\ + epoxy \ ) -endif endef -define gb_ExternalProject__use_glew -$(call gb_ExternalProject_use_external_project,$(1),glew) +$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\ + epoxy \ +)) + +define gb_ExternalProject__use_epoxy +$(call gb_ExternalProject_use_external_project,$(1),epoxy) endef -endif # SYSTEM_GLEW +endif # SYSTEM_EPOXY define gb_LinkTarget__use_iconv $(call gb_LinkTarget_add_libs,$(1),-liconv) @@ -3435,7 +3427,7 @@ $(call gb_LinkTarget_add_libs,$(1),\ ) else $(call gb_LinkTarget_add_libs,$(1),\ - $(call gb_UnpackedTarball_get_dir,libgltf)/src/.libs/libgltf-0.0$(gb_StaticLibrary_PLAINEXT) \ + $(call gb_UnpackedTarball_get_dir,libgltf)/src/.libs/libgltf-0.1$(gb_StaticLibrary_PLAINEXT) \ ) endif -- cgit