Carlos Castillo 7861cd6082 cmd/go, go/build: support .m files
go/build is changed to list the .m files in a package, and match them for build constraints, adding them to a new field: Package.MFiles.

The go tool is changed to support building .m files and linking in the results during CGO and SWIG builds. This means packages that create a C interface to calls Objective-C code from go are now go-gettable without producing and distributing .syso files. This change is analogous to the one in Go 1.2 made to support C++ built code.

This change doesn't support .mm files (Objective C++).

Also added support for these MFiles to go list's -json mode.

Fixes #6536.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/60590044
2014-02-13 10:11:44 -08:00
..
2013-10-12 18:40:41 -04:00
2013-11-13 21:29:34 -05:00
2013-10-15 18:41:23 +11:00
2014-01-01 00:00:22 +11:00
2014-02-11 09:26:34 +11:00
2013-06-20 14:49:15 -07:00
2013-10-09 07:05:43 +11:00
2014-02-13 10:11:44 -08:00
2013-10-02 11:46:44 +10:00
2010-09-16 14:01:02 +10:00
2009-10-30 10:34:01 -07:00
2012-03-27 09:27:43 +11:00