mobile/bind/testdata
Elias Naur 4600df55ca bind, cmd: generate complete standalone bindings from gobind
The gobind and gomobile bind tools have historically overlapped:
gobind outputs generated bindings, and gomobile bind will generate
bindings before building them. However, the gobind bindings were
never used for building and thus allowed to not be complete.

To simplify version control, debugging, instrumentation and build
system flexibility, this CL upgrades the gobind tool to be the
canonical binding generator and change gomobile bind to use gobind
instead of its own generator code.

This greatly simplifies gomobile bind, but also paves the way to skip
gomobile bind entirely. For example:

$ gobind -outdir=$GOPATH golang.org/x/mobile/example/bind/hello
$ GOOS=android GOARCH=arm64 CC=<ndk-toolchain>/bin/clang go build -buildmode=c-shared -o libgobind.so gobind
$ ls libgobind.*
libgobind.h  libgobind.so

The same applies to iOS, although the go build command line is more
involved.

By skipping gomobile it is possible to freely customize the Android
or iOS SDK level or any other flags not supported by gomobile bind.
By checking in the generated source code, the cost of supporting
gomobile in a custom build system is also decreased.

Change-Id: I59c14a77d625ac1377c23b3213672e0d83a48c85
Reviewed-on: https://go-review.googlesource.com/99316
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2018-03-16 06:47:34 +00:00
..
testpkg bind, cmd/gobind/test: remove GOOS build tags from test packages 2018-03-14 22:25:02 +00:00
basictypes.go mobile/bind: merge iOS and Android Go test packages 2016-03-07 16:10:51 +00:00
basictypes.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
basictypes.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
basictypes.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
basictypes.java.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
basictypes.objc.go.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
basictypes.objc.h.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
basictypes.objc.m.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
classes.go internal,bind: resolve overloaded methods at runtime 2017-01-17 14:03:33 +00:00
classes.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
classes.java.c.golden bind: handle ClassNotFoundExceptions on older Androids 2017-01-31 20:25:05 +00:00
classes.java.golden bind,cmd: generate ObjC and Java documentation 2017-08-25 16:30:26 +00:00
classes.java.h.golden bind,internal/importers: always generate toString methods 2017-01-17 14:05:11 +00:00
customprefix.go bind: support for custom java package name and objective-c prefix. 2015-08-28 13:57:06 +00:00
customprefix.java.c.golden bind,cmd: accept Java API in bound packages 2016-09-22 10:16:33 +00:00
customprefix.java.golden bind: use lowercase method names for Java binds 2016-09-07 12:52:06 +00:00
customprefix.java.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
customprefix.objc.go.h.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
customprefix.objc.h.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
customprefix.objc.m.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
customprefixEX.objc.go.h.golden bind,cmd: support the empty ObjC prefix 2016-12-23 09:44:24 +00:00
customprefixEX.objc.h.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
customprefixEX.objc.m.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
doc.go bind,cmd/gomobile: fix follow ups to doc generator CL (52330) 2017-09-05 18:43:28 +00:00
doc.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
doc.java.c.golden bind,cmd/gomobile: fix follow ups to doc generator CL (52330) 2017-09-05 18:43:28 +00:00
doc.java.golden bind,cmd/gomobile: fix follow ups to doc generator CL (52330) 2017-09-05 18:43:28 +00:00
doc.java.h.golden bind,cmd: generate ObjC and Java documentation 2017-08-25 16:30:26 +00:00
doc.objc.go.h.golden bind,cmd: generate ObjC and Java documentation 2017-08-25 16:30:26 +00:00
doc.objc.h.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
doc.objc.m.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
ignore.go mobile/bind: skip unsupported functions, vars, fields and methods 2016-03-15 16:00:42 +00:00
ignore.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
ignore.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
ignore.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
ignore.java.h.golden mobile/bind: skip unsupported functions, vars, fields and methods 2016-03-15 16:00:42 +00:00
ignore.objc.go.h.golden mobile/bind: skip unsupported functions, vars, fields and methods 2016-03-15 16:00:42 +00:00
ignore.objc.h.golden bind: declare implemented ObjC protocols 2017-08-22 15:31:44 +00:00
ignore.objc.m.golden bind: generate ObjC initializers 2017-08-11 20:43:43 +00:00
interfaces.go bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
interfaces.java.c.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.java.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.java.h.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.objc.go.h.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.objc.h.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
interfaces.objc.m.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
issue10788.go bind: param name replacement for invalid unicode names 2016-10-12 18:37:41 +00:00
issue10788.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
issue10788.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue10788.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue10788.java.h.golden mobile/bind: allow bound packages to refer to imported bound packages 2016-03-12 06:23:01 +00:00
issue10788.objc.go.h.golden bind: param name replacement for invalid unicode names 2016-10-12 18:37:41 +00:00
issue10788.objc.h.golden bind: declare implemented ObjC protocols 2017-08-22 15:31:44 +00:00
issue10788.objc.m.golden bind: generate ObjC initializers 2017-08-11 20:43:43 +00:00
issue12328.go bind: support fields with type error 2015-08-26 20:25:55 +00:00
issue12328.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
issue12328.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue12328.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue12328.java.h.golden mobile/bind: allow bound packages to refer to imported bound packages 2016-03-12 06:23:01 +00:00
issue12328.objc.go.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
issue12328.objc.h.golden bind: generate ObjC initializers 2017-08-11 20:43:43 +00:00
issue12328.objc.m.golden bind: generate ObjC initializers 2017-08-11 20:43:43 +00:00
issue12403.go bind: fix interface methods' multiple return values handling. 2015-08-31 16:32:47 +00:00
issue12403.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
issue12403.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue12403.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
issue12403.java.h.golden mobile/bind: use objects to pass errors across the language barrier 2016-06-23 18:55:48 +00:00
issue12403.objc.go.h.golden mobile/bind: use objects to pass errors across the language barrier 2016-06-23 18:55:48 +00:00
issue12403.objc.h.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
issue12403.objc.m.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
java.go bind,internal/importers: handle Java long constants correctly 2017-01-17 15:58:41 +00:00
java.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
java.java.c.golden bind: handle ClassNotFoundExceptions on older Androids 2017-01-31 20:25:05 +00:00
java.java.golden bind,internal/importers: handle Java long constants correctly 2017-01-17 15:58:41 +00:00
java.java.h.golden bind,internal/importers: handle Java long constants correctly 2017-01-17 15:58:41 +00:00
keywords.go bind: sanitize parameter names 2016-10-21 09:25:03 +00:00
keywords.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
keywords.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
keywords.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
keywords.java.h.golden bind: use lowercase method names for Java binds 2016-09-07 12:52:06 +00:00
keywords.objc.go.h.golden bind: use lowercase method names for Java binds 2016-09-07 12:52:06 +00:00
keywords.objc.h.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
keywords.objc.m.golden bind: make the default name prefix empty on ObjC 2016-12-24 13:37:27 +00:00
objc.go bind,cmd: add generator for ObjC API wrappers 2016-10-16 10:25:40 +00:00
objc.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
objcw.go bind,cmd: accept ObjC wrapper types in bound packages 2016-10-17 10:37:16 +00:00
objcw.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
structs.go bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
structs.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
structs.java.c.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
structs.java.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
structs.java.h.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
structs.objc.go.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
structs.objc.h.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
structs.objc.m.golden bind: support types with the same title name as their packages 2018-01-17 09:45:22 +00:00
try.go bind: adjust invalid java package names 2015-08-24 21:08:09 +00:00
try.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
try.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
try.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
try.java.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
try.objc.go.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
try.objc.h.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
try.objc.m.golden bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code 2017-10-09 16:20:38 +00:00
universe.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
universe.java.c.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
universe.java.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
universe.java.h.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
universe.objc.go.h.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
universe.objc.h.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
universe.objc.m.golden bind: include all generated code in tests 2017-01-12 22:17:26 +00:00
vars.go bind: support exported variables 2015-10-07 20:48:45 +00:00
vars.go.golden bind, cmd: generate complete standalone bindings from gobind 2018-03-16 06:47:34 +00:00
vars.java.c.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
vars.java.golden bind,internal: change the default Java package to the empty string 2017-01-11 19:15:09 +00:00
vars.java.h.golden mobile/bind: allow bound packages to refer to imported bound packages 2016-03-12 06:23:01 +00:00
vars.objc.go.h.golden mobile/bind: replace seq serialization with direct calls 2016-03-03 15:03:45 +00:00
vars.objc.h.golden bind: declare implemented ObjC protocols 2017-08-22 15:31:44 +00:00
vars.objc.m.golden bind: generate ObjC initializers 2017-08-11 20:43:43 +00:00