~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-security

« back to all changes in this revision

Viewing changes to mozilla/config/expandlibs_gen.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-04-30 01:11:42 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20120430011142-3hdy7lx3odmsjdv2
Tags: 1.4+build1-0ubuntu0.11.10.2
* New upstream stable release (CALENDAR_1_4_BUILD1)
  - LP: #987305
* Fix build with unversioned SDK path
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
import sys
42
42
import os
43
43
import expandlibs_config as conf
44
 
from expandlibs import LibDescriptor
 
44
from expandlibs import LibDescriptor, isObject
45
45
 
46
46
def generate(args):
47
47
    desc = LibDescriptor()
48
48
    for arg in args:
49
 
        if os.path.splitext(arg)[1] in [conf.OBJ_SUFFIX, '.i_o']:
 
49
        if isObject(arg):
50
50
            desc['OBJS'].append(os.path.abspath(arg))
51
51
        elif os.path.splitext(arg)[1] == conf.LIB_SUFFIX and \
52
52
             (os.path.exists(arg) or os.path.exists(arg + conf.LIBS_DESC_SUFFIX)):