targets/toolchain_gcc.py
author laurent
Mon, 07 Dec 2009 14:43:27 +0100
changeset 472 80eb3bde98e3
parent 427 7ac746c07ff2
child 510 8038c08b9874
permissions -rwxr-xr-x
Adding support for defining input and output with the same location in LPCBeremiz
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
     1
import os, re, operator
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     2
from wxPopen import ProcessLogger
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     3
import hashlib
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     4
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
     5
includes_re =  re.compile('\s*#include\s*["<]([^">]*)[">].*')
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
     6
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     7
class toolchain_gcc():
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     8
    """
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     9
    This abstract class contains GCC specific code.
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    10
    It cannot be used as this and should be inherited in a target specific
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    11
    class such as target_linux or target_win32
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    12
    """
323
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
    13
    def __init__(self, PluginsRootInstance):
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
    14
        self.PluginsRootInstance = PluginsRootInstance
427
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    15
        self.buildpath = None
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    16
        self.SetBuildPath(self.PluginsRootInstance._getBuildPath())
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    17
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    18
    def getTarget(self):
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    19
        target = self.PluginsRootInstance.BeremizRoot.getTargetType()
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    20
        if target.getcontent() is None:
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    21
            target = self.PluginsRootInstance.GetDefaultTarget()
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    22
        return target
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    23
297
8fca8b555808 Fixed typo in (LD/C)FLAGS hendling in toolchain_gcc.py
etisserant
parents: 290
diff changeset
    24
    def getBuilderCFLAGS(self):
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    25
        """
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    26
        Returns list of builder specific CFLAGS
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    27
        """
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    28
        return [self.getTarget().getcontent()["value"].getCFLAGS()]
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    29
297
8fca8b555808 Fixed typo in (LD/C)FLAGS hendling in toolchain_gcc.py
etisserant
parents: 290
diff changeset
    30
    def getBuilderLDFLAGS(self):
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    31
        """
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    32
        Returns list of builder specific LDFLAGS
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    33
        """
323
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
    34
        return self.PluginsRootInstance.LDFLAGS + \
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    35
               [self.getTarget().getcontent()["value"].getLDFLAGS()]
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    36
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    37
    def GetBinaryCode(self):
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    38
        try:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    39
            return open(self.exe_path, "rb").read()
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    40
        except Exception, e:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    41
            return None
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    42
        
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    43
    def _GetMD5FileName(self):
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    44
        return os.path.join(self.buildpath, "lastbuildPLC.md5")
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    45
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    46
    def GetBinaryCodeMD5(self):
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    47
        if self.md5key is not None:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    48
            return self.md5key
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    49
        else:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    50
            try:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    51
                return open(self._GetMD5FileName(), "r").read()
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    52
            except Exception, e:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    53
                return None
427
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    54
    
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    55
    def SetBuildPath(self, buildpath):
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    56
        if self.buildpath != buildpath:
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    57
            self.buildpath = buildpath
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    58
            self.exe = self.PluginsRootInstance.GetProjectName() + self.extension
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    59
            self.exe_path = os.path.join(self.buildpath, self.exe)
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    60
            self.md5key = None
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    61
            self.srcmd5 = {}
7ac746c07ff2 Check ProjectPath write permission
greg
parents: 421
diff changeset
    62
    
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    63
    def check_and_update_hash_and_deps(self, bn):
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    64
        # Get latest computed hash and deps
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    65
        oldhash, deps = self.srcmd5.get(bn,(None,[]))
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    66
        # read source
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    67
        src = open(os.path.join(self.buildpath, bn)).read()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    68
        # compute new hash
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    69
        newhash = hashlib.md5(src).hexdigest()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    70
        # compare
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    71
        match = (oldhash == newhash)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    72
        if not match:
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    73
            # file have changed
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    74
            # update direct dependencies
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    75
            deps = []
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    76
            for l in src.splitlines():
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    77
                res = includes_re.match(l)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    78
                if res is not None:
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    79
                    depfn = res.groups()[0]
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    80
                    if os.path.exists(os.path.join(self.buildpath, depfn)):
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    81
                        #print bn + " depends on "+depfn
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    82
                        deps.append(depfn)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    83
            # store that hashand deps
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    84
            self.srcmd5[bn] = (newhash, deps)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    85
        # recurse through deps
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    86
        # TODO detect cicular deps.
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
    87
        return reduce(operator.and_, map(self.check_and_update_hash_and_deps, deps), match)
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    88
                
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    89
    def build(self):
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    90
        # Retrieve toolchain user parameters
411
8261c8f1e365 Bug on Debug trying to start (and stop) before PLC started fixed.
laurent
parents: 361
diff changeset
    91
        toolchain_params = self.getTarget().getcontent()["value"]
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    92
        self.compiler = toolchain_params.getCompiler()
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    93
        self.linker = toolchain_params.getLinker()
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    94
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
    95
        Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS())
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    96
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    97
        ######### GENERATE OBJECT FILES ########################################
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    98
        obns = []
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
    99
        objs = []
323
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
   100
        relink = False
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
   101
        for Location, CFilesAndCFLAGS, DoCalls in self.PluginsRootInstance.LocationCFilesAndCFLAGS:
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   102
            if Location:
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   103
                self.PluginsRootInstance.logger.write(_("Plugin : ") + self.PluginsRootInstance.GetChildByIECLocation(Location).GetCurrentName() + " " + str(Location)+"\n")
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   104
            else:
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   105
                self.PluginsRootInstance.logger.write(_("PLC :\n"))
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   106
                
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   107
            for CFile, CFLAGS in CFilesAndCFLAGS:
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   108
                bn = os.path.basename(CFile)
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   109
                obn = os.path.splitext(bn)[0]+".o"
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   110
                objectfilename = os.path.splitext(CFile)[0]+".o"
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   111
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   112
                match = self.check_and_update_hash_and_deps(bn)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   113
                
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   114
                if match:
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   115
                    self.PluginsRootInstance.logger.write("   [pass]  "+bn+" -> "+obn+"\n")
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   116
                else:
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   117
                    relink = True
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   118
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   119
                    self.PluginsRootInstance.logger.write("   [CC]  "+bn+" -> "+obn+"\n")
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   120
                    
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   121
                    status, result, err_result = ProcessLogger(
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   122
                           self.PluginsRootInstance.logger,
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   123
                           "\"%s\" -c \"%s\" -o \"%s\" %s %s"%
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
   124
                               (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   125
                           ).spin()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   126
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   127
                    if status :
323
9f07f0d429df Fix bug preventing library to re-compiled when dependant files changed.
lbessard
parents: 297
diff changeset
   128
                        self.srcmd5.pop(bn)
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   129
                        self.PluginsRootInstance.logger.write_error(_("C compilation of %s failed.\n")%bn)
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   130
                        return False
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   131
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   132
                obns.append(obn)
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   133
                objs.append(objectfilename)
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   134
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   135
        ######### GENERATE library FILE ########################################
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   136
        # Link all the object files into one binary file
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   137
        self.PluginsRootInstance.logger.write(_("Linking :\n"))
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   138
        if relink:
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   139
            objstring = []
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   140
    
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   141
            # Generate list .o files
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   142
            listobjstring = '"' + '"  "'.join(objs) + '"'
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   143
    
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 285
diff changeset
   144
            ALLldflags = ' '.join(self.getBuilderLDFLAGS())
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   145
    
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   146
            self.PluginsRootInstance.logger.write("   [CC]  " + ' '.join(obns)+" -> " + self.exe + "\n")
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   147
    
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   148
            status, result, err_result = ProcessLogger(
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   149
                   self.PluginsRootInstance.logger,
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   150
                   "\"%s\" %s -o \"%s\" %s"%
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   151
                       (self.linker,
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   152
                        listobjstring,
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   153
                        self.exe_path,
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   154
                        ALLldflags)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   155
                   ).spin()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   156
            
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   157
            if status :
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   158
                return False
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   159
            else :
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   160
                # Calculate md5 key and get data for the new created PLC
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   161
                data=self.GetBinaryCode()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   162
                self.md5key = hashlib.md5(data).hexdigest()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   163
    
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   164
                # Store new PLC filename based on md5 key
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   165
                f = open(self._GetMD5FileName(), "w")
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   166
                f.write(self.md5key)
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   167
                f.close()
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   168
        else:
421
c9ec111ad275 Bugs with logger and stand-alone PluginRoot fixed
laurent
parents: 411
diff changeset
   169
            self.PluginsRootInstance.logger.write("   [pass]  " + ' '.join(obns)+" -> " + self.exe + "\n")
285
e5782a52dcea Added local C dependency dicovery and changes checking, to speed up build.
etisserant
parents: 203
diff changeset
   170
            
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   171
        
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   172
        return True
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
   173