diff options
Diffstat (limited to 'ports/boost-locale')
| -rw-r--r-- | ports/boost-locale/b2-options.cmake.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/boost-locale/b2-options.cmake.in b/ports/boost-locale/b2-options.cmake.in index d1df5d6c5..865a0b143 100644 --- a/ports/boost-locale/b2-options.cmake.in +++ b/ports/boost-locale/b2-options.cmake.in @@ -12,6 +12,18 @@ if(@VCPKG_TARGET_IS_WINDOWS@) /boost/locale//boost_locale
boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
)
+elseif(@VCPKG_TARGET_IS_ANDROID@)
+ find_library(LIBICONV_LIBRARY iconv)
+ get_filename_component(LIBICONV_DIR "${LIBICONV_LIBRARY}" DIRECTORY)
+ get_filename_component(LIBICONV_DIR "${LIBICONV_DIR}" DIRECTORY)
+
+ list(APPEND B2_OPTIONS
+ boost.locale.iconv=on
+ boost.locale.posix=off
+ /boost/locale//boost_locale
+ boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
+ -sICONV_PATH=${LIBICONV_DIR}
+ )
else()
find_library(LIBICONV_LIBRARY iconv)
get_filename_component(LIBICONV_DIR "${LIBICONV_LIBRARY}" DIRECTORY)
|
