features-manx.py 252 B

12345678910
  1. #! /usr/bin/python
  2. import sys
  3. os = sys.argv[1]
  4. gypi_file = "../../../Tools/manx/common_%s.gypi" % os
  5. dict = eval(open(gypi_file).read())
  6. features = filter((lambda s: s.find("=1") != -1), dict["variables"]["feature_defines"])
  7. print " ".join(features)