-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/scripts/cmake/vcpkg_configure_make.cmake b/scripts/cmake/vcpkg_configure_make.cmake | ||
index 6d6867da0f..3af1a3b9bc 100644 | ||
--- a/scripts/cmake/vcpkg_configure_make.cmake | ||
+++ b/scripts/cmake/vcpkg_configure_make.cmake | ||
@@ -791,10 +791,12 @@ function(vcpkg_configure_make) | ||
# https://www.gnu.org/software/libtool/manual/html_node/Link-mode.html | ||
# -avoid-version is handled specially by libtool link mode, this flag is not forwarded to linker, | ||
# and libtool tries to avoid versioning for shared libraries and no symbolic links are created. | ||
- if(VCPKG_TARGET_IS_ANDROID) | ||
- set(ENV{LDFLAGS} "-avoid-version $ENV{LDFLAGS}") | ||
- set(ENV{LDFLAGS_FOR_BUILD} "-avoid-version $ENV{LDFLAGS_FOR_BUILD}") | ||
- endif() | ||
+ | ||
+ # fix https://github.com/microsoft/vcpkg/issues/31332 | ||
+ # if(VCPKG_TARGET_IS_ANDROID) | ||
+ # set(ENV{LDFLAGS} "-avoid-version $ENV{LDFLAGS}") | ||
+ # set(ENV{LDFLAGS_FOR_BUILD} "-avoid-version $ENV{LDFLAGS_FOR_BUILD}") | ||
+ # endif() | ||
|
||
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS) | ||
# configure not using all flags to check if compiler works ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE arm) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_CMAKE_SYSTEM_NAME Android) | ||
set(VCPKG_CMAKE_SYSTEM_VERSION 23) | ||
set(VCPKG_BUILD_TYPE release) | ||
set(VCPKG_MAKE_BUILD_TRIPLET "--host=arm-linux-android") | ||
set(VCPKG_TARGET_TRIPLET arm-android) | ||
set(VCPKG_CMAKE_CONFIGURE_OPTIONS ${VCPKG_CMAKE_CONFIGURE_OPTIONS} -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF | ||
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-s") | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/maa-linux-library-override.cmake) | ||
include(${CMAKE_CURRENT_LIST_DIR}/maa-android-library-override.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x86) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_CMAKE_SYSTEM_NAME Android) | ||
set(VCPKG_CMAKE_SYSTEM_VERSION 23) | ||
set(VCPKG_BUILD_TYPE release) | ||
set(VCPKG_MAKE_BUILD_TRIPLET "--host=x86-linux-android") | ||
set(VCPKG_TARGET_TRIPLET x86-android) | ||
set(VCPKG_CMAKE_CONFIGURE_OPTIONS ${VCPKG_CMAKE_CONFIGURE_OPTIONS} -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF) | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/maa-linux-library-override.cmake) | ||
include(${CMAKE_CURRENT_LIST_DIR}/maa-android-library-override.cmake) |