Mercurial > projects > doodle
comparison builder.d @ 95:85589f7a3a28
Changed the builder to ignore all directories named "nobuild".
Removed gl example.
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Thu, 26 Aug 2010 16:14:53 +0930 |
parents | 069ceb9446ad |
children | 0d427170a805 |
comparison
equal
deleted
inserted
replaced
94:deb9d9fae854 | 95:85589f7a3a28 |
---|---|
78 // The dependency rules are: | 78 // The dependency rules are: |
79 // * A built file depends on its sources, and anything the sources explicitly import. | 79 // * A built file depends on its sources, and anything the sources explicitly import. |
80 // * A parent depends on its children, transitively, and everything they depend on, transitively. | 80 // * A parent depends on its children, transitively, and everything they depend on, transitively. |
81 // * Everything depends on the parents and descendants of its explicit imports, | 81 // * Everything depends on the parents and descendants of its explicit imports, |
82 // up to but not including the common ancestor, transitively. | 82 // up to but not including the common ancestor, transitively. |
83 // | |
84 // Directories beginning with '.' or named "nobuild" are ignored. | |
83 // | 85 // |
84 | 86 |
85 | 87 |
86 // TODO - add doc, data | 88 // TODO - add doc, data |
87 // TODO - add timeout on test execution - say 2 seconds. | 89 // TODO - add timeout on test execution - say 2 seconds. |
962 | 964 |
963 // | 965 // |
964 // load local products | 966 // load local products |
965 // | 967 // |
966 foreach (string name; listdir(path)) { | 968 foreach (string name; listdir(path)) { |
967 if (name[0] != '.') { | 969 if (name[0] != '.' && name != "nobuild") { |
968 string p = join(path, name); | 970 string p = join(path, name); |
969 if (isdir(p)) { | 971 if (isdir(p)) { |
970 foreach (node; mChildren) { | 972 foreach (node; mChildren) { |
971 Product existing = cast(Product)node; | 973 Product existing = cast(Product)node; |
972 if (existing && existing.mName == name) { | 974 if (existing && existing.mName == name) { |