Commit Graph

629 Commits

Author SHA1 Message Date
David Crawshaw 0a1cd6409e go.mobile/geom: coordinate system and unit of length
LGTM=nigeltao
R=nigeltao, ruiu
CC=adg, davidday, golang-codereviews
https://golang.org/cl/140940044
2014-09-04 09:02:06 -04:00
David Crawshaw d56aee7394 go.mobile/example: give library examples a lib prefix
LGTM=nigeltao
R=golang-codereviews, nigeltao
CC=golang-codereviews
https://golang.org/cl/130910043
2014-09-03 09:28:47 -04:00
David Crawshaw 6acad32cab go.mobile/gl: import OpenGL 2 ES headers
Various versions of these headers cause harmless (but frustrating)
compile errors, e.g. *C.char being swapped out in some function
definitions for *C.uchar. To simplify builds, importing the
headers from khronos.org.

LGTM=nigeltao
R=golang-codereviews, nigeltao
CC=golang-codereviews
https://golang.org/cl/127020043
2014-09-03 09:03:42 -04:00
David Crawshaw 3d312b5a2b go.mobile: break dependency on gobind
Preparation for NativeActivity-based apps.

LGTM=nigeltao
R=golang-codereviews, nigeltao
CC=golang-codereviews
https://golang.org/cl/126520043
2014-09-03 09:03:00 -04:00
David Crawshaw 3bd69d3fcc go.mobile/gl: tracing debug mode
Compiling a binary with "-tags gldebug" will add log
tracing to each GL function call. This is the best I
can offer in lieu of of real error handling.

A colleague has accused me of Aspect-oriented
programming. The wikipedia article on the topic lost
me in the first paragraph, so just for the record,
this was inspired by the way the cover tool rewrites
source code.

LGTM=sameer
R=golang-codereviews, sameer
CC=golang-codereviews
https://golang.org/cl/128640043
2014-08-26 10:03:00 -04:00
David Crawshaw 0394fdc6fe go.mobile/gl: OpenGL ES 2 bindings
A new set of bindings, as none of the existing open source
ones meet all the desired criteria:

- just ES 2/3, no deprecated/wider interfaces
- no hiding of GL functions behind higher-level interfaces
- no exported use of C types
- no other library dependencies
- no exported use of unsafe.Pointer
- use Go slices for passing arrays

Function stubs were generated from the gl.xml spec file,
however there were enough special cases (and few enough
functions in the ES spec) that it was easier to construct
most of this file by hand rather than complete a generator
script. So it is not included in this CL.

LGTM=adg
R=golang-codereviews, bryanturley, adg, capnm9
CC=golang-codereviews
https://golang.org/cl/127870043
2014-08-25 08:17:08 -04:00
David Crawshaw 4b6d21f64f go.mobile/app: a little documentation
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/128580044
2014-08-21 16:07:33 -04:00
David Crawshaw f53c6fa014 go.mobile/app: override log output
Results in faster writes to logcat as it skips the pipe.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/132800044
2014-08-21 16:06:11 -04:00
David Crawshaw cd38d7f2f1 go.mobile/cmd/gobind: newline after printing errors
LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/123210043
2014-08-12 14:29:18 -04:00
David Crawshaw d58b149990 go.mobile/cmd/gobind: use go/loader to load packages
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/127050043
2014-08-12 14:09:08 -04:00
David Crawshaw e8dea067be go.mobile/cmd/gobind: language binding command line tool
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/120140043
2014-08-01 10:45:18 -04:00
David Crawshaw 997628f863 go.mobile/example/hello: trivial language binding example
LGTM=adonovan
R=adonovan, adg
CC=golang-codereviews
https://golang.org/cl/116260043
2014-07-31 15:20:01 -04:00
David Crawshaw 9f144f9410 go.mobile/bind: language binding generator
Details: http://golang.org/s/gobind

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/118240044
2014-07-31 15:09:13 -04:00
David Crawshaw 1e86c633f3 go.mobile/app: initialize java language binding
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/114300043
2014-07-31 08:27:33 -04:00
David Crawshaw 5487fc8103 go.mobile/bind/java: tests of object reference tracking
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/112700044
2014-07-31 08:25:23 -04:00
David Crawshaw 6a88edec71 go.mobile/bind/java: cgo-JNI bridge using seq
Details: http://golang.org/s/gobind

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/110550044
2014-07-31 08:24:05 -04:00
David Crawshaw e9c430e74e go.mobile/app: redirect os.Stdout and os.Stderr to logcat
LGTM=sameer
R=sameer, nightlyone
CC=golang-codereviews
https://golang.org/cl/116330044
2014-07-31 08:23:38 -04:00
David Crawshaw 2861ce3b89 go.mobile/bind/seq: Go implementation of parameter serialization
Details: http://golang.org/s/gobind

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/116800043
2014-07-28 15:47:26 -04:00
David Crawshaw 35f7226e83 go.mobile: update readme, add build instructions
LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/109480043
2014-07-23 09:46:19 -07:00
David Crawshaw eaed638e63 go.mobile/example: basic android example
LGTM=bradfitz
R=bradfitz, golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/111870043
2014-07-23 09:45:34 -07:00
David Crawshaw 3c9259eba0 go.mobile/app: Java thread check, extra doc comment
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/109670043
2014-07-10 13:13:00 -04:00
David Crawshaw d3521b7338 go.mobile/app: entry point for android shared libraries
This is the minimum amount of machinery necessary to get
libgojni.so loading and callable from an Android App.

To keep impact on the Go runtime small, we construct an
auxv array here from /proc/self/auxv.

LGTM=minux, adonovan
R=adonovan, golang-codereviews, minux, bradfitz
CC=golang-codereviews
https://golang.org/cl/107500043
2014-07-10 07:29:36 -04:00
Rob Pike 1fabe7702b .hgignore: add comment setting policy
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/44810044
2013-12-20 16:28:21 -08:00
Russ Cox 0d571bdbc1 codereview: switch defaultcc to golang-codereviews
See this thread for background:
https://groups.google.com/forum/#!topic/golang-dev/xG7vPi21r8g

R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/39440047
2013-12-20 10:57:06 -05:00
Rob Pike 3ead892b8d go.empty: restore the README
I edited the wrong README when cloning the empty repo to create the tools one.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/9486043
2013-05-17 12:11:15 -07:00
Rob Pike f4917bf174 go.tools: create subrepository
This subrepo is the ultimate home for some of the experimental components
being developed in go.exp now, and also existing pieces such as go vet.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9481043
2013-05-17 11:52:26 -07:00
Nigel Tao ca8b903872 go.empty: add PATENTS file to the subrepo.
R=r
CC=golang-dev
https://golang.org/cl/6026043
2012-04-16 11:24:04 +10:00
Rob Pike b38d45f7ff LICENSE: add
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5845057
2012-03-17 15:20:58 +11:00
Russ Cox f61fbb80d2 go.empty: prototype for new subrepository
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5572056
2012-01-25 14:45:13 -05:00