예제 #1
0
    def relative_to(self, base, dot=False):
        for field in [
            "inc_dirs",
            "headers",
            "s_sources",
            "c_sources",
            "cpp_sources",
            "lib_dirs",
            "objects",
            "libraries",
            "lib_builds",
            "lib_refs",
            "repo_dirs",
            "repo_files",
            "hex_files",
            "bin_files",
            "json_files",
        ]:
            v = [rel_path(f, base, dot) for f in getattr(self, field)]
            setattr(self, field, v)

        for f in self.features:
            self.features[f] = rel_path(self.features[f], base, dot)

        if self.linker_script is not None:
            self.linker_script = rel_path(self.linker_script, base, dot)
예제 #2
0
파일: __init__.py 프로젝트: jaustin/mbed
 def relative_to(self, base, dot=False):
     for field in ['inc_dirs', 'headers', 's_sources', 'c_sources',
                   'cpp_sources', 'lib_dirs', 'objects', 'libraries',
                   'lib_builds', 'lib_refs', 'repo_dirs', 'repo_files',
                   'hex_files', 'bin_files', 'json_files']:
         v = [rel_path(f, base, dot) for f in getattr(self, field)]
         setattr(self, field, v)
     if self.linker_script is not None:
         self.linker_script = rel_path(self.linker_script, base, dot)
예제 #3
0
 def relative_to(self, base, dot=False):
     for field in [
             'inc_dirs', 'headers', 's_sources', 'c_sources', 'cpp_sources',
             'lib_dirs', 'objects', 'libraries', 'lib_builds', 'lib_refs',
             'repo_dirs', 'repo_files', 'hex_files', 'bin_files',
             'json_files'
     ]:
         v = [rel_path(f, base, dot) for f in getattr(self, field)]
         setattr(self, field, v)
     if self.linker_script is not None:
         self.linker_script = rel_path(self.linker_script, base, dot)