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

Issue 1236503002: GN: Use lib.unstripped rather than lib.stripped. Add a toolchain.gni (Closed)

Created:
5 years, 5 months ago by agrieve
Modified:
5 years, 1 month ago
Reviewers:
brettw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn15
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Use lib.unstripped rather than lib.stripped. Add a toolchain.gni toolchain.gni introduces: root_shlib_dir, shlib_prefix, and shlib_extension The original goal of this change was to put shlibs under lib/ for Linux / Android, since that's where GYP puts them. However, the lack of support for loadable_module (or more specifically - per target output directory) in GN makes this infeasible at the moment. This change also mitigates a subtle bug where on Android the unstripped .so is used mistakenly instead of the lib.stripped/ version. It also fixes shlib's link_output being set to the unstripped .so rather than the stripped .so (on Android). BUG=509771 Committed: https://crrev.com/c3cd5e6fe977af4a3c8b20ccb332896b2c888354 Cr-Commit-Position: refs/heads/master@{#342697}

Patch Set 1 #

Patch Set 2 : fix linux gn gen #

Patch Set 3 : rebase #

Patch Set 4 : Fix windows 1 #

Patch Set 5 : fix win 2 #

Patch Set 6 : fix win 3 #

Patch Set 7 : fix rpath #

Patch Set 8 : apply for linux / android only #

Patch Set 9 : rpath-link #

Patch Set 10 : Fix win actually #

Patch Set 11 : root_shlib_dir, toolchain.gni #

Patch Set 12 : forgot to add toolchain.gni #

Total comments: 5

Patch Set 13 : Add two comments and fix linux unit tests #

Patch Set 14 : fix osmesa test failures #2 #

Patch Set 15 : rebase #

Patch Set 16 : lib -> lib.unstripped #

Patch Set 17 : go back to shlib_subdir = "." for all #

Total comments: 2

Patch Set 18 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -94 lines) Patch
M build/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M build/config/android/config.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -4 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +9 lines, -8 lines 0 comments Download
M build/config/gcc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -3 lines 0 comments Download
M build/toolchain/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -23 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +39 lines, -14 lines 0 comments Download
A build/toolchain/toolchain.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +40 lines, -0 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M components/resource_provider/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M mandoline/app/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -4 lines 0 comments Download
M mandoline/services/core_services/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/mojo_application.gni View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -24 lines 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/services/network/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/cython/rules.gni View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M tools/android/forwarder2/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M tools/android/md5sum/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (3 generated)
agrieve
From what I could infer, we'll likely need to configure windows to put .dlls at ...
5 years, 5 months ago (2015-07-13 19:09:34 UTC) #2
brettw
I'm confused. I don't see any "lib" director on my Mac or Windows GYP builds ...
5 years, 5 months ago (2015-07-13 20:00:17 UTC) #3
agrieve
On 2015/07/13 20:00:17, brettw wrote: > I'm confused. I don't see any "lib" director on ...
5 years, 5 months ago (2015-07-13 20:37:11 UTC) #4
brettw
On 2015/07/13 20:37:11, agrieve wrote: > Did some codesearching and found where this is set ...
5 years, 5 months ago (2015-07-14 00:59:41 UTC) #5
agrieve
On 2015/07/14 00:59:41, brettw wrote: > On 2015/07/13 20:37:11, agrieve wrote: > > Did some ...
5 years, 5 months ago (2015-07-14 01:24:29 UTC) #6
agrieve
On 2015/07/14 01:24:29, agrieve wrote: > On 2015/07/14 00:59:41, brettw wrote: > > On 2015/07/13 ...
5 years, 4 months ago (2015-07-28 14:20:12 UTC) #7
brettw
So I keep opening this, thinking, not deciding what I want, closing, and then forgetting. ...
5 years, 4 months ago (2015-07-29 22:29:51 UTC) #8
agrieve
On 2015/07/29 22:29:51, brettw wrote: > So I keep opening this, thinking, not deciding what ...
5 years, 4 months ago (2015-07-30 18:35:41 UTC) #9
brettw
LGTM, this is way nicer https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni#newcode139 build/toolchain/gcc_toolchain.gni:139: sofile = "{{root_out_dir}}/lib/$soname" # ...
5 years, 4 months ago (2015-07-30 23:17:47 UTC) #10
agrieve
https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni#newcode139 build/toolchain/gcc_toolchain.gni:139: sofile = "{{root_out_dir}}/lib/$soname" # Possibly including toolchain dir. On ...
5 years, 4 months ago (2015-07-31 02:09:25 UTC) #11
brettw
https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni#newcode139 build/toolchain/gcc_toolchain.gni:139: sofile = "{{root_out_dir}}/lib/$soname" # Possibly including toolchain dir. Ah, ...
5 years, 4 months ago (2015-07-31 03:59:19 UTC) #12
agrieve
On 2015/07/31 03:59:19, brettw wrote: > https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni > File build/toolchain/gcc_toolchain.gni (right): > > https://codereview.chromium.org/1236503002/diff/220001/build/toolchain/gcc_toolchain.gni#newcode139 > ...
5 years, 4 months ago (2015-07-31 18:28:33 UTC) #13
brettw
I never understood why we needed a loadable module type target. I think whether you ...
5 years, 4 months ago (2015-08-07 19:45:46 UTC) #14
agrieve
On 2015/08/07 19:45:46, brettw wrote: > I never understood why we needed a loadable module ...
5 years, 4 months ago (2015-08-10 18:59:40 UTC) #15
brettw
lgtm with comment change, this is a nice cleanup https://codereview.chromium.org/1236503002/diff/320001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/1236503002/diff/320001/build/toolchain/gcc_toolchain.gni#newcode38 build/toolchain/gcc_toolchain.gni:38: ...
5 years, 4 months ago (2015-08-10 20:06:52 UTC) #16
agrieve
https://codereview.chromium.org/1236503002/diff/320001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/1236503002/diff/320001/build/toolchain/gcc_toolchain.gni#newcode38 build/toolchain/gcc_toolchain.gni:38: # - is_clang On 2015/08/10 20:06:51, brettw wrote: > ...
5 years, 4 months ago (2015-08-10 20:33:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1236503002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1236503002/340001
5 years, 4 months ago (2015-08-10 20:35:18 UTC) #20
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 4 months ago (2015-08-10 21:18:04 UTC) #21
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/c3cd5e6fe977af4a3c8b20ccb332896b2c888354 Cr-Commit-Position: refs/heads/master@{#342697}
5 years, 4 months ago (2015-08-10 21:18:47 UTC) #22
Bons
5 years, 1 month ago (2015-11-15 16:25:39 UTC) #23
Message was sent while issue was closed.
On 2015/08/10 21:18:47, commit-bot: I haz the power wrote:
> Patchset 18 (id:??) landed as
> https://crrev.com/c3cd5e6fe977af4a3c8b20ccb332896b2c888354
> Cr-Commit-Position: refs/heads/master@{#342697}

Loadable module support has been added. Is there anything else you need to
address the TODO here:
https://code.google.com/p/chromium/codesearch#chromium/src/build/toolchain/to...

Powered by Google App Engine
This is Rietveld 408576698