Exemple #1
0
    def __init__(self,
                 output_dir,
                 root,
                 project_dirs,
                 root_manifest,
                 app,
                 platforms,
                 doc=None,
                 release=False,
                 verbose=False,
                 jobs=1,
                 cache_dir=".cache",
                 old_parser=False):
        self.cache = Cache(cache_dir, old_parser)
        self.root = root
        self.output_dir = output_dir
        self.project_dirs = project_dirs
        self.root_manifest = root_manifest
        self.app = app
        self.documentation = None
        self.strict = root_manifest.strict
        self.release = release
        self.verbose = verbose
        self.jobs = int(jobs) if jobs is not None else cpu_count()
        self.component_path_map = {}
        self.platforms = platforms

        if self.verbose:
            print('running using %d jobs' % self.jobs, file=sys.stderr)

        with open(os.path.join(root, 'partners.json'), encoding='utf-8') as f:
            self.partners = json.load(f)

        self.documentation = compiler.doc.json.Documentation(
            doc) if doc else None
Exemple #2
0
	def __init__(self, output_dir, root, project_dirs, root_manifest, app, strict = True, use_prefix = False, doc = None, doc_format = None, release = False, verbose = False, jobs = 1):
		self.cache = Cache()
		self.root = root
		self.output_dir = output_dir
		self.project_dirs = project_dirs
		self.root_manifest = root_manifest
		self.app = app
		self.documentation = None
		self.strict = strict
		self.use_prefix = use_prefix
		self.release = release
		self.verbose = verbose
		self.jobs = int(jobs) if jobs is not None else cpu_count()

		if self.verbose:
			print 'running using %d jobs' %self.jobs

		with open(os.path.join(root, 'partners.json')) as f:
			self.partners = json.load(f)

		if doc_format == "qml":
		    self.documentation = compiler.doc.qml.Documentation(doc) if doc else None
		elif doc_format == "json":
		    self.documentation = compiler.doc.json.Documentation(doc) if doc else None
		else:
		    self.documentation = compiler.doc.md.Documentation(doc) if doc else None
Exemple #3
0
    def __init__(self,
                 output_dir,
                 root,
                 project_dirs,
                 root_manifest,
                 app,
                 doc=None,
                 release=False,
                 verbose=False,
                 jobs=1):
        self.cache = Cache()
        self.root = root
        self.output_dir = output_dir
        self.project_dirs = project_dirs
        self.root_manifest = root_manifest
        self.app = app
        self.documentation = None
        self.strict = root_manifest.strict
        self.release = release
        self.verbose = verbose
        self.jobs = int(jobs) if jobs is not None else cpu_count()
        self.component_path_map = {}

        if self.verbose:
            print 'running using %d jobs' % self.jobs

        with open(os.path.join(root, 'partners.json')) as f:
            self.partners = json.load(f)

        self.documentation = compiler.doc.json.Documentation(
            doc) if doc else None