mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 11:32:43 +01:00
Only use static iconv on Android.
This commit is contained in:
parent
cb8e7a1be5
commit
18fd690533
@ -649,16 +649,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_RUNS(
|
if (ANDROID)
|
||||||
"#include <iconv.h>
|
|
||||||
int main(int argc, char **argv)
|
|
||||||
{
|
|
||||||
iconv_t const conv_desc = iconv_open(""UTF-8"", fromcode);
|
|
||||||
if ((iconv_t)-1 == conv_desc) return 0; else return 1;
|
|
||||||
}"
|
|
||||||
ICONV)
|
|
||||||
|
|
||||||
if (NOT ICONV)
|
|
||||||
message("Using static iconv from Externals")
|
message("Using static iconv from Externals")
|
||||||
include_directories(Externals/libiconv-1.14/include)
|
include_directories(Externals/libiconv-1.14/include)
|
||||||
add_subdirectory(Externals/libiconv-1.14)
|
add_subdirectory(Externals/libiconv-1.14)
|
||||||
|
@ -9,10 +9,6 @@ set(LIBS core
|
|||||||
sfml-network
|
sfml-network
|
||||||
${GTK2_LIBRARIES})
|
${GTK2_LIBRARIES})
|
||||||
|
|
||||||
if(NOT ICONV)
|
|
||||||
set(LIBS ${LIBS} iconv)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
if(USE_X11)
|
if(USE_X11)
|
||||||
set(LIBS ${LIBS} ${X11_LIBRARIES}
|
set(LIBS ${LIBS} ${X11_LIBRARIES}
|
||||||
@ -39,7 +35,7 @@ if(NOT ANDROID)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(LIBS ${LIBS} png)
|
set(LIBS ${LIBS} png iconv)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LIBAV_FOUND)
|
if(LIBAV_FOUND)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user