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

Issue 1378993002: Adds new GN template go_binary (Closed)

Created:
5 years, 2 months ago by rudominer
Modified:
5 years, 2 months ago
Reviewers:
rogulenko
CC:
azani, mojo-reviews_chromium.org, gregsimon, 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://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Adds new GN template go_binary This template supports the building of a Go binary, as opposed to a Go Mojo application. It optionally supports the Go binary linking against native code using cgo. I plan to use this to build the new version of the Mojom compiler which is written in Go. This application needs to link against the Mojo Go bindings because it will serialize the compiler's intermediate representation to a Mojo message. This means that I need to use cgo and depend on the target //mojo/public/platform/native:system. Here is what my invocation looks like: go_binary("mojom_parser") { sources = [ "parser_main.go", ] inputs = [ "generated/mojom_files/mojom_files.mojom.go", <some files elided from the list here> "parser/parsing.go", ] deps = [ "//mojo/public/platform/native:system", ] } R=rogulenko@google.com, rogulenko Committed: https://chromium.googlesource.com/external/mojo/+/226dddda4534a249db0133e17c57a7d6a1639bc9

Patch Set 1 #

Total comments: 2

Patch Set 2 : Responds to code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -0 lines) Patch
M mojo/go/rules.gni View 1 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
rudominer
Hi Sergey, ptal Mitch
5 years, 2 months ago (2015-09-30 23:20:46 UTC) #2
rogulenko
https://codereview.chromium.org/1378993002/diff/1/mojo/go/rules.gni File mojo/go/rules.gni (right): https://codereview.chromium.org/1378993002/diff/1/mojo/go/rules.gni#newcode94 mojo/go/rules.gni:94: template("go_application") { My high level question is how are ...
5 years, 2 months ago (2015-10-01 18:48:07 UTC) #3
rudominer
Thanks Sergey. I responded to your comments. Also I made the following changes: - changed ...
5 years, 2 months ago (2015-10-02 16:36:00 UTC) #4
rogulenko
lgtm OK, sounds good. Thanks for the informative reply. I think it might be useful ...
5 years, 2 months ago (2015-10-02 18:32:25 UTC) #5
rudominer
On 2015/10/02 18:32:25, rogulenko wrote: > lgtm > > OK, sounds good. > Thanks for ...
5 years, 2 months ago (2015-10-02 19:13:47 UTC) #6
rudominer
5 years, 2 months ago (2015-10-02 19:13:55 UTC) #7
rudominer
5 years, 2 months ago (2015-10-02 19:14:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
226dddda4534a249db0133e17c57a7d6a1639bc9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698