DescriptionGN: 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 #
Depends on Patchset: Messages
Total messages: 23 (3 generated)
|