Lines Matching full:target
124 # parse and add each target
136 cfgTarget.target = parseTarget(os.path.join(replyDir, cfgTarget.jsonFile))
138 cfgTarget.target = None
149 target = zspdx.cmakefileapi.Target()
151 target.name = js.get("name", "")
152 target.id = js.get("id", "")
153 target.type = parseTargetType(js.get("type", "UNKNOWN"))
154 target.backtrace = js.get("backtrace", -1)
155 target.folder = js.get("folder", "")
159 target.paths_source = paths_dict.get("source", "")
160 target.paths_build = paths_dict.get("build", "")
162 target.nameOnDisk = js.get("nameOnDisk", "")
166 target.artifacts = []
170 target.artifacts.append(artifact_path)
172 target.isGeneratorProvided = js.get("isGeneratorProvided", False)
175 parseTargetInstall(target, js)
176 parseTargetLink(target, js)
177 parseTargetArchive(target, js)
178 parseTargetDependencies(target, js)
179 parseTargetSources(target, js)
180 parseTargetSourceGroups(target, js)
181 parseTargetCompileGroups(target, js)
182 parseTargetBacktraceGraph(target, js)
184 return target
209 def parseTargetInstall(target, js): argument
214 target.install_prefix = prefix_dict.get("path", "")
221 target.install_destinations.append(dest)
223 def parseTargetLink(target, js): argument
227 target.link_language = link_dict.get("language", {})
228 target.link_lto = link_dict.get("lto", False)
230 target.link_sysroot = sysroot_dict.get("path", "")
237 target.link_commandFragments.append(fragment)
239 def parseTargetArchive(target, js): argument
243 target.archive_lto = archive_dict.get("lto", False)
250 target.archive_commandFragments.append(fragment)
252 def parseTargetDependencies(target, js): argument
258 target.dependencies.append(dep)
260 def parseTargetSources(target, js): argument
269 target.sources.append(src)
271 def parseTargetSourceGroups(target, js): argument
277 target.sourceGroups.append(srcgrp)
279 def parseTargetCompileGroups(target, js): argument
315 target.compileGroups.append(cmpgrp)
317 def parseTargetBacktraceGraph(target, js): argument
321 target.backtraceGraph_commands = backtraceGraph_dict.get("commands", [])
322 target.backtraceGraph_files = backtraceGraph_dict.get("files", [])
331 target.backtraceGraph_nodes.append(node)
403 # and link target's sources and source groups
404 for ts in cfgTarget.target.sources:
405 linkTargetSource(cfgTarget.target, ts)
406 for tsg in cfgTarget.target.sourceGroups:
407 linkTargetSourceGroup(cfgTarget.target, tsg)
408 for tcg in cfgTarget.target.compileGroups:
409 linkTargetCompileGroup(cfgTarget.target, tcg)
412 # takes: Target and TargetSource
413 def linkTargetSource(target, targetSrc): argument
417 targetSrc.compileGroup = target.compileGroups[targetSrc.compileGroupIndex]
422 targetSrc.sourceGroup = target.sourceGroups[targetSrc.sourceGroupIndex]
425 # takes: Target and TargetSourceGroup
426 def linkTargetSourceGroup(target, targetSrcGrp): argument
429 targetSrcGrp.sources.append(target.sources[srcIndex])
432 # takes: Target and TargetCompileGroup
433 def linkTargetCompileGroup(target, targetCmpGrp): argument
436 targetCmpGrp.sources.append(target.sources[srcIndex])