Bug 935881 - Make libxul's LIBRARY_NAME 'xul' on mac. r=gps
Bug 935881 - Add a FINAL_LIBRARY variable to use in moz.build. r=gps

This will be used to declare in what shared library or intermediate static
library objects are going to be linked into.
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps
Bug 935881 - Remove SHARED_LIBRARY_LIBS handling for moz.build. r=gps
Bug 939039 - Make FINAL_LIBRARY imply FORCE_STATIC_LIB. r=gps

This also moves the LIBXUL_LIBRARY implies FORCE_STATIC_LIB test in the emitter
instead of config.mk, since both variables are defined in moz.build exclusively.
backend.mk can end up with both LIBXUL_LIBRARY and FORCE_STATIC_LIB defined, but
it's just fine.
Bug 939039 - Remove now useless FORCE_STATIC_LIB definitions. r=gps
Bug 939042 - Remove library building related variables in directories that build no C/C++ sources. r=mshal
Bug 939044 - Remove the last uses of the MODULE variable in makefiles. r=gps
Bug 939044 - Remove most definitions of MODULE. r=mshal
Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal
Bug 939044 - Make the build frontend and backend forget about MODULE. r=gps
Bug 914245 - Move FORCE_SHARED_LIB to moz.build. r=mshal
Bug 939071 - Kill SHORT_LIBNAME. r=ted
Bug 939622 - Remove LIBXUL_LIBRARY for intermediate libs that end up in gkmedias. r=gps

What LIBXUL_LIBRARY does is:
  - Imply FORCE_STATIC_LIB
  - Build with -DIMPL_LIBXUL
  - Build with -DMOZILLA_INTERNAL_API

Those intermediate libs that end up in gkmedias and have LIBXUL_LIBRARY defined
in their moz.build are all third party code (or handled like third party code).
Besides FORCE_STATIC_LIB, none of the side effects of LIBXUL_LIBRARY should be
needed.
Bug 939074 - Infer LIBXUL_LIBRARY from FINAL_LIBRARY. r=gps
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps
Bug 939632 - Allow LIBRARY_NAME to be omitted when FINAL_LIBRARY is defined. r=gps
Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps

Landing on a CLOSED TREE.