<<
path:
root/public/jinit.git/html/templates/lib/rules_lib.jai
blob: 1923ae9bb1198b6dfa1dddd1a3a2d89561e6f3c7
[raw]
[clear marker]
2If you're looking the first time into those files, I recommend
3to view the documentation at `templates/minimal/rules_minimal.jai` first.
5This template is a special one, because it contains a
6placeholder: `__RENAME_PLACEHOLDER__`
8Which you can replace via `jinit -t lib -r foo_bar`.
10You can place the placeholder inside those places:
12- rules.dirs_in_workplace
15You cannot place it in `rules.template`, because this pathstring gets
16replaced with the template at compile time.
22 gitignore :: #string STR_END
28 main_jai :: #string STR_END
30 MEMORY_DEBUGGER = MEMORY_DEBUGGER_ENABLED
32#import "__RENAME_PLACEHOLDER__";
36 #if MEMORY_DEBUGGER_ENABLED defer report_memory_leaks();
38 log("Hello from test.jai");
45 lib_jai :: #string STR_END
50 log("Hello from lib");
55 module_jai :: #string STR_END
61 description = "Lib starter pack. Pass `-r <lib name>` to Jinit, to give it a name",
62 template = "templates/lib/template.jai",
63 dirs_in_workplace = .[ "test", "__RENAME_PLACEHOLDER__" ],
65 .{ ".gitignore", gitignore },
66 .{ "test/test.jai", main_jai },
67 .{ "__RENAME_PLACEHOLDER__/lib.jai", lib_jai },
68 .{ "__RENAME_PLACEHOLDER__/module.jai", module_jai },