Skip to content

Commit

Permalink
fix: structure android
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 6, 2024
1 parent a1eb461 commit d57017c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 43 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ jobs:
- os: ubuntu
arch: arm64-android
- os: ubuntu
arch: arm-android
- os: ubuntu
arch: arm-neon-android
# clang-17: error: unsupported argument 'i686' to option '-march='
# https://github.com/MaaAssistantArknights/MaaDeps/actions/runs/7285060481/job/19851366697
# - os: ubuntu
# arch: x64-android
arch: x64-android
fail-fast: false
defaults:
run:
Expand Down
20 changes: 10 additions & 10 deletions vcpkg-overlay/triplets/maa-android-library-override.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
if(PORT MATCHES "onnxruntime")
message("add -Wno-error=shorten-64-to-32 for ${PORT}")
string(APPEND VCPKG_C_FLAGS "-Wno-error=shorten-64-to-32")
string(APPEND VCPKG_CXX_FLAGS "-Wno-error=shorten-64-to-32")
endif()
if (PORT MATCHES "curl")
message("add -Wno-error=implicit-function-declaration for ${PORT}")
string(APPEND VCPKG_C_FLAGS "-Wno-error=implicit-function-declaration")
string(APPEND VCPKG_CXX_FLAGS "-Wno-error=implicit-function-declaration")
endif()
# if(PORT MATCHES "onnxruntime")
# message("add -Wno-error=shorten-64-to-32 for ${PORT}")
# string(APPEND VCPKG_C_FLAGS "-Wno-error=shorten-64-to-32")
# string(APPEND VCPKG_CXX_FLAGS "-Wno-error=shorten-64-to-32")
# endif()
# if (PORT MATCHES "curl")
# message("add -Wno-error=implicit-function-declaration for ${PORT}")
# string(APPEND VCPKG_C_FLAGS "-Wno-error=implicit-function-declaration")
# string(APPEND VCPKG_CXX_FLAGS "-Wno-error=implicit-function-declaration")
# endif()
13 changes: 0 additions & 13 deletions vcpkg-overlay/triplets/maa-arm-neon-android.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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=armv7a-linux-androideabi")
set(VCPKG_CMAKE_CONFIGURE_OPTIONS ${VCPKG_CMAKE_CONFIGURE_OPTIONS}
-DANDROID_ABI=armeabi-v7a
-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)
set(VCPKG_TARGET_ARCHITECTURE x64)
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=x64-linux-android")
set(VCPKG_CMAKE_CONFIGURE_OPTIONS ${VCPKG_CMAKE_CONFIGURE_OPTIONS}
-DANDROID_ABI=x86_64
-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)

0 comments on commit d57017c

Please sign in to comment.