gogio: [Android] add -targetsdk flag to specify the target SDK level

Fixes: https://todo.sr.ht/~eliasnaur/gio/582
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
zhengrui
2024-06-03 17:42:27 +08:00
committed by Elias Naur
parent ddde16a09e
commit 6465f30f98
4 changed files with 14 additions and 5 deletions
+2
View File
@@ -18,6 +18,7 @@ type buildInfo struct {
archs []string
ldflags string
minsdk int
targetsdk int
name string
pkgDir string
pkgPath string
@@ -60,6 +61,7 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
archs: getArchs(),
ldflags: getLdFlags(appID),
minsdk: *minsdk,
targetsdk: *targetsdk,
name: appName,
pkgDir: pkgMetadata.Dir,
pkgPath: pkgPath,