list_system_libs.py 480 B

12345678910111213141516171819202122
  1. # Prints the Make names of those libraries that are present in the base OS.
  2. from libraries import librariesByName
  3. def main(platform):
  4. systemLibs = set(
  5. name
  6. for name, library in librariesByName.iteritems()
  7. if library.isSystemLibrary(platform)
  8. )
  9. print ' '.join(sorted(systemLibs))
  10. if __name__ == '__main__':
  11. import sys
  12. if len(sys.argv) == 2:
  13. main(*sys.argv[1 : ])
  14. else:
  15. print >> sys.stderr, (
  16. 'Usage: python list_system_libs.py TARGET_OS'
  17. )
  18. sys.exit(2)