Lines Matching defs:json

38 This program expects to find a file named "known-good.json" in the
108 marked as optional. Please see the "known_good.json" file for
236 import json
248 KNOWN_GOOD_FILE_NAME = 'known_good.json'
318 def __init__(self, json, args):
322 'json': A fully populated JSON object describing the repo.
325 self._json = json
328 self.name = json['name']
329 self.url = json['url']
330 self.sub_dir = json['sub_dir']
331 self.commit = json['commit']
335 if json.get('build_dir'):
336 self.build_dir = os.path.normpath(json['build_dir'])
337 if json.get('install_dir'):
338 self.install_dir = os.path.normpath(json['install_dir'])
339 self.deps = json['deps'] if ('deps' in json) else []
340 self.prebuild = json['prebuild'] if ('prebuild' in json) else []
341 self.prebuild_linux = json['prebuild_linux'] if (
342 'prebuild_linux' in json) else []
343 self.prebuild_windows = json['prebuild_windows'] if (
344 'prebuild_windows' in json) else []
345 self.custom_build = json['custom_build'] if ('custom_build' in json) else []
346 self.cmake_options = json['cmake_options'] if (
347 'cmake_options' in json) else []
348 self.ci_only = json['ci_only'] if ('ci_only' in json) else []
349 self.build_step = json['build_step'] if ('build_step' in json) else 'build'
350 self.build_platforms = json['build_platforms'] if ('build_platforms' in json) else []
351 self.optional = set(json.get('optional', []))
352 self.api = json['api'] if ('api' in json) else None
579 for repo in json.loads(known_good.read())['repos']
597 install_info = json.loads(known_good.read())
613 this dictionary is kept with the repo via the json file.
635 help="Specify directory for known_good.json file.")
803 # Need to restore original cwd in order for CreateHelper to find json file