android: Build against NDK prebuilts, not system libraries.
android: Build against NDK prebuilts, not system libraries.

To allow the chromium WebView to build unbundled, we need to stop
linking to system libraries and instead link to the prebuilt libraries
in the NDK.

All modules compiled for target now specify LOCAL_SDK_VERSION with a
valid version of the SDK (defaulting to 19, the oldest version on which
the WebView builds). This can be overridden with the generator flag
"aosp_sdk_version".

Instead of converting library flags of the form "-lfoo" to entries in
LOCAL_SHARED_LIBRARIES, which causes a dependency on the system version
of the library, simply pass these flags through in ldflags. The NDK
library path is set automatically if LOCAL_SDK_VERSION is defined and
the correct version of these libraries will be found.

BUG=chromium:409851
R=primiano@chromium.org, thakis@chromium.org

Review URL: https://codereview.chromium.org/571053003

git-svn-id: e7e1075985beda50ea81ac4472467b4f6e91fc78@1990 78cadc50-ecff-11dd-a971-7dbc132099af

Jack-Q/GYP-copy,springmeyer/gyp,mgamer/gyp,trafi/gyp,Danath/gyp,azunite/gyp,LazyCodingCat/gyp,Danath/gyp,amoikevin/gyp,clar/gyp,enkripsi/gyp,AWhetter/gyp,dougbeal/gyp,ttyangf/pdfium_gyp,turbulenz/gyp,Danath/gyp,ryfx/gyp,tarc/gyp,dougbeal/gyp,adblockplus/gyp,ryfx/gyp,cchamberlain/gyp,duanhjlt/gyp,openpeer/webrtc-gyp,tarc/gyp,Danath/gyp,bnq4ever/gypgoogle,turbulenz/gyp,Jack-Q/GYP-copy,enkripsi/gyp,trafi/gyp,sdklite/gyp,sport-monkey/GYP,ttyangf/gyp,carlTLR/gyp,Chilledheart/gyp,dougbeal/gyp,bulldy80/gyp_unofficial,ryfx/gyp,azunite/gyp,chromium/gyp,adblockplus/gyp,trafi/gyp,ryfx/gyp,adblockplus/gyp,bnq4ever/gypgoogle,Phuehvk/gyp,LazyCodingCat/gyp,bnq4ever/gypgoogle,msc-/gyp,tarc/gyp,bulldy80/gyp_unofficial,sanyaade-teachings/gyp,turbulenz/gyp,ttyangf/gyp,duanhjlt/gyp,azunite/gyp,springmeyer/gyp,ttyangf/gyp,Danath/gyp,dougbeal/gyp,sport-monkey/GYP,clar/gyp,mgamer/gyp,ttyangf/pdfium_gyp,ttyangf/pdfium_gyp,AWhetter/gyp,azunite/gyp,Jack-Q/GYP-copy,carlTLR/gyp,cysp/gyp,enkripsi/gyp,LazyCodingCat/gyp,AWhetter/gyp,AWhetter/gyp,trafi/gyp,mgamer/gyp,bulldy80/gyp_unofficial,turbulenz/gyp,bulldy80/gyp_unofficial,ryfx/gyp,AWhetter/gyp,Chilledheart/gyp,sdklite/gyp,carlTLR/gyp,openpeer/webrtc-gyp,msc-/gyp,chromium/gyp,amoikevin/gyp,msc-/gyp,sanyaade-teachings/gyp,Chilledheart/gyp,ttyangf/gyp,Jack-Q/GYP-copy,amoikevin/gyp,openpeer/webrtc-gyp,carlTLR/gyp,ttyangf/pdfium_gyp,adblockplus/gyp,dougbeal/gyp,duanhjlt/gyp,msc-/gyp,azunite/gyp_20150930,sanyaade-teachings/gyp,sport-monkey/GYP,duanhjlt/gyp,azunite/gyp,Phuehvk/gyp,sanyaade-teachings/gyp,pandaxcl/gyp,bnq4ever/gypgoogle,mgamer/gyp,duanhjlt/gyp,azunite/gyp_20150930,saghul/gyn,springmeyer/gyp,Jack-Q/GYP-copy,tarc/gyp,Chilledheart/gyp,yjhjstz/gyp,saghul/gyn,saghul/gyn,sport-monkey/GYP,Chilledheart/gyp,clar/gyp,ttyangf/gyp,amoikevin/gyp,Phuehvk/gyp,cysp/gyp,bnoordhuis/gyp,openpeer/webrtc-gyp,Phuehvk/gyp,chromium/gyp,yjhjstz/gyp,chromium/gyp,Phuehvk/gyp,cchamberlain/gyp,cysp/gyp,saghul/gyn,yjhjstz/gyp,sanyaade-teachings/gyp,sdklite/gyp,turbulenz/gyp,cchamberlain/gyp,LazyCodingCat/gyp,sdklite/gyp,pandaxcl/gyp,cysp/gyp,cysp/gyp,amoikevin/gyp,pandaxcl/gyp,yjhjstz/gyp,cchamberlain/gyp,sdklite/gyp,mgamer/gyp,azunite/gyp_20150930,pandaxcl/gyp,bnq4ever/gypgoogle,saghul/gyn,adblockplus/gyp,springmeyer/gyp,bnoordhuis/gyp,clar/gyp,carlTLR/gyp,enkripsi/gyp,bulldy80/gyp_unofficial,ttyangf/pdfium_gyp,openpeer/webrtc-gyp,bnoordhuis/gyp,sport-monkey/GYP,bnoordhuis/gyp,enkripsi/gyp,cchamberlain/gyp,msc-/gyp,azunite/gyp_20150930,tarc/gyp,trafi/gyp,bnoordhuis/gyp,clar/gyp,chromium/gyp,azunite/gyp_20150930,pandaxcl/gyp,springmeyer/gyp,LazyCodingCat/gyp,yjhjstz/gyp