Merge branch 'iconv_static'

This commit is contained in:
Ryan Houdek
2013-08-29 05:54:02 -05:00
247 changed files with 108640 additions and 9 deletions

View File

@ -12,8 +12,6 @@
#ifdef _WIN32
#include <Windows.h>
#elif defined(ANDROID)
#else
#include <iconv.h>
#include <errno.h>
@ -454,9 +452,6 @@ std::string CodeToUTF8(const char* fromcode, const std::basic_string<T>& input)
{
std::string result;
#if defined(ANDROID)
result = (char*)input.c_str();
#else
iconv_t const conv_desc = iconv_open("UTF-8", fromcode);
if ((iconv_t)-1 == conv_desc)
{
@ -505,7 +500,6 @@ std::string CodeToUTF8(const char* fromcode, const std::basic_string<T>& input)
iconv_close(conv_desc);
}
#endif
return result;
}

View File

@ -8,6 +8,7 @@ set(LIBS core
z
sfml-network
${GTK2_LIBRARIES})
if(NOT ANDROID)
if(USE_X11)
set(LIBS ${LIBS} ${X11_LIBRARIES}
@ -34,7 +35,7 @@ if(NOT ANDROID)
endif()
endif()
else()
set(LIBS ${LIBS} png)
set(LIBS ${LIBS} png iconv)
endif()
if(LIBAV_FOUND)