Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug 574] Fixed: can not build out arm64 version for linux-android pl… #575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/http-parser.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ExternalProject_Add(http-parser
-DOS=${TARGET_OS}
${HTTPPARSER_NUTTX_ARG}
-DENABLE_MEMORY_CONSTRAINTS=ON
-DANDROID_ABI=${ANDROID_ABI}
)
add_library(libhttp-parser STATIC IMPORTED)
add_dependencies(libhttp-parser http-parser)
Expand Down
1 change: 1 addition & 0 deletions cmake/jerry.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ ExternalProject_Add(libjerry
-DFEATURE_PROFILE=${FEATURE_PROFILE}
-DFEATURE_VM_EXEC_STOP=ON
-DENABLE_LTO=${ENABLE_LTO}
-DANDROID_ABI=${ANDROID_ABI}
${DEPS_LIB_JERRY_ARGS}
${EXTRA_JERRY_CMAKE_PARAMS}
)
Expand Down
1 change: 1 addition & 0 deletions cmake/libmqtt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ExternalProject_Add(libmqtt
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DENABLE_PROGRAMS=OFF
-DENABLE_TESTING=OFF
-DANDROID_ABI=${ANDROID_ABI}
)

add_library(libmqtt_packet STATIC IMPORTED)
Expand Down
1 change: 1 addition & 0 deletions cmake/libtuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ExternalProject_Add(libtuv
-DBUILDAPIEMULTESTER=NO
-DTARGET_SYSTEMROOT=${TARGET_SYSTEMROOT}
-DTARGET_BOARD=${TARGET_BOARD}
-DANDROID_ABI=${ANDROID_ABI}
)
add_library(tuv STATIC IMPORTED)
add_dependencies(tuv libtuv)
Expand Down
1 change: 1 addition & 0 deletions cmake/mbedtls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ExternalProject_Add(mbedtls
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DENABLE_PROGRAMS=OFF
-DENABLE_TESTING=OFF
-DANDROID_ABI=${ANDROID_ABI}
)

# define external mbedtls target
Expand Down
2 changes: 1 addition & 1 deletion docs/build/Build-for-Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ NDK_DIR=$HOME/Android/sdk/ndk-bundle # or change to your ndk directory
--target-os=linux-android \
--cmake-param=-DANDROID_NDK=$NDK_DIR \
--cmake-param=-DANDROID_NATIVE_API_LEVEL=23 \
--cmake-param=-DANDROID_ABI=armeabi-v7a \
--cmake-param=-DANDROID_ABI=arm64-v8a \
--cmake-param=-DANDROID_TOOLCHAIN=clang \
--cmake-toolchain-file=$NDK_DIR/build/cmake/android.toolchain.cmake\
--profile=./profiles/basic.profile
Expand Down