list_system_libs.py 471 B

1234567891011121314151617181920
  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.items()
  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('Usage: python3 list_system_libs.py TARGET_OS', file=sys.stderr)
  16. sys.exit(2)