diff options
| author | huangqinjin <huangqinjin@gmail.com> | 2021-05-01 02:43:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 11:43:39 -0700 |
| commit | 8badb231a4491a9bfb0450340d56fe010158f6f5 (patch) | |
| tree | f01480c49589b7be85271b58b9096d2ed6676179 /ports/boost-context | |
| parent | b7057d1ade3fcd57f6d0f177b88501ba895f7800 (diff) | |
| download | vcpkg-8badb231a4491a9bfb0450340d56fe010158f6f5.tar.gz vcpkg-8badb231a4491a9bfb0450340d56fe010158f6f5.zip | |
[boost-context] support android (#16930)
Diffstat (limited to 'ports/boost-context')
| -rw-r--r-- | ports/boost-context/b2-options.cmake.in | 15 | ||||
| -rw-r--r-- | ports/boost-context/vcpkg.json | 2 |
2 files changed, 16 insertions, 1 deletions
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", |
