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

Issue 2087593002: GN (Closed)

Created:
4 years, 6 months ago by mtklein_C
Modified:
4 years, 6 months ago
Reviewers:
rmistry, mtklein, bsalomon
CC:
reviews_skia.org, agable
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

GN What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp. The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try: - add another backend like vs or xcode to GN directly - intercept via a custom toolchain - reverse from ninja -t commands That last option seems kind of fun. This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients. This pulls in some new DEPS: - build: Chrome's GN configuration, and much more - buildtools: hashes for gn binary, pulled via hooks - tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac. Have not yet tried building for Windows, Android, or iOS. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002 Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17 Committed: https://skia.googlesource.com/skia/+/c04ff4788cb425db6d9bec0bde4edb14aec97f16

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : non-trivial #

Patch Set 4 : mac #

Patch Set 5 : refine #

Patch Set 6 : build zlib as t_p example #

Patch Set 7 : example works #

Patch Set 8 : building in sysroot seems ok #

Patch Set 9 : -fstrict-aliasing #

Patch Set 10 : sysroot #

Patch Set 11 : roll up so that cc_wrapper works on Mac #

Patch Set 12 : refactoring: fewer templates, more comments #

Total comments: 2

Patch Set 13 : merge in gn.py #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -0 lines) Patch
M .gitignore View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A .gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +258 lines, -0 lines 0 comments Download
A build_overrides/build.gni View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A gn.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +149 lines, -0 lines 0 comments Download
A tools/gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
mtklein_C
4 years, 6 months ago (2016-06-21 20:06:49 UTC) #15
mtklein_C
FWIW: mtklein@linux ~/skia (gn-2)> cat rel/args.gn # Build arguments go here. Examples: # is_component_build = ...
4 years, 6 months ago (2016-06-21 20:07:29 UTC) #16
bsalomon
lgtm The only thing that came out of discussion was that perhaps SKIA_IMPLEMENTATION should be ...
4 years, 6 months ago (2016-06-21 21:36:02 UTC) #17
mtklein_C
On 2016/06/21 at 21:36:02, bsalomon wrote: > lgtm > > The only thing that came ...
4 years, 6 months ago (2016-06-22 14:27:31 UTC) #18
bsalomon
lgtm https://codereview.chromium.org/2087593002/diff/220001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2087593002/diff/220001/BUILD.gn#newcode55 BUILD.gn:55: visibility = [ ":*" ] Does this mean ...
4 years, 6 months ago (2016-06-22 16:07:34 UTC) #19
mtklein
https://codereview.chromium.org/2087593002/diff/220001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2087593002/diff/220001/BUILD.gn#newcode55 BUILD.gn:55: visibility = [ ":*" ] On 2016/06/22 16:07:33, bsalomon ...
4 years, 6 months ago (2016-06-22 16:31:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2087593002/220001
4 years, 6 months ago (2016-06-22 16:31:19 UTC) #23
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
4 years, 6 months ago (2016-06-22 16:52:17 UTC) #25
mtklein
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2088253002/ by mtklein@google.com. ...
4 years, 6 months ago (2016-06-22 17:06:50 UTC) #26
rmistry
Looks like this left over some permanent damage on the bots. All bots that picked ...
4 years, 6 months ago (2016-06-22 18:52:05 UTC) #28
mtklein
On 2016/06/22 18:52:05, rmistry wrote: > Looks like this left over some permanent damage on ...
4 years, 6 months ago (2016-06-22 19:29:07 UTC) #29
borenet
On 2016/06/22 19:29:07, mtklein wrote: > On 2016/06/22 18:52:05, rmistry wrote: > > Looks like ...
4 years, 6 months ago (2016-06-22 19:34:30 UTC) #30
mtklein
> Actually, it was the revert which broke things. For some reason, gclient failed > ...
4 years, 6 months ago (2016-06-22 19:35:28 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2087593002/260001
4 years, 6 months ago (2016-06-23 17:14:17 UTC) #34
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 17:29:36 UTC) #36
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://skia.googlesource.com/skia/+/c04ff4788cb425db6d9bec0bde4edb14aec97f16

Powered by Google App Engine
This is Rietveld 408576698