ModuleImportPolicy¶
ModuleImportPolicy :: enum s32 {
System :: 0;
Bundle :: 1;
BundleLatest :: 2;
}
Specify import module policy in set_module_dir function call. Module dependencies of any assembly can be treated in different ways depending on use case and needs of programmer. Sometimes program stability and maintainability is more important than use of latest versions of modules. These flags can specify how local modules should be updated.
Variants¶
System - Use system modules but prefer local ones in module directory. This option disables any copying and version check. Local module directory can contain custom project related modules you don’t want to expose to the whole system.
Bundle - Bundle only missing modules from system into the local module folder and ignore if there is newer version available. Individual module updates can be done by renaming old one and re-run compilation. Custom modules (not comming from main API folder are kept untouched.)
BundleLatest - Bundle all missing modules from system into the local module folder and update old ones also. Custom modules (not comming from main API folder are kept untouched.) Compiler will create .bak backup directory for every module before any updates.
Declared in: build.bl