Skip to content

Commit

Permalink
Move VCPKG_MAKE_BUILD_TRIPLET to android triplet file
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 10, 2022
1 parent 68936ca commit 4186327
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions scripts/cmake/vcpkg_configure_make.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,6 @@ function(vcpkg_configure_make)
endif()
endif()

# Android - cross-compiling support
if(VCPKG_TARGET_IS_ANDROID)
if (requires_autoconfig AND NOT arg_BUILD_TRIPLET OR arg_DETERMINE_BUILD_TRIPLET)
set(arg_BUILD_TRIPLET "--host=${VCPKG_MAKE_BUILD_TRIPLET}")
debug_message("Using make triplet: ${arg_BUILD_TRIPLET}")
endif()
endif()

# Cleanup previous build dirs
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
Expand Down
2 changes: 1 addition & 1 deletion triplets/community/arm-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ set(VCPKG_TARGET_ARCHITECTURE arm)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_MAKE_BUILD_TRIPLET armv7a-linux-androideabi)
set(VCPKG_MAKE_BUILD_TRIPLET "--host=armv7a-linux-androideabi")
2 changes: 1 addition & 1 deletion triplets/community/arm64-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_MAKE_BUILD_TRIPLET aarch64-linux-android)
set(VCPKG_MAKE_BUILD_TRIPLET "--host=aarch64-linux-android")
2 changes: 1 addition & 1 deletion triplets/community/x64-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_MAKE_BUILD_TRIPLET x86_64-linux-android)
set(VCPKG_MAKE_BUILD_TRIPLET "--host=x86_64-linux-android")
2 changes: 1 addition & 1 deletion triplets/community/x86-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_MAKE_BUILD_TRIPLET i686-linux-android)
set(VCPKG_MAKE_BUILD_TRIPLET "--host=i686-linux-android")

0 comments on commit 4186327

Please sign in to comment.