Skip to content

Commit

Permalink
generalize sdk build
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed May 9, 2024
1 parent fd3c8f3 commit 56a10ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ case "$1" in
-o "${OUT}" "${PACKAGE}"
ls -lh "${OUT}"
;;
"ndk")
"sdk")
# external toolchain, environment vars need to be set
LDFLAGS="${LDFLAGS} -s -w"
set -x
CGO_ENABLED=1 GOOS="android" GOARCH="arm64" \
CGO_ENABLED=1 \
nice go build ${GOFLAGS} -gcflags "${GCFLAGS}" -ldflags "${LDFLAGS}" \
-o "${OUT}.android-arm64" "${PACKAGE}"
-o "${OUT}.${OUTEXT}" "${PACKAGE}"
;;
"d")
set -x
Expand Down

0 comments on commit 56a10ee

Please sign in to comment.