OXYGENHUB
◆ main openmsx / build / list_system_libs.py
471 B · Python · last changed chore(): initial commit 1 month ago source blame history raw
1
# Prints the Make names of those libraries that are present in the base OS.
2
3
from libraries import librariesByName
4
5
def main(platform):
6
	systemLibs = set(
7
		name
8
		for name, library in librariesByName.items()
9
		if library.isSystemLibrary(platform)
10
		)
11
	print(' '.join(sorted(systemLibs)))
12
13
if __name__ == '__main__':
14
	import sys
15
	if len(sys.argv) == 2:
16
		main(*sys.argv[1 : ])
17
	else:
18
		print('Usage: python3 list_system_libs.py TARGET_OS', file=sys.stderr)
19
		sys.exit(2)