Enhance build process #994

Closed
SidharthGuglani-zz wants to merge 1 commits from export-D20808623 into master
SidharthGuglani-zz commented 2020-04-06 02:16:45 -07:00 (Migrated from github.com)

Summary:
After building yoga aar, we found several issues:

  1. More dynamic so files. This is bad as lower-end Android devices cannot load that many sos.
  2. Size increase.
  3. (Minor) The libs are stored in asset folder rather than "libs/".

We apply the following optimizations:

  1. Remove dependency on memalign16 (this is brought in by a pure header dependency jni-hack);
  2. Enable native relinker to remove unused symbols in the so files.
  3. Link yogacore statically to reduce size churn.

Differential Revision: D20808623

Summary: After building yoga aar, we found several issues: 1. More dynamic so files. This is bad as lower-end Android devices cannot load that many sos. 2. Size increase. 3. (Minor) The libs are stored in asset folder rather than "libs/". We apply the following optimizations: 1. Remove dependency on memalign16 (this is brought in by a pure header dependency jni-hack); 2. Enable native relinker to remove unused symbols in the so files. 3. Link yogacore statically to reduce size churn. Differential Revision: D20808623
facebook-github-bot commented 2020-04-06 02:17:04 -07:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D20808623

This pull request was **exported** from Phabricator. Differential Revision: [D20808623](https://phabricator.intern.facebook.com/D20808623)
facebook-github-bot commented 2020-04-06 13:38:12 -07:00 (Migrated from github.com)

This pull request has been merged in facebook/yoga@5eba2d42bd.

This pull request has been merged in facebook/yoga@5eba2d42bd6fde1092439cbc3388ae0a3cc561d9.

Pull request closed

Sign in to join this conversation.
No description provided.