Debian Codegraph @

tools/build-tool/data/custom_editor_template/castleeditorcustomcomponents.pas

raw
1 (* Include editor_units defined in CastleEngineManifest.xml.
2
3 We include units this way, through a unit (not by referencing them in lpk),
4 because referencing units in lpk would require to determine their filenames
5 (case, Pascal extension).
6 E.g. we would need to clarify in lpk whether FooBar unit is in
7 foobar.pas, FooBar.pas, foobar.pp and so on.
8 And we don't have this information defined in CastleEngineManifest.xml
9 (and we don't need it, FPC can figure it out on it's own).
10
11 We include units inside a package castle_editor_automatic_package.lpk,
12 not directly inside castle_editor.lpi.
13 This way castle_editor_automatic_package.lpk can use ${EXTRA_COMPILER_OPTIONS}
14 (for example, if you define -Mdelphi in CastleEngineManifest.xml, it will work
15 correctly; even though the castle_editor code still uses ObjFpc mode).
16 *)
17 unit CastleEditorCustomComponents;
18
19 interface
20
21 uses ${EDITOR_UNITS};
22
23 implementation
24
25 uses CastleComponentSerialize;
26
27 initialization
28 InternalCustomComponentsForProject := '${NAME}';
29 end.