MCPcopy Create free account
hub / github.com/nodejs/node / BuildTarget

Method BuildTarget

deps/v8/tools/cppgc/gen_cmake.py:320–329  ·  view source on GitHub ↗
(self, target_type, target, rules)

Source from the content-addressed store, hash-verified

318 self.result.append("\ninstall(TARGETS cppgc)")
319
320 def BuildTarget(self, target_type, target, rules):
321 # Don't generate CMake targets yet, defer it to build_epilogue.
322 comment = f"""
323#===============================================================================
324# {self._CMakeTarget(target)} sources.
325#==============================================================================="""
326 self.result.append(comment)
327 self.result.extend(rules)
328 self.source_sets.setdefault(
329 TARGETS[target], []).append('${' + self._SourceVar(target) + '}')
330
331 def BuildSourcesList(self, target, sources):
332 sources = self._ExpandSources(target, sources)

Callers 1

_TargetMethod · 0.80

Calls 5

_CMakeTargetMethod · 0.95
_SourceVarMethod · 0.95
appendMethod · 0.45
extendMethod · 0.45
setdefaultMethod · 0.45

Tested by

no test coverage detected