~ubuntu-branches/ubuntu/trusty/ldb/trusty-proposed

« back to all changes in this revision

Viewing changes to buildtools/wafadmin/3rdparty/fluid.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-02-07 16:04:26 UTC
  • mfrom: (1.3.11)
  • Revision ID: package-import@ubuntu.com-20120207160426-hz17vq8gs1epwkf2
Tags: 1:1.1.4+git20120206-1
* New upstream snapshot.
 + Extracts waf source code. Closes: #654482
 + Disable tdb2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# encoding: utf-8
 
3
# Grygoriy Fuchedzhy 2009
 
4
 
 
5
"""
 
6
Compile fluid files (fltk graphic library). Use the 'fluid' feature in conjuction with the 'cxx' feature.
 
7
"""
 
8
 
 
9
import Task
 
10
from TaskGen import extension
 
11
 
 
12
Task.simple_task_type('fluid', '${FLUID} -c -o ${TGT[0].abspath(env)} -h ${TGT[1].abspath(env)} ${SRC}', 'BLUE', shell=False, ext_out='.cxx')
 
13
 
 
14
@extension('.fl')
 
15
def fluid(self, node):
 
16
        """add the .fl to the source list; the cxx file generated will be compiled when possible"""
 
17
        cpp = node.change_ext('.cpp')
 
18
        hpp = node.change_ext('.hpp')
 
19
        self.create_task('fluid', node, [cpp, hpp])
 
20
 
 
21
        if 'cxx' in self.features:
 
22
                self.allnodes.append(cpp)
 
23
 
 
24
def detect(conf):
 
25
    fluid = conf.find_program('fluid', var='FLUID', mandatory=True)
 
26
    conf.check_cfg(path='fltk-config', package='', args='--cxxflags --ldflags', uselib_store='FLTK', mandatory=True)
 
27