Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/tools/fortran.jam @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 1.2 KB
Line 
1# Copyright (C) 2004 Toon Knapen
2#
3#  Use, modification and distribution is subject to the Boost Software
4#  License Version 1.0. (See accompanying file LICENSE_1_0.txt or
5#  http://www.boost.org/LICENSE_1_0.txt)
6
7#
8# This file contains common settings for all fortran tools
9#
10
11import "class" : new ;
12
13import type ;
14import generators ;
15import common ;
16
17type.register FORTRAN : f ;
18
19class fortran-compiling-generator : generator
20{
21    rule __init__ ( id : source-types + : target-types + : requirements * : optional-properties * )
22    {
23        generator.__init__ $(id) : $(source-types) : $(target-types) : $(requirements) : $(optional-properties) ;
24    }
25}
26
27rule register-fortran-compiler ( id : source-types + : target-types + : requirements * : optional-properties * )
28{
29    local g = [ new fortran-compiling-generator $(id) : $(source-types) : $(target-types) : $(requirements) : $(optional-properties) ] ;
30    generators.register $(g) ;
31}
32
33# FIXME: this is ugly, should find a better way (we'd want client code to
34# register all generators as "generator.some-rule", not with "some-module.some-rule".)
35IMPORT $(__name__) : register-fortran-compiler : : generators.register-fortran-compiler ;
36
Note: See TracBrowser for help on using the repository browser.