general.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. MODDIR
  2. =====
  3. Include order : *api -> modules -> unibuild file -> host -> target -> hooks* All imports are alphabeticaly.
  4. Moddir contains unibuild **modules**, **api**, **hooks**, **target** and **host** directories.
  5. Modules
  6. ^^^^^
  7. Unibuild modules in here. modules included and called before unibuild files. Defining main functins and detecting target and host functions in here. Also default fallback variables defined here. Unibuild require **_fetch** function for getting sources. Other functions are optional.
  8. Api
  9. ^^^
  10. Unibuild helper function defined here. Included before unibuild files. All functions are optional. Modules can use api functions.
  11. You can define **minver** value for required minimum unibuild api version and you can define **maxver** value for required maximum unibuild api version. Default value is current version.
  12. Hooks
  13. ^^^^
  14. Hook functions included after unibuild files so override unibuild files. you don't have to define unibuild function or variable in here. All hook functions are optional.
  15. Target
  16. ^^^^
  17. Target functions are package manager specific functions. More detail : doc/development/target.rst
  18. Host
  19. ^^^^
  20. Host functions are distribution specific functions. More detail : doc/development/host.rst
  21. unibuildrc file
  22. ========
  23. Firstly imported file. **$HOME/.unibuildrc**
  24. All unibuild functions override unibuildrc file.