~ubuntu-branches/ubuntu/wily/xmms2/wily

« back to all changes in this revision

Viewing changes to waftools/pyrexc.py

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2008-05-29 10:14:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080529101425-ycw1nbd980uhvzfp
Tags: 0.4DrKosmos-4ubuntu1
* Merge from debian unstable (LP: #178477), remaining changes:
  - debian/control: Update Maintainer field
  - debian/control: add lpia to xmms2-plugin-alsa supported architectures
* This version reads AAC files (LP: #156359)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
pyrex_str = '${PYREX} ${SRC} -o ${TGT}'
6
6
 
7
7
def pyrex_file(self, node):
8
 
        gentask = self.create_task('pyrexc', nice=1)
9
 
        gentask.set_inputs(node)
10
 
        gentask.set_outputs(node.change_ext('.c'))
 
8
    gentask = self.create_task('pyrexc', nice=1)
 
9
    gentask.set_inputs(node)
 
10
    gentask.set_outputs(node.change_ext('.c'))
11
11
 
12
 
        cctask = self.create_task('cc')
13
 
        cctask.set_inputs(gentask.m_outputs)
14
 
        cctask.set_outputs(node.change_ext('.o'))
 
12
    cctask = self.create_task('cc')
 
13
    cctask.set_inputs(gentask.m_outputs)
 
14
    cctask.set_outputs(node.change_ext('.o'))
15
15
 
16
16
def setup(env):
17
 
        Action.simple_action('pyrexc', pyrex_str, color='BLUE')
18
 
        env.hook('cc', 'PYREX_EXT', pyrex_file)
 
17
    Action.simple_action('pyrexc', pyrex_str, color='BLUE')
 
18
    env.hook('cc', 'PYREX_EXT', pyrex_file)
19
19
 
20
20
def detect(conf):
21
 
                python = conf.find_program('pyrexc', var='PYREX')
22
 
                if not python:
23
 
                        return 0
24
 
                conf.env['PYREX_EXT'] = ['.pyx']
25
 
                return 1
26
 
 
 
21
        python = conf.find_program('pyrexc', var='PYREX')
 
22
        if not python:
 
23
            return 0
 
24
        conf.env['PYREX_EXT'] = ['.pyx']
 
25
        return 1
27
26