(self, target: build.CustomTarget)
return srcs
Custom target sources can be of various object types; strings, File,
        BuildTarget, even other CustomTargets.
        Returns the path to them relative to the build root directory.
Custom target sources can be of various object types; strings, File,
        BuildTarget, even other CustomTargets.
        Returns the path to them relative to the build root directory.
Custom target sources can be of various object types ; strings File BuildTarget even other CustomTargets . Returns the path to them relative to the build root directory .
def get_custom_target_sources(self, target: build.CustomTarget) -> T.List[str]:
        '''
        Custom target sources can be of various object types; strings, File,
        BuildTarget, even other CustomTargets.
        Returns the path to them relative to the build root directory.
        '''
        srcs: T.List[str] = []
        for i in target.get_sources():
            if isinstance(i, str):
                fname = [os.path.join(self.build_to_src, target.subdir, i)]
            elif isinstance(i, build.BuildTarget):
                fname = [self.get_target_filename(i)]
            elif isinstance(i, (build.CustomTarget, build.CustomTargetIndex)):
                fname = [os.path.join(self.get_custom_target_output_dir(i), p) for p in i.get_outputs()]
            elif isinstance(i, build.GeneratedList):
                fname = [os.path.join(self.get_target_private_dir(target), p) for p in i.get_outputs()]
            elif isinstance(i, build.ExtractedObjects):
                outputs = i.get_outputs(self)
                fname = self.get_extracted_obj_paths(i.target, outputs)
            else:
                fname = [i.rel_to_builddir(self.build_to_src)]
            if target.absolute_paths:
                fname = [os.path.join(self.environment.get_build_dir(), f) for f in fname]
            srcs += fname
        return srcs
def get_custom_target_sources ( self , target : build . CustomTarget ) -> T . List [ str ] : srcs : T . List [ str ] = [ ] for i in target . get_sources ( ) : if isinstance ( i , str ) : fname = [ os . path . join ( self . build_to_src , target . subdir , i ) ] elif isinstance ( i , build . BuildTarget ) : fname = [ self . get_target_filename ( i ) ] elif isinstance ( i , ( build . CustomTarget , build . CustomTargetIndex ) ) : fname = [ os . path . join ( self . get_custom_target_output_dir ( i ) , p ) for p in i . get_outputs ( ) ] elif isinstance ( i , build . GeneratedList ) : fname = [ os . path . join ( self . get_target_private_dir ( target ) , p ) for p in i . get_outputs ( ) ] elif isinstance ( i , build . ExtractedObjects ) : outputs = i . get_outputs ( self ) fname = self . get_extracted_obj_paths ( i . target , outputs ) else : fname = [ i . rel_to_builddir ( self . build_to_src ) ] if target . absolute_paths : fname = [ os . path . join ( self . environment . get_build_dir ( ) , f ) for f in fname ] srcs += fname return srcs