Commit e63def64 authored by Rafaël Carré's avatar Rafaël Carré

Old contribs: don't try to build a shared library when static build is specified

This applies to the C bindings (that we don't use) for taglib
parent 8ae75f05
--- taglib-orig/bindings/c/CMakeLists.txt 2011-08-13 21:00:27.511266275 -0400
+++ taglib/bindings/c/CMakeLists.txt 2011-08-13 21:00:45.071292030 -0400
@@ -19,9 +19,11 @@
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc )
########### next target ###############
-ADD_LIBRARY(tag_c SHARED tag_c.cpp)
if(ENABLE_STATIC)
+ ADD_LIBRARY(tag_c STATIC tag_c.cpp)
set_target_properties(tag_c PROPERTIES COMPILE_DEFINITIONS TAGLIB_STATIC)
+else(ENABLE_STATIC)
+ ADD_LIBRARY(tag_c SHARED tag_c.cpp)
endif(ENABLE_STATIC)
TARGET_LINK_LIBRARIES(tag_c tag )
......@@ -2242,6 +2242,9 @@ taglib-$(TAGLIB_VERSION).tar.gz:
taglib: taglib-$(TAGLIB_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef HAVE_ANDROID
patch -p0 < Patches/taglib-android.patch
endif
ifdef HAVE_WIN32
patch -p0 < Patches/taglib-static.patch
endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment