Platform Team/Guide/Sweets Usage: Difference between revisions
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
sweets sdk/sugar:emulator | sweets sdk/sugar:emulator | ||
It is possible to run different glucose versions via SDK (for now, testing 0.92+ and stable 0.88 based on Dextrose-2), e.g.: | |||
sweets sdk/sugar:emulator=0.88 | |||
== Development workflow with sweets == | |||
During the first launch, sources will be auto-built and kept in internal storage. To make sweets useful for | During the first launch, sources will be auto-built and kept in internal storage. To make sweets useful for development, checkout developing project sources in sweets: | ||
sweets checkout [''path-to-sources''] | sweets checkout [''path-to-sources''] | ||
The only thing that is required from sources is having [[Platform Team/Recipe Specification|sweets.recipe]] spec file for non-activity projects or {{Code|activity/activity.info}} (that conforms the same spec) for activities. | |||
After being checked out, this sources might be launched using {{Code|http://sweets.sugarlabs.org/''sweet-value-from-sweets.recipe''}} or just {{Code|''sweet-value-from-sweets.recipe''}}: | |||
sweets ''sweet'' | |||
For glucose projects, there | For glucose projects you can find ready-to-use and all time rebased to upstream, projects in [http://git.sugarlabs.org/sdk SDK] http://git.sugarlabs.org project. For now there are two branches: {{Code|master}} for recent trunk and {{Code|master-0.88}} for 0.88 code based on Dextrose-2 patches. | ||
Checked out projects will be built according to the {{Code|[Build]}} section commands in {{Code|sweets.recipe}} files. In general, for autotools-based projects, there is no further need for the {{Code|sweets}} command, just run {{Code|make install}} to build current sources and {{Code|make install them}} them to the directory that was specified by {{Code|sweets}} in the configure stage. For glucose projects, there is no need even in calling the {{Code|make}} command, python code will be reused from its original place (see {{Code|binding}} options in [[Platform Team/Recipe Specification|sweets.recipe]] files), change the code and restart sugar. | |||
=== Run sweets from X session === | === Run sweets from X session === | ||