File: list_system_libs.py

package info (click to toggle)
openmsx 0.10.1-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,628 kB
  • ctags: 19,723
  • sloc: cpp: 131,938; xml: 25,418; tcl: 15,394; python: 4,012; sh: 365; makefile: 26
file content (21 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Prints the Make names of those libraries that are present in the base OS.

from libraries import librariesByName

def main(platform):
	systemLibs = set(
		name
		for name, library in librariesByName.iteritems()
		if library.isSystemLibrary(platform)
		)
	print ' '.join(sorted(systemLibs))

if __name__ == '__main__':
	import sys
	if len(sys.argv) == 2:
		main(*sys.argv[1 : ])
	else:
		print >> sys.stderr, (
			'Usage: python list_system_libs.py TARGET_OS'
			)
		sys.exit(2)