-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Ant compile demo and UT projects when NDK version lower than r18 (#…
…3690) * android-ndk-r18b and below use Ant to compile demo and unit_test projects * give the ndk-version-check.sh executable permissions
- Loading branch information
1 parent
b3feec2
commit 15d02fc
Showing
2 changed files
with
42 additions
and
3 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,22 @@ | ||
#!/bin/bash | ||
#********************************************************************************** | ||
# This script is using in Makefile to check the ndk version: | ||
# | ||
# --usage: | ||
# ./ndk-version-check.sh ndkroot | ||
# | ||
# date: 10/20/2023 Created | ||
#********************************************************************************** | ||
|
||
NDK_PATH=$1 | ||
if [ ! -n "$NDK_PATH" ] | ||
then | ||
exit 1 | ||
fi | ||
NDK_VERSION=${NDK_PATH##*/} | ||
NDK_VERSION_NUM=`echo $NDK_VERSION | tr -cd "[0-9]"` | ||
|
||
if [ $NDK_VERSION_NUM -le 18 ] | ||
then | ||
echo "Yes" | ||
fi |