mobile/bind
David Crawshaw e5193c59b3 cmd/gomobile: reorganize build logic
The goal here is to remove several inconsistencies between
-target=android and -target=ios support, along with making the flow
of the command follow the path you might expect given a certain set
of flags, and preparing for `gomobile bind` support of ios. In
particular, building non-main packages now works with both targets
and the initialization of global build state is clearer.

The reorg also is designed around an nm trick I thought of
yesterday to do better package import scanning without a slow
all-file scan. This will give better detection of x/mobile/app and
x/mobile/exp/audio/al packages. There's a TODO about it, and I'll do
it in a future CL.

Tested with:

	go test golang.org/x/mobile/cmd/gomobile
	gomobile init
	gomobile bind golang.org/x/mobile/asset
	go test golang.org/x/mobile/bind/java
	gomobile build -target=ios golang.org/x/mobile/example/basic
	gomobile build -target=ios golang.org/x/mobile/gl
	gomobile build -target=android golang.org/x/mobile/gl
	gomobile build -target=android golang.org/x/mobile/example/basic
	(Along with manual testing of basic on an android device.)

That might make a pretty good _test.go.

Change-Id: I41230008c3c15db25a11c33b9eaca4abada9f411
Reviewed-on: https://go-review.googlesource.com/12051
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-07-13 18:54:16 +00:00
..
java cmd/gomobile: reorganize build logic 2015-07-13 18:54:16 +00:00
objc bind/objc: remove '_' after Go<pkgname> prefix from names. 2015-07-07 03:29:17 +00:00
seq internal/mobileinit: new package for shared logic 2015-07-08 21:29:11 +00:00
testdata bind/objc: remove '_' after Go<pkgname> prefix from names. 2015-07-07 03:29:17 +00:00
bind.go bind: add objective-c code generator. 2015-06-09 20:58:21 +00:00
bind_test.go bind: add objective-c code generator. 2015-06-09 20:58:21 +00:00
gengo.go bind: fix build broken by API change to golang.org/x/tools/go/types 2015-07-02 12:24:20 +00:00
genjava.go bind: rename parameter p 2015-06-04 17:29:43 +00:00
genobjc.go bind/objc: remove '_' after Go<pkgname> prefix from names. 2015-07-07 03:29:17 +00:00
printer.go go.mobile/bind: language binding generator 2014-07-31 15:09:13 -04:00
seq.go bind: support Bool types. 2015-05-14 22:17:57 +00:00