Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'iconv_static'
  • Loading branch information
Sonicadvance1 committed Aug 29, 2013
2 parents c9afd83 + 18fd690 commit 8ae076e
Show file tree
Hide file tree
Showing 247 changed files with 108,640 additions and 9 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Expand Up @@ -328,8 +328,9 @@ add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
# TODO: We should have options for dependencies included in the externals to
# override autodetection of system libraries and force the usage of the
# externals.
include(CheckLib)
include(CheckCXXSourceRuns)
if(NOT ANDROID)
include(CheckLib)

include(FindOpenGL)
include_directories(${OPENGL_INCLUDE_DIR})
Expand Down Expand Up @@ -454,7 +455,6 @@ if(NOT ANDROID)
check_libav()
endif()

include(CheckCXXSourceRuns)
set(CMAKE_REQUIRED_LIBRARIES portaudio)
CHECK_CXX_SOURCE_RUNS(
"#include <portaudio.h>
Expand Down Expand Up @@ -649,6 +649,12 @@ else()
endif()
endif()

if (ANDROID)
message("Using static iconv from Externals")
include_directories(Externals/libiconv-1.14/include)
add_subdirectory(Externals/libiconv-1.14)
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT ANDROID)
find_library(CL OpenCL)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-weak_framework,OpenCL")
Expand Down
1 change: 1 addition & 0 deletions Externals/libiconv-1.14/.gitattributes
@@ -0,0 +1 @@
ChangeLog merge=merge-changelog
9 changes: 9 additions & 0 deletions Externals/libiconv-1.14/CMakeLists.txt
@@ -0,0 +1,9 @@
include_directories(include)
include_directories(libcharset/include)

set(SRCS lib/iconv.c
lib/relocatable.c
libcharset/lib/localcharset.c
)

add_library(iconv STATIC ${SRCS})

0 comments on commit 8ae076e

Please sign in to comment.