Development: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
mNo edit summary
(34 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{cleanup}}
{{XBMC development nav}}
{{XBMC development nav}}
{{mininav}}
__TOC__
__TOC__
{{-}}
{{-}}
== Topics ==
{{see also|Category:Development}}
{{development links}}


=XBMC programming and code formatting convention guidelines=
== Source code ==
:'''Note!''' More specifics to come based on ongoing discussions, see [http://forum.xbmc.org/showthread.php?t=5238 Proposed code formatting conventions for XBMC]
* See: https://github.com/xbmc/xbmc


==General guidelines==
== Development Tools ==
* Code documentation (DocBook, rst, or [http://www.doxygen.org doxygen] for the code documentation steps, preferably the latter, [http://www.doxygen.org doxygen])
* [http://www.stack.nl/~dimitri/doxygen/ Doxygen] - Source code documentation generator tool.
* Self-containment - XBMC should be as little dependent as possible on operating-system and third-party services/deamons/libraries
** XBMC should for example contain all file-system and network-client (like samba) support built-into the XBMC package
* Modular design - independent modules made up by localized/isolated code libraries without dependencies
** XBMC should still compile and run if a non-essential module/library is disabled or removed
* Aim for the GUI/interface to run smoothly on a low spec computer (single core with less than 1Ghz)
** 3D graphic controller (GPU) will always be required hardware for XBMC so try to utilize the GPU as much as possible
* Avoid harddisk trashing (excess read/write/erase cycles), so no harddrive paging, (utilize RAM memory instead).
** End-users will be running XBMC and the operating-system on Solid-State memory as a [http://en.wikipedia.org/wiki/LiveDistro Live CD (LiveDistro)] of a USB-key
* Fast load and boot times for end-user perception (other things can still run/start in the background without the user knowledge)
** 15-seconds or less from when the end user press the power-button on the computer till he/she can browse the GUI


== User-friendliness is next to godlyness ==
== People who can help you with specific development areas of Kodi ==
{{#lst:XBMC manifesto|User-friendliness}}
{{main|Development advisors}}
{{intro|Development advisors}}


=Technical summary of XBMC=
== Other tools and resources ==
==Source code==
*See: https://github.com/xbmc/xbmc
 
==Development Tools==
* [http://www.stack.nl/~dimitri/doxygen/ Doxygen] - Source code documentation generator tool.
 
==Other tools and resources==
Though any other tools or resources are not required they can possibly help in development.
Though any other tools or resources are not required they can possibly help in development.
* [[Eclipse CDT Setup For XBMC Development]]
* [[Eclipse CDT Setup For XBMC Development]]
Line 37: Line 25:
* [http://www.daimi.au.dk/~sandmann/sysprof/ Sysprof] (for Linux) - a free System-wide Linux Profiler for tracking CPU usage. Sysprof is a sampling CPU profiler for Linux that uses a kernel module to profile the entire system, not just a single application. Sysprof handles shared libraries, and applications do not need to be recompiled. In fact they don't even have to be restarted. Just insert the kernel module and start sysprof.
* [http://www.daimi.au.dk/~sandmann/sysprof/ Sysprof] (for Linux) - a free System-wide Linux Profiler for tracking CPU usage. Sysprof is a sampling CPU profiler for Linux that uses a kernel module to profile the entire system, not just a single application. Sysprof handles shared libraries, and applications do not need to be recompiled. In fact they don't even have to be restarted. Just insert the kernel module and start sysprof.


=Mentors=
== General guidelines ==
Mentors are developers from [[Team XBMC and Others|Team-XBMC]] and members of [http://sourceforge.net/projects/xbmc The XBMC Project] that have volunteered to assist and mentor non-official XBMC developers in any non-trivial way they can, helping you by checking, commenting and committing your code patches to our SVN source code tree. These mentors have chosen an area they prefer to specialize in, usually this is an area in which they feel they have most interest, knowledge, and expertise in. Initial [[HOW-TO submit a patch|patches are welcome]], and can and will be merged by the team. If you wish to [[Apply to join the Official XBMC Development-Team|join the team in an official capacity]], please let us know.
* Code documentation (DocBook, rst, or [http://www.doxygen.org doxygen] for the code documentation steps, preferably the latter, [http://www.doxygen.org doxygen])
* Self-containment - Kodi should be as little dependent as possible on operating-system and third-party services/daemons/libraries
** Kodi should for example contain all file-system and network-client (like samba) support built-into the XBMC package
* Modular design - independent modules made up by localized/isolated code libraries without dependencies
** Kodi should still compile and run if a non-essential module/library is disabled or removed
* Aim for the GUI/interface to run smoothly on a low spec computer (single core with less than 1Ghz)
** 3D graphic controller (GPU) will always be required hardware for Kodi so try to utilize the GPU as much as possible
* Avoid hard-disk trashing (excess read/write/erase cycles), so no hard-drive paging, (utilize RAM memory instead).
** End-users will be running Kodi and the operating-system on solid-State memory as a [http://en.wikipedia.org/wiki/LiveDistro Live CD (LiveDistro)] of a USB-key
* Fast load and boot times for end-user perception (other things can still run/start in the background without the user knowledge)
** 15-seconds or less from when the end user press the power-button on the computer till he/she can browse the GUI


==Port mentors and developers (Linux, Mac OS X and Windows)==
== Code guidelines and formatting conventions ==
If you are a C/C++ programmer expert, porting specialist or guru and like to volunteer as a ''''third-party'''' mentor and/or developer then please let us know.
[[Official:Code_guidelines_and_formatting_conventions|Official: Code guidelines and formatting conventions]]


==Linux Mentors (also lead developers)==
== User-friendliness is next to godliness ==
* [[User:Yuvalt|Yuvalt]]: Everything Linux
{{#lst:XBMC manifesto|User-friendliness}}
* [[User:Vulkanr|Vulkanr]]: Everything Linux
* [[User:Jmarshall|JMarshall]]: Anything GUI related, Music Library, Video Library, PAPlayer, etc.
* [[User:D4rk|D4rk]]: OpenGL, other Linux stuff
* [[User:Elupus|Elupus]]: DllLoader, Mplayer and DVDPlayer
* [[User:Spiff|Spiff]]: Anything other than DllLoader/MPlayer/DVDPlayer internals.
* [[User:monkeyman 67156|monkeyman 67156]]: Everything Linux
* [[User:Topfs2|Topfs2]]: Everything Linux
* [[User:malloc|malloc]]: Everything Linux
 
==Mac OS X Mentors (also lead developers)==
* [[User:Davilla|Davilla]]: Everything Mac OS X
* [[User:D4rk|D4rk]]: OpenGL, other Mac OS X and Linux stuff
* [[User:malloc|malloc]]: Everything Mac OS X and Linux
* [[User:Vulkanr|Vulkanr]]: Everything Mac OS X and Linux
 
==Windows Mentors==
* [[User:WiSo|WiSo]]: Everything Win32 (SDL, not DirectX)
* [[User:Chadoe|Chadoe (a.k.a. Charly)]] - Everything Win32 (SDL, not DirectX)
* [[User:Jmarshall|JMarshall]]: Anything GUI related, Music Library, Video Library, PAPlayer, etc.
 
=Contact methods=
* IRC: [irc://irc.freenode.net/xbmc-dev #xbmc-dev on freenode] official [http://freenode.net IRC network channel] focused on XBMC development
* [http://forum.xbmc.org/forumdisplay.php?fid=93 XBMC Development Community Forum]


== Contact methods ==
* IRC: [irc://irc.freenode.net/kodi-dev #kodi-dev on freenode] official [http://freenode.net IRC network channel] focused on Kodi development
* [http://forum.kodi.tv/forumdisplay.php?fid=93 Kodi Development Community Forum]
* [[HOW-TO submit a patch]] (where and how to submit source code)
* [[HOW-TO submit a patch]] (where and how to submit source code)


[[Category:Development|*]]
[[Category:Development|*]]
[[Category:Skin Development]]
[[Category:Skin development]]
[[Category:Linux]]
[[Category:Manual]]
[[Category:XBMC Live]]
[[Category:Mac OS X]]
[[Category:XBMC Manual]]

Revision as of 13:39, 17 July 2017

Template:XBMC development nav

Home icon grey.png   ▶ Development


Topics

Kodi development
Specific topics
Skinning
Add-ons

Source code

Development Tools

  • Doxygen - Source code documentation generator tool.

People who can help you with specific development areas of Kodi

Development advisors


Other tools and resources

Though any other tools or resources are not required they can possibly help in development.

  • Eclipse CDT Setup For XBMC Development
  • Doxygen - Source code documentation generator tool.
  • Valgrind (for Linux) - a free Linux programming tool for memory debugging, memory leak detection, and profiling.
  • Sysprof (for Linux) - a free System-wide Linux Profiler for tracking CPU usage. Sysprof is a sampling CPU profiler for Linux that uses a kernel module to profile the entire system, not just a single application. Sysprof handles shared libraries, and applications do not need to be recompiled. In fact they don't even have to be restarted. Just insert the kernel module and start sysprof.

General guidelines

  • Code documentation (DocBook, rst, or doxygen for the code documentation steps, preferably the latter, doxygen)
  • Self-containment - Kodi should be as little dependent as possible on operating-system and third-party services/daemons/libraries
    • Kodi should for example contain all file-system and network-client (like samba) support built-into the XBMC package
  • Modular design - independent modules made up by localized/isolated code libraries without dependencies
    • Kodi should still compile and run if a non-essential module/library is disabled or removed
  • Aim for the GUI/interface to run smoothly on a low spec computer (single core with less than 1Ghz)
    • 3D graphic controller (GPU) will always be required hardware for Kodi so try to utilize the GPU as much as possible
  • Avoid hard-disk trashing (excess read/write/erase cycles), so no hard-drive paging, (utilize RAM memory instead).
    • End-users will be running Kodi and the operating-system on solid-State memory as a Live CD (LiveDistro) of a USB-key
  • Fast load and boot times for end-user perception (other things can still run/start in the background without the user knowledge)
    • 15-seconds or less from when the end user press the power-button on the computer till he/she can browse the GUI

Code guidelines and formatting conventions

Official: Code guidelines and formatting conventions

User-friendliness is next to godliness

XBMC manifesto

Contact methods