Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 21, 2024
1 parent 3b86a1c commit 74f7d3f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@ string(REPLACE "armeabi-v7a" "armv7" ARCH "${ARCH}")
string(REPLACE "arm64-v8a" "armv8" ARCH "${ARCH}")

include(${CMAKE_CURRENT_LIST_DIR}/app/conan.cmake)
conan_cmake_configure(GENERATORS cmake)
conan_cmake_autodetect(settings_build)
conan_cmake_autodetect(settings_host ARCH ${ARCH})
# inspired from here https://docs.conan.io/en/latest/integrations/cross_platform/android.html
configure_file(app/toolchain.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/toolchain.cmake @ONLY)
conan_cmake_install(PATH_OR_REFERENCE ${CMAKE_CURRENT_LIST_DIR}
BUILD missing
SETTINGS_BUILD ${settings_build} compiler.libcxx=libc++
SETTINGS_HOST ${settings_host} compiler.libcxx=c++_shared
PROFILE_BUILD default
PROFILE_HOST ${CMAKE_CURRENT_LIST_DIR}/conanprofile.txt
PROFILE_BUILD ${CMAKE_CURRENT_LIST_DIR}/conanprofile_build.txt
PROFILE_HOST ${CMAKE_CURRENT_LIST_DIR}/conanprofile_host.txt
ENV CONAN_CMAKE_TOOLCHAIN_FILE=${CMAKE_CURRENT_BINARY_DIR}/toolchain.cmake
ANDROID_NDK_ROOT=${CMAKE_ANDROID_NDK})
include(${CMAKE_CURRENT_BINARY_DIR}/conan_paths.cmake)
Expand Down
13 changes: 13 additions & 0 deletions conanprofile_build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include(default)

[settings]
compiler=clang
compiler.libcxx=libc++
build_type=Release

[env]
CONAN_RUN_TESTS=False
CONAN_CMAKE_GENERATOR=Ninja

[conf]
tools.build:skip_test=True
File renamed without changes.

0 comments on commit 74f7d3f

Please sign in to comment.