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

Issue 1483683002: GN(android): Use list of libraries rather than native_lib_dir in all places (Closed)

Created:
5 years ago by agrieve
Modified:
5 years ago
Reviewers:
pkotwicz
CC:
chromium-reviews, klundberg+watch_chromium.org, mikecase+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org, no sievers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN(android): Use list of libraries rather than native_lib_dir in all places Addresses a TODO and makes rules more well suited for adding in loadable_modules BUG=559289 Committed: https://crrev.com/7867a73b9d808755d40b8278b312122269720462 Cr-Commit-Position: refs/heads/master@{#362463}

Patch Set 1 #

Total comments: 14

Patch Set 2 : review coments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -127 lines) Patch
M build/android/gyp/apkbuilder.py View 1 3 chunks +11 lines, -14 lines 0 comments Download
M build/android/gyp/pack_relocations.py View 3 chunks +7 lines, -0 lines 0 comments Download
M build/android/incremental_install/create_install_script.py View 5 chunks +14 lines, -7 lines 0 comments Download
M build/android/incremental_install/installer.py View 7 chunks +19 lines, -13 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 6 chunks +22 lines, -11 lines 0 comments Download
M build/config/android/rules.gni View 1 11 chunks +80 lines, -82 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
agrieve
On 2015/11/27 21:26:32, agrieve wrote: > mailto:agrieve@chromium.org changed reviewers: > + mailto:pkotwicz@chromium.org Sadly, not too ...
5 years ago (2015-11-27 21:27:32 UTC) #3
pkotwicz
LGTM with nits https://codereview.chromium.org/1483683002/diff/1/build/android/gyp/apkbuilder.py File build/android/gyp/apkbuilder.py (right): https://codereview.chromium.org/1483683002/diff/1/build/android/gyp/apkbuilder.py#newcode48 build/android/gyp/apkbuilder.py:48: # TODO(agrieve): Switch this to be ...
5 years ago (2015-11-30 20:28:41 UTC) #4
pkotwicz
https://codereview.chromium.org/1483683002/diff/1/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1483683002/diff/1/build/config/android/rules.gni#newcode1631 build/config/android/rules.gni:1631: _extra_native_libs_even_when_incremental = [] Can you please add |_extra_native_libs_even_when_incremental| as ...
5 years ago (2015-11-30 20:36:38 UTC) #5
agrieve
https://codereview.chromium.org/1483683002/diff/1/build/android/gyp/apkbuilder.py File build/android/gyp/apkbuilder.py (right): https://codereview.chromium.org/1483683002/diff/1/build/android/gyp/apkbuilder.py#newcode48 build/android/gyp/apkbuilder.py:48: # TODO(agrieve): Switch this to be a list of ...
5 years ago (2015-12-01 15:34:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1483683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1483683002/20001
5 years ago (2015-12-01 15:35:09 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-01 18:53:09 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7867a73b9d808755d40b8278b312122269720462 Cr-Commit-Position: refs/heads/master@{#362463}
5 years ago (2015-12-01 18:54:49 UTC) #13
no sievers
Hmm, this breaks the build for me: ERROR at //build/config/android/rules.gni:1636:7: Replacing nonempty list. _extra_native_libs = ...
5 years ago (2015-12-01 22:15:02 UTC) #14
jbudorick
On 2015/12/01 22:15:02, sievers wrote: > Hmm, this breaks the build for me: > > ...
5 years ago (2015-12-01 22:32:45 UTC) #16
agrieve
5 years ago (2015-12-01 23:02:16 UTC) #17
Message was sent while issue was closed.
On 2015/12/01 22:32:45, jbudorick wrote:
> On 2015/12/01 22:15:02, sievers wrote:
> > Hmm, this breaks the build for me:
> > 
> > ERROR at //build/config/android/rules.gni:1636:7: Replacing nonempty list.
> >       _extra_native_libs =
> >       ^-----------------
> > This overwrites a previously-defined nonempty list (length 1).
> > See //build/config/android/rules.gni:1632:28: for previous definition
> >       _extra_native_libs = [ android_gdbserver ]
> >                            ^-------------------
> > with another one (length 1). Did you mean "+=" to append instead? If you
> > really want to do this, do
> >   _extra_native_libs = []
> > before reassigning.
> > See //content/shell/android/BUILD.gn:175:3: whence it was called.
> >   android_apk("chromium_linker_test_apk") {
> 
> this also breaks presubmit in build/android/ :(
> 
> ** Presubmit ERRORS **
> Pylint (241 files using ['--disable=cyclic-import'] on 8 cores) (12.11s)
failed
> ************* Module pylib.local.device.local_device_gtest_run
> E: 99, 4: Unexpected keyword argument 'lib_dir' in function call
> (unexpected-keyword-arg)

Yerg, a double-break. Achievement unlocked? :S

John's got a fix in the CQ for the presubmit error:
https://codereview.chromium.org/1486303002/

The array reassigning bug is fixed up in:
https://codereview.chromium.org/1489883002/

Powered by Google App Engine
This is Rietveld 408576698