| 1 |
Smaller templates for project stuff. |
| 2 |
|
| 3 |
Regenerate them using "make" in this dir. This generates xxx.inc files from xxx, |
| 4 |
using file_to_pascal_string --- a trivial program |
| 5 |
that is part of pasdoc ( https://github.com/pasdoc/pasdoc/wiki ) project, see |
| 6 |
https://github.com/pasdoc/pasdoc/blob/master/source/tools/file_to_pascal_string.dpr . |
| 7 |
The resulting xxx.inc files are then compiled-in in the build tool binary. |
| 8 |
|
| 9 |
Note that "larger templates" are in ../data/ directory, not here, |
| 10 |
and they are not compiled-in. Instead, they are simply loaded, at runtime, |
| 11 |
by the build tool (from it's castle-data:/ path). |
| 12 |
|
| 13 |
How do we decide which templates go here (small) |
| 14 |
and which to ../data/ directory (large)? |
| 15 |
|
| 16 |
- Like the name suggests, larger templates (like Android "integrated" template) |
| 17 |
should go to "large" templates dir, as it's just more convenient to manage |
| 18 |
larger structure of files/dirs there. |
| 19 |
(no need to regenerate their .inc files, and the user can change the templates |
| 20 |
without recompiling build tool). |
| 21 |
|
| 22 |
- However, the templates in ../data/ only work when castle-data:/ is correct. |
| 23 |
We make every effort to make it correct, but it's impossible to make it 100% |
| 24 |
magically always work. |
| 25 |
|
| 26 |
So "crucial" stuff, especially required during "compile" stage (not only |
| 27 |
during "package" stage), can go to "smaller" templates dir here. |
| 28 |
Right now this is the case for Windows manifest stuff and |
| 29 |
"castle-engine-output" warning. |
| 30 |
|