aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorhuangqinjin <huangqinjin@gmail.com>2021-05-01 02:43:39 +0800
committerGitHub <noreply@github.com>2021-04-30 11:43:39 -0700
commit8badb231a4491a9bfb0450340d56fe010158f6f5 (patch)
treef01480c49589b7be85271b58b9096d2ed6676179 /ports
parentb7057d1ade3fcd57f6d0f177b88501ba895f7800 (diff)
downloadvcpkg-8badb231a4491a9bfb0450340d56fe010158f6f5.tar.gz
vcpkg-8badb231a4491a9bfb0450340d56fe010158f6f5.zip
[boost-context] support android (#16930)
Diffstat (limited to 'ports')
-rw-r--r--ports/boost-build/portfile.cmake11
-rw-r--r--ports/boost-build/vcpkg.json3
-rw-r--r--ports/boost-context/b2-options.cmake.in15
-rw-r--r--ports/boost-context/vcpkg.json2
-rw-r--r--ports/boost-modular-build-helper/CMakeLists.txt2
-rw-r--r--ports/boost-modular-build-helper/vcpkg.json2
6 files changed, 28 insertions, 7 deletions
diff --git a/ports/boost-build/portfile.cmake b/ports/boost-build/portfile.cmake
index 791e15a1c..9bee6a0b0 100644
--- a/ports/boost-build/portfile.cmake
+++ b/ports/boost-build/portfile.cmake
@@ -4,13 +4,13 @@ if(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME
return()
endif()
-set(BOOST_VERSION 1.75.0.beta1)
+set(BOOST_VERSION 1.75.0)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO boostorg/build
REF boost-${BOOST_VERSION}
- SHA512 e5dd73ef41d341e2bce25677389502d22ca7f328e7fdbb91d95aac415f7b490008d75ff0a63f8e4bd9427215f863c161ec9573c29b663b727df4b60e25a3aac2
+ SHA512 dc5784cdcc908591a8c8814dac32849fb00b5f5b2d48de963d51a0571fd9f5a0419d6bb569f3375bf8fbfae28d680db4ce869604667b717023e76869836534f4
HEAD_REF master
PATCHES
fix_options.patch
@@ -28,8 +28,13 @@ vcpkg_download_distfile(BOOSTCPP_ARCHIVE
SHA512 8cf929fa4a602342c859a6bbd5f9dda783ac29431d951bcf6cae4cb14377c1b3aed90bacd902b0f7d1807591cf5e1a244cf8fc3c6cc6e0a4056db145b58f51df
)
+# https://github.com/boostorg/boost/pull/206
+# do not add version suffix for android
+file(READ "${BOOSTCPP_ARCHIVE}" _contents)
+string(REPLACE "aix &&" "aix android &&" _contents "${_contents}")
+file(WRITE "${SOURCE_PATH}/boostcpp.jam" "${_contents}")
+
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-build RENAME copyright)
-file(INSTALL ${BOOSTCPP_ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/boost-build RENAME boostcpp.jam)
# This fixes the lib path to use desktop libs instead of uwp -- TODO: improve this with better "host" compilation
string(REPLACE "\\store\\;" "\\;" LIB "$ENV{LIB}")
diff --git a/ports/boost-build/vcpkg.json b/ports/boost-build/vcpkg.json
index ede342956..0abab074f 100644
--- a/ports/boost-build/vcpkg.json
+++ b/ports/boost-build/vcpkg.json
@@ -1,7 +1,6 @@
{
"name": "boost-build",
- "version-string": "1.75.0.beta1",
- "port-version": 1,
+ "version-string": "1.75.0",
"description": "Boost.Build",
"homepage": "https://github.com/boostorg/build",
"dependencies": [
diff --git a/ports/boost-context/b2-options.cmake.in b/ports/boost-context/b2-options.cmake.in
index 30933f499..419a2b1cb 100644
--- a/ports/boost-context/b2-options.cmake.in
+++ b/ports/boost-context/b2-options.cmake.in
@@ -12,3 +12,18 @@ if(@VCPKG_TARGET_IS_OSX@)
binary-format=mach-o
)
endif()
+
+if(@VCPKG_TARGET_IS_ANDROID@)
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
+ list(APPEND B2_OPTIONS
+ abi=aapcs
+ )
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
+ list(APPEND B2_OPTIONS
+ abi=sysv
+ )
+ endif()
+ list(APPEND B2_OPTIONS
+ binary-format=elf
+ )
+endif()
diff --git a/ports/boost-context/vcpkg.json b/ports/boost-context/vcpkg.json
index b0879e26a..22f652b55 100644
--- a/ports/boost-context/vcpkg.json
+++ b/ports/boost-context/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "boost-context",
"version-string": "1.75.0",
- "port-version": 3,
+ "port-version": 4,
"description": "Boost context module",
"homepage": "https://github.com/boostorg/context",
"supports": "!uwp & !emscripten",
diff --git a/ports/boost-modular-build-helper/CMakeLists.txt b/ports/boost-modular-build-helper/CMakeLists.txt
index c97158e48..043636ee8 100644
--- a/ports/boost-modular-build-helper/CMakeLists.txt
+++ b/ports/boost-modular-build-helper/CMakeLists.txt
@@ -49,6 +49,8 @@ if(APPLE)
list(APPEND B2_OPTIONS target-os=darwin toolset=clang)
elseif(WIN32)
list(APPEND B2_OPTIONS target-os=windows toolset=gcc)
+elseif(ANDROID)
+ list(APPEND B2_OPTIONS target-os=android toolset=gcc)
else()
list(APPEND B2_OPTIONS target-os=linux toolset=gcc)
endif()
diff --git a/ports/boost-modular-build-helper/vcpkg.json b/ports/boost-modular-build-helper/vcpkg.json
index 5ac7e0512..e8475362d 100644
--- a/ports/boost-modular-build-helper/vcpkg.json
+++ b/ports/boost-modular-build-helper/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "boost-modular-build-helper",
"version-string": "1.75.0",
- "port-version": 8,
+ "port-version": 9,
"dependencies": [
"boost-build",
"boost-uninstall"