~ubuntu-branches/ubuntu/saucy/xmms2/saucy-proposed

« back to all changes in this revision

Viewing changes to src/plugins/faad/wscript

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2009-05-02 08:31:32 UTC
  • mto: (1.1.6 upstream) (6.1.3 sid)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090502083132-y0ulwiqbk4lxfd4z
ImportĀ upstreamĀ versionĀ 0.6DrMattDestruction

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from waftools.plugin import plugin
2
2
 
3
3
def plugin_configure(conf):
4
 
    if not conf.check_header("faad.h"):
5
 
        return False
6
 
    return conf.check_library2("faad", uselib='faad', mandatory=0)
 
4
    if not conf.check_cc(lib="m", uselib_store="math"):
 
5
        return False
 
6
    if not conf.check_cc(header_name="faad.h"):
 
7
        return False
 
8
    if not conf.check_cc(lib="faad", uselib="math", uselib_store="faad"):
 
9
        return False
 
10
    return True
7
11
 
8
 
configure, build = plugin('faad', configure=plugin_configure,
9
 
                          source="faad.c",
10
 
                          needs_lib=True)
 
12
configure, build = plugin("faad", configure=plugin_configure,
 
13
                          source="faad.c", libs=["faad", "math"])