Documentation
¶
Overview ¶
Package targets names the build targets nsgo accepts and expands the groups they form, so a tool that writes or checks an app's build.targets shares the tool's own table.
Index ¶
Constants ¶
const MiniProgram = "miniprogram"
MiniProgram names every mini program target at once.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand replaces all with every target that needs only Go and Xcode, a bare OS name with its architectures, and MiniProgram with every mini program, checks every name and drops duplicates, so each package is built once. android_x64 stays out of all and android because it needs an NDK, macos_universal out of all and macos because it builds both macOS architectures again to join them, and the mini programs because they take only Go apps that fit their packages.
func GoAndXcode ¶
func GoAndXcode() []string
GoAndXcode returns the packages a Mac with Go and Xcode can build, which is what all stands for. android_x64 is omitted: Go links android/amd64 only with cgo, so it needs an NDK; macos_universal, which joins the two macOS targets' builds; the harmonyos preview, and the mini programs, which only some apps fit.
Types ¶
This section is empty.