Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Issue 556813003: Add Go build support for GN. (Closed)

Created:
6 years, 3 months ago by tburkard
Modified:
6 years, 2 months ago
Reviewers:
brettw, viettrungluu, qsr
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add Go build support for GN. Provide a skeleton of the mojo system API, as well as a skeleton test. R=qsr@chromium.org, brettw@chromium.org, viettrungluu@chromium.org Committed: https://crrev.com/88a08a6c4dc21ac135f97707c062e97f36872b23 Cr-Commit-Position: refs/heads/master@{#297038}

Patch Set 1 #

Total comments: 30

Patch Set 2 : brettw feedback #

Patch Set 3 : fix go group #

Total comments: 2

Patch Set 4 : qsr feedback #

Patch Set 5 : got full gn build working #

Total comments: 10

Patch Set 6 : simply path computation #

Total comments: 1

Patch Set 7 : qsr feedback #

Total comments: 6

Patch Set 8 : qsr feedback #

Total comments: 5

Patch Set 9 : vtl feedback #

Total comments: 4

Patch Set 10 : qsr feedback #

Total comments: 6

Patch Set 11 : brettw feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -25 lines) Patch
A build/go/go.py View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A build/go/rules.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +62 lines, -0 lines 2 comments Download
M mojo/BUILD.gn View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
A mojo/go/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download
A mojo/go/c_embedder/c_embedder.h View 1 chunk +18 lines, -0 lines 0 comments Download
A + mojo/go/c_embedder/c_embedder.cc View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download
A + mojo/go/system/embedder/embedder.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -8 lines 0 comments Download
A mojo/go/system/impl/core_impl.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A mojo/go/tests/system_test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
A + mojo/public/go/mojo/system/core.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -6 lines 0 comments Download
M mojo/public/platform/native/system_thunks.h View 1 2 3 4 5 6 7 8 9 7 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 56 (6 generated)
tburkard
Hi Brett, Hi Ben, I am sending you a first draft of adding Go support ...
6 years, 3 months ago (2014-09-12 14:42:46 UTC) #1
qsr
On 2014/09/12 14:42:46, tburkard wrote: > Hi Brett, > Hi Ben, > > I am ...
6 years, 3 months ago (2014-09-15 09:45:44 UTC) #2
qsr
https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py#newcode23 build/go/go.py:23: go_binary = args[1] You can use argpath. That would ...
6 years, 3 months ago (2014-09-15 09:54:24 UTC) #3
tburkard
Thanks for your feedback. Please find my comments below. Thanks. >> Some things are clearly ...
6 years, 3 months ago (2014-09-16 12:29:13 UTC) #4
brettw
https://codereview.chromium.org/556813003/diff/1/build/go/rules.gni File build/go/rules.gni (right): https://codereview.chromium.org/556813003/diff/1/build/go/rules.gni#newcode19 build/go/rules.gni:19: script = "//build/go/go.py" I don't understand what you're saying ...
6 years, 3 months ago (2014-09-16 22:58:55 UTC) #5
tburkard
brettw feedback
6 years, 3 months ago (2014-09-17 12:04:12 UTC) #6
tburkard
brettw feedback
6 years, 3 months ago (2014-09-17 12:06:03 UTC) #8
tburkard
Thanks, Brett and Ben for your comments. I addressed all of them. Sometimes, I asked ...
6 years, 3 months ago (2014-09-17 12:06:46 UTC) #9
qsr
https://codereview.chromium.org/556813003/diff/1/mojo/go/BUILD.gn File mojo/go/BUILD.gn (right): https://codereview.chromium.org/556813003/diff/1/mojo/go/BUILD.gn#newcode7 mojo/go/BUILD.gn:7: group("go") { On 2014/09/17 12:06:45, tburkard wrote: > On ...
6 years, 3 months ago (2014-09-17 12:30:25 UTC) #10
tburkard
fix go group
6 years, 3 months ago (2014-09-17 13:29:20 UTC) #11
tburkard
Fixed the go group after talking with Ben, and understanding how groups work. Please let ...
6 years, 3 months ago (2014-09-17 13:30:46 UTC) #12
tburkard
Brett, Ben: so my main question, besides the few open points that I mentioned above, ...
6 years, 3 months ago (2014-09-17 20:53:06 UTC) #13
qsr
https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py#newcode23 build/go/go.py:23: go_binary = args[1] On 2014/09/16 12:29:13, tburkard wrote: > ...
6 years, 3 months ago (2014-09-18 08:30:38 UTC) #14
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py#newcode23 build/go/go.py:23: go_binary = args[1] On 2014/09/18 08:30:38, qsr wrote: > ...
6 years, 3 months ago (2014-09-18 14:23:42 UTC) #15
qsr
https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py#newcode23 build/go/go.py:23: go_binary = args[1] On 2014/09/18 14:23:42, tburkard wrote: > ...
6 years, 3 months ago (2014-09-18 14:30:56 UTC) #16
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/1/build/go/go.py#newcode23 build/go/go.py:23: go_binary = args[1] On 2014/09/18 14:30:55, qsr wrote: > ...
6 years, 3 months ago (2014-09-18 15:20:09 UTC) #17
qsr
> In the general case though, couldn't libs come from multiple places? Eg what if ...
6 years, 3 months ago (2014-09-18 15:24:49 UTC) #18
tburkard
On 2014/09/18 15:24:49, qsr wrote: > > In the general case though, couldn't libs come ...
6 years, 3 months ago (2014-09-18 15:33:31 UTC) #19
tburkard
got full gn build working
6 years, 3 months ago (2014-09-22 10:35:25 UTC) #20
tburkard
got full gn build working
6 years, 3 months ago (2014-09-22 10:44:10 UTC) #21
tburkard
Hi, I removed the depence on gyp, and all the dependencies are now expressed correctly, ...
6 years, 3 months ago (2014-09-22 10:47:15 UTC) #23
tburkard
fix path
6 years, 3 months ago (2014-09-22 11:01:15 UTC) #24
tburkard
Ok, this fixed the hard coded path. Please let me know if you have any ...
6 years, 3 months ago (2014-09-22 11:01:52 UTC) #25
tburkard
simply path computation
6 years, 3 months ago (2014-09-22 11:10:39 UTC) #26
qsr
https://chromiumcodereview.appspot.com/556813003/diff/120001/build/go/rules.gni File build/go/rules.gni (right): https://chromiumcodereview.appspot.com/556813003/diff/120001/build/go/rules.gni#newcode14 build/go/rules.gni:14: # assert(defined(invoker.go_base_module)) You should remove this if this is ...
6 years, 3 months ago (2014-09-22 11:11:25 UTC) #27
qsr
https://chromiumcodereview.appspot.com/556813003/diff/160001/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/160001/build/go/go.py#newcode37 build/go/go.py:37: src_root = os.path.abspath(args.src_root) + "/" You do not need ...
6 years, 3 months ago (2014-09-22 11:15:01 UTC) #29
tburkard
qsr feedback
6 years, 3 months ago (2014-09-22 14:23:09 UTC) #30
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/120001/build/go/rules.gni File build/go/rules.gni (right): https://chromiumcodereview.appspot.com/556813003/diff/120001/build/go/rules.gni#newcode14 build/go/rules.gni:14: # assert(defined(invoker.go_base_module)) On 2014/09/22 11:11:25, qsr wrote: > You ...
6 years, 3 months ago (2014-09-22 14:23:17 UTC) #31
qsr
https://chromiumcodereview.appspot.com/556813003/diff/180001/build/go/go.py File build/go/go.py (right): https://chromiumcodereview.appspot.com/556813003/diff/180001/build/go/go.py#newcode19 build/go/go.py:19: import string This import is not used. https://chromiumcodereview.appspot.com/556813003/diff/180001/build/go/go.py#newcode37 build/go/go.py:37: ...
6 years, 3 months ago (2014-09-22 14:35:07 UTC) #32
tburkard
qsr feedback
6 years, 3 months ago (2014-09-22 14:43:18 UTC) #33
tburkard
Thanks, Ben. Incorporated all your comments. Viet-Trung, can you please take a look? Primarily at ...
6 years, 3 months ago (2014-09-22 14:45:07 UTC) #35
qsr
lgtm
6 years, 3 months ago (2014-09-22 14:54:50 UTC) #36
viettrungluu
https://codereview.chromium.org/556813003/diff/200001/mojo/public/platform/native/system_thunks.h File mojo/public/platform/native/system_thunks.h (right): https://codereview.chromium.org/556813003/diff/200001/mojo/public/platform/native/system_thunks.h#newcode4 mojo/public/platform/native/system_thunks.h:4: Probably you should add a comment indicating that this ...
6 years, 3 months ago (2014-09-23 13:44:43 UTC) #37
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/200001/mojo/public/platform/native/system_thunks.h File mojo/public/platform/native/system_thunks.h (right): https://chromiumcodereview.appspot.com/556813003/diff/200001/mojo/public/platform/native/system_thunks.h#newcode4 mojo/public/platform/native/system_thunks.h:4: On 2014/09/23 13:44:43, viettrungluu wrote: > Probably you should ...
6 years, 3 months ago (2014-09-23 13:52:21 UTC) #38
tburkard
vtl feedback
6 years, 3 months ago (2014-09-23 13:52:27 UTC) #39
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/200001/mojo/public/platform/native/system_thunks.h File mojo/public/platform/native/system_thunks.h (right): https://chromiumcodereview.appspot.com/556813003/diff/200001/mojo/public/platform/native/system_thunks.h#newcode104 mojo/public/platform/native/system_thunks.h:104: inline struct MojoSystemThunks MojoMakeSystemThunks() { On 2014/09/23 13:52:21, tburkard ...
6 years, 3 months ago (2014-09-23 13:54:57 UTC) #40
qsr
https://codereview.chromium.org/556813003/diff/220001/mojo/public/platform/native/system_thunks.h File mojo/public/platform/native/system_thunks.h (right): https://codereview.chromium.org/556813003/diff/220001/mojo/public/platform/native/system_thunks.h#newcode5 mojo/public/platform/native/system_thunks.h:5: // Note: This header should be compilable as C. ...
6 years, 3 months ago (2014-09-23 14:20:49 UTC) #41
tburkard
qsr feedback
6 years, 3 months ago (2014-09-23 14:35:46 UTC) #42
tburkard
qsr feedback
6 years, 3 months ago (2014-09-23 14:37:57 UTC) #44
tburkard
https://chromiumcodereview.appspot.com/556813003/diff/220001/mojo/public/platform/native/system_thunks.h File mojo/public/platform/native/system_thunks.h (right): https://chromiumcodereview.appspot.com/556813003/diff/220001/mojo/public/platform/native/system_thunks.h#newcode5 mojo/public/platform/native/system_thunks.h:5: // Note: This header should be compilable as C. ...
6 years, 3 months ago (2014-09-23 14:39:07 UTC) #45
tburkard
Ping. Brett/Viet-Trung, any more comments? Thanks.
6 years, 3 months ago (2014-09-24 15:18:02 UTC) #46
viettrungluu
lgtm
6 years, 3 months ago (2014-09-24 17:12:39 UTC) #47
brettw
https://codereview.chromium.org/556813003/diff/260001/build/go/rules.gni File build/go/rules.gni (right): https://codereview.chromium.org/556813003/diff/260001/build/go/rules.gni#newcode10 build/go/rules.gni:10: template("go_test_binary") { This needs documentation. What variables does it ...
6 years, 3 months ago (2014-09-24 19:25:46 UTC) #48
tburkard
brettw feedback
6 years, 2 months ago (2014-09-26 13:30:43 UTC) #49
tburkard
This should address all the points you mentioned, Brett. Please take another look. Thanks. https://chromiumcodereview.appspot.com/556813003/diff/260001/build/go/rules.gni ...
6 years, 2 months ago (2014-09-26 13:31:09 UTC) #50
qsr
https://chromiumcodereview.appspot.com/556813003/diff/280001/build/go/rules.gni File build/go/rules.gni (right): https://chromiumcodereview.appspot.com/556813003/diff/280001/build/go/rules.gni#newcode32 build/go/rules.gni:32: sources = invoker.static_library_sources I do not think you should ...
6 years, 2 months ago (2014-09-26 13:33:41 UTC) #51
brettw
LGTM https://chromiumcodereview.appspot.com/556813003/diff/280001/build/go/rules.gni File build/go/rules.gni (right): https://chromiumcodereview.appspot.com/556813003/diff/280001/build/go/rules.gni#newcode32 build/go/rules.gni:32: sources = invoker.static_library_sources On 2014/09/26 13:33:41, qsr wrote: ...
6 years, 2 months ago (2014-09-26 18:15:35 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/556813003/280001
6 years, 2 months ago (2014-09-26 20:15:45 UTC) #54
commit-bot: I haz the power
Committed patchset #11 (id:280001) as e9985c230799b689b97359f6243300acaebe66b1
6 years, 2 months ago (2014-09-26 21:24:47 UTC) #55
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 21:25:42 UTC) #56
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/88a08a6c4dc21ac135f97707c062e97f36872b23
Cr-Commit-Position: refs/heads/master@{#297038}

Powered by Google App Engine
This is Rietveld 408576698