mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 21:19:01 +08:00
1d415e8dc3
* pass additional link flags to b2 * configure boost-locale for android * build libiconv for android * Bump port version * bump port version * Update CONTROL * new_ci_checks and versions * add versions again * fix pr review * fix pr review. version * bump versions Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
set(_B2_OPTIONS_FEATURES "@FEATURES@")
|
|
if("icu" IN_LIST _B2_OPTIONS_FEATURES)
|
|
set(BOOST_LOCALE_ICU_FEATURE on)
|
|
else()
|
|
set(BOOST_LOCALE_ICU_FEATURE off)
|
|
endif()
|
|
|
|
if(@VCPKG_TARGET_IS_WINDOWS@)
|
|
list(APPEND B2_OPTIONS
|
|
boost.locale.iconv=off
|
|
boost.locale.posix=off
|
|
/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)
|
|
|
|
list(APPEND B2_OPTIONS
|
|
boost.locale.iconv=on
|
|
boost.locale.posix=on
|
|
/boost/locale//boost_locale
|
|
boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
|
|
-sICONV_PATH=${LIBICONV_DIR}
|
|
)
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
|
|
list(APPEND B2_OPTIONS
|
|
boost.locale.force-found-iconv=on
|
|
)
|
|
endif()
|
|
endif()
|