MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / GetDepend

Function GetDepend

tools/building.py:391–407  ·  view source on GitHub ↗
(depend)

Source from the content-addressed store, hash-verified

389 return ''
390
391def GetDepend(depend):
392 building = True
393 if type(depend) == type('str'):
394 if not depend in BuildOptions or BuildOptions[depend] == 0:
395 building = False
396 elif BuildOptions[depend] != '':
397 return BuildOptions[depend]
398
399 return building
400
401 # for list type depend
402 for item in depend:
403 if item != '':
404 if not item in BuildOptions or BuildOptions[item] == 0:
405 building = False
406
407 return building
408
409def LocalOptions(config_filename):
410 from SCons.Script import SCons

Callers 3

PrepareBuildingFunction · 0.70
DefineGroupFunction · 0.70
BuildPackageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected