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

Issue 1813053003: ninja: Add target_rpath generator flag (Closed)

Created:
4 years, 9 months ago by jbriance
Modified:
4 years, 9 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

ninja: Add target_rpath generator flag Current rpath is hardcoded to $ORIGIN/lib. Allow the user to use a custom one through a new target_rpath generator flag. Contributed by Julien Brianceau <jbriance@cisco.com>; BUG=none R=sdefresne@chromium.org, thakis@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/fbcb317c7513c1e3bd671a9e5deb8c936e39bf4c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add gyptest-target-rpath.py unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M pylib/gyp/generator/ninja.py View 2 chunks +5 lines, -1 line 0 comments Download
A + test/linux/gyptest-target-rpath.py View 1 3 chunks +5 lines, -10 lines 0 comments Download
A + test/linux/target-rpath/file.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/linux/target-rpath/main.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/linux/target-rpath/test.gyp View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
jbriance
4 years, 9 months ago (2016-03-18 10:26:30 UTC) #3
Nico
lgtm If you don't want others to accidentally break this, consider adding a test. (But ...
4 years, 9 months ago (2016-03-18 14:00:21 UTC) #4
jbriance
On 2016/03/18 14:00:21, Nico wrote: > lgtm > > If you don't want others to ...
4 years, 9 months ago (2016-03-18 14:07:42 UTC) #5
sdefresne
https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py#newcode382 pylib/gyp/generator/ninja.py:382: self.target_rpath = generator_flags.get('target_rpath', r'\$$ORIGIN/lib/') Instead of passing this as ...
4 years, 9 months ago (2016-03-18 14:12:40 UTC) #6
Nico
https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py#newcode382 pylib/gyp/generator/ninja.py:382: self.target_rpath = generator_flags.get('target_rpath', r'\$$ORIGIN/lib/') On 2016/03/18 14:12:40, sdefresne wrote: ...
4 years, 9 months ago (2016-03-18 14:17:49 UTC) #7
Nico
Test looks fine to me too, thanks! Can you run `git cl try` and check ...
4 years, 9 months ago (2016-03-18 14:18:58 UTC) #8
jbriance
https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py#newcode382 pylib/gyp/generator/ninja.py:382: self.target_rpath = generator_flags.get('target_rpath', r'\$$ORIGIN/lib/') On 2016/03/18 14:12:40, sdefresne wrote: ...
4 years, 9 months ago (2016-03-18 14:20:37 UTC) #9
jbriance
On 2016/03/18 14:18:58, Nico wrote: > Test looks fine to me too, thanks! Can you ...
4 years, 9 months ago (2016-03-18 14:21:47 UTC) #10
Nico
Ok, I started try bots. If they come back green, I'll land this for you.
4 years, 9 months ago (2016-03-18 14:28:35 UTC) #11
jbriance
On 2016/03/18 14:28:35, Nico wrote: > Ok, I started try bots. If they come back ...
4 years, 9 months ago (2016-03-18 14:33:09 UTC) #13
sdefresne
lgtm https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/1813053003/diff/1/pylib/gyp/generator/ninja.py#newcode382 pylib/gyp/generator/ninja.py:382: self.target_rpath = generator_flags.get('target_rpath', r'\$$ORIGIN/lib/') On 2016/03/18 at 14:17:49, ...
4 years, 9 months ago (2016-03-18 15:41:38 UTC) #14
Nico
4 years, 9 months ago (2016-03-18 17:42:59 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
fbcb317c7513c1e3bd671a9e5deb8c936e39bf4c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698