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 | |
---|
11 | import "class" : new ; |
---|
12 | |
---|
13 | import type ; |
---|
14 | import generators ; |
---|
15 | import common ; |
---|
16 | |
---|
17 | type.register FORTRAN : f ; |
---|
18 | |
---|
19 | class 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 | |
---|
27 | rule 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".) |
---|
35 | IMPORT $(__name__) : register-fortran-compiler : : generators.register-fortran-compiler ; |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.