Skip to content

Commit

Permalink
Merge pull request #5 from aa889788/master
Browse files Browse the repository at this point in the history
添加range-v3,修复android构建错误,修复onnxruntime错误
  • Loading branch information
dantmnf authored Mar 9, 2023
2 parents 89657fd + b3f72ef commit 045f5ca
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maadeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
" or maadeps-build.py to build from source\n"
)
endif()
list(PREPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")
list(PREPEND CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/vcpkg/installed/${MAADEPS_TRIPLET}")

function(maadeps_install)
install(DIRECTORY "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/runtime/${MAADEPS_TRIPLET}/" DESTINATION . USE_SOURCE_PERMISSIONS)
Expand Down
1 change: 0 additions & 1 deletion maadeps/runtime_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def split_debug(file, debug_file):
objcopy = subprocess.check_output([ndk_which, "objcopy"]).decode().strip()
objcopy = os.environ.get("OBJCOPY", objcopy)
subprocess.check_call([objcopy, "--only-keep-debug", "--", file, temp_debug_file])
subprocess.check_call([objcopy, "--strip-unneeded", "--add-gnu-debuglink=" + str(temp_debug_file), "--", file])
shutil.move(temp_debug_file, debug_file)

def is_elf(file):
Expand Down
1 change: 1 addition & 0 deletions vcpkg-overlay/ports/onnx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ vcpkg_cmake_configure(
-DONNX_USE_MSVC_STATIC_RUNTIME=${USE_STATIC_RUNTIME}
-DONNX_BUILD_TESTS=OFF
-DONNX_BUILD_BENCHMARKS=OFF
-DONNX_DISABLE_STATIC_REGISTRATION=ON
MAYBE_UNUSED_VARIABLES
ONNX_USE_MSVC_STATIC_RUNTIME
)
Expand Down
3 changes: 2 additions & 1 deletion vcpkg-overlay/triplets/maa-arm64-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_CMAKE_SYSTEM_VERSION 23)
set(VCPKG_BUILD_TYPE release)
set(VCPKG_CMAKE_CONFIGURE_OPTIONS ${VCPKG_CMAKE_CONFIGURE_OPTIONS} -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=OFF)
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.inc)
6 changes: 5 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
},
"maa-fastdeploy",
"zlib",
"asio"
"asio",
{
"name": "range-v3",
"platform": "osx | android"
}
]
}

0 comments on commit 045f5ca

Please sign in to comment.