OpenLayers OpenLayers

Changeset 1594

Show
Ignore:
Timestamp:
10/05/06 11:53:41 (2 years ago)
Author:
sderle
Message:

Update build tools to make it possible to build a 'lite' version of the single file library.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/build/build.sh

    r1424 r1594  
    1010TOOLS_DIR=../tools 
    1111 
    12 CFG_FILENAME=library.cfg 
     12if [ "$1" != "" ]; then 
     13  CFG_FILENAME="$1.cfg" 
     14else 
     15  CFG_FILENAME=library.cfg 
     16fi 
    1317 
    1418SRC_DIR=../lib 
  • trunk/openlayers/build/library.cfg

    r1436 r1594  
    11[first] 
    2 Prototype.js 
    3 Rico/Corner.js 
    42OpenLayers/SingleFile.js 
    53OpenLayers.js 
     4OpenLayers/BaseTypes.js 
     5Rico/Corner.js 
    66 
    77[last] 
     8 
     9[include] 
    810 
    911[exclude] 
  • trunk/openlayers/tools/mergejs.py

    r1435 r1594  
    124124        self.forceFirst = lines[lines.index("[first]") + 1:lines.index("[last]")] 
    125125 
    126         self.forceLast = lines[lines.index("[last]") + 1:lines.index("[exclude]")] 
    127          
     126        self.forceLast = lines[lines.index("[last]") + 1:lines.index("[include]")] 
     127        self.include =  lines[lines.index("[include]") + 1:lines.index("[exclude]")] 
    128128        self.exclude =  lines[lines.index("[exclude]") + 1:] 
    129129 
     
    151151        cfg = Config(filename) 
    152152 
     153    print cfg.include 
    153154    allFiles = [] 
    154155 
     
    158159        if filename.endswith(SUFFIX_JAVASCRIPT) and not filename.startswith("."): 
    159160        filepath = os.path.join(root, filename)[len(sourceDirectory)+1:] 
    160         if (not cfg) or (filepath not in cfg.exclude): 
     161                if cfg and cfg.include: 
     162                    if filepath in cfg.include or filepath in cfg.forceFirst: 
     163                        allFiles.append(filepath) 
     164                elif (not cfg) or (filepath not in cfg.exclude): 
    161165            allFiles.append(filepath) 
    162166